1
1
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
3
// Copyright (c) 2001-2007 International Computer Science Institute
3
// Copyright (c) 2001-2008 International Computer Science Institute
5
5
// Permission is hereby granted, free of charge, to any person obtaining a
6
6
// copy of this software and associated documentation files (the "Software")
12
12
// notice is a summary of the XORP LICENSE file; the license in that file is
13
13
// legally binding.
15
// $XORP: xorp/fea/fibconfig_entry_get.hh,v 1.11 2007/07/16 23:54:05 pavlin Exp $
15
// $XORP: xorp/fea/fibconfig_entry_get.hh,v 1.14 2008/01/04 03:15:44 pavlin Exp $
17
17
#ifndef __FEA_FIBCONFIG_ENTRY_GET_HH__
18
18
#define __FEA_FIBCONFIG_ENTRY_GET_HH__
86
86
* @param dst host address to resolve.
87
87
* @param fte return-by-reference forwarding table entry.
89
* @return bool on success, otherwise false.
88
* @return XORP_OK on success, otherwise XORP_ERROR.
91
virtual bool lookup_route_by_dest4(const IPv4& dst, Fte4& fte) = 0;
90
virtual int lookup_route_by_dest4(const IPv4& dst, Fte4& fte) = 0;
94
93
* Lookup route by network address.
96
95
* @param dst network address to resolve.
97
96
* @param fte return-by-reference forwarding table entry.
99
* @return true on success, otherwise false.
97
* @return XORP_OK on success, otherwise XORP_ERROR.
101
virtual bool lookup_route_by_network4(const IPv4Net& dst, Fte4& fte) = 0;
99
virtual int lookup_route_by_network4(const IPv4Net& dst, Fte4& fte) = 0;
104
102
* Lookup a route by destination address.
106
104
* @param dst host address to resolve.
107
105
* @param fte return-by-reference forwarding table entry.
109
* @return true on success, otherwise false.
106
* @return XORP_OK on success, otherwise XORP_ERROR.
111
virtual bool lookup_route_by_dest6(const IPv6& dst, Fte6& fte) = 0;
108
virtual int lookup_route_by_dest6(const IPv6& dst, Fte6& fte) = 0;
114
111
* Lookup route by network address.
116
113
* @param dst network address to resolve.
117
114
* @param fte return-by-reference forwarding table entry.
119
* @return true on success, otherwise false.
115
* @return XORP_OK on success, otherwise XORP_ERROR.
121
virtual bool lookup_route_by_network6(const IPv6Net& dst, Fte6& fte) = 0;
117
virtual int lookup_route_by_network6(const IPv6Net& dst, Fte6& fte) = 0;
124
120
// Misc other state