Re-work the adding/removing of ldp_if and ldp_addr.
[mpls-ldp-portable.git] / common / mpls_fib_impl.h
blobbb37f5c3c31f393919c5f3955adcc05541557d2b
2 /*
3 * Copyright (C) James R. Leu 2002
4 * jleu@mindspring.com
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
8 */
10 #ifndef _MPLS_FIB_IMPL_H_
11 #define _MPLS_FIB_IMPL_H_
13 #include "mpls_struct.h"
16 * in: handle, cfg, callback,
17 * return: mpls_fib_handle
19 extern mpls_fib_handle mpls_fib_open(const mpls_instance_handle handle,
20 const mpls_cfg_handle cfg);
23 * in: handle
25 extern void mpls_fib_close(mpls_fib_handle handle);
28 * in: handle,num_entry,dest,entry
29 * out: entry
30 * return: int (number of routes returned in entry)
32 extern int mpls_fib_get_route(const mpls_fib_handle handle, const int num_entry,
33 const mpls_fec * dest, mpls_fec * entry);
36 * in: handle,num_entry,dest,entry
37 * out: entry
38 * return: int (number of routes returned in entry)
40 extern int mpls_fib_get_best_route(const mpls_fib_handle handle,
41 const int num_entry, const mpls_fec * dest, mpls_fec * entry);
44 * in: handle,dest
45 * out: dest
46 * return: mpls_return_enum
48 extern mpls_return_enum mpls_fib_getfirst_route(const mpls_fib_handle handle,
49 mpls_fec * dest);
52 * in: handle,dest
53 * out: dest
54 * return: mpls_return_enum
56 extern mpls_return_enum mpls_fib_getnext_route(const mpls_fib_handle handle,
57 mpls_fec * dest);
59 #endif