/* * Copyright (C) James R. Leu 2000 * jleu@mindspring.com * * This software is covered under the LGPL, for more * info check out http://www.gnu.org/copyleft/lgpl.html */ #ifndef _LDP_FIB_IMPL_H_ #define _LDP_FIB_IMPL_H_ #include "ldp_struct.h" /* * in: handle * return: ldp_bool */ extern ldp_bool ldp_fib_handle_verify(ldp_fib_handle handle); /* * in: handle, cfg, callback, * return: ldp_fib_handle */ extern ldp_fib_handle ldp_fib_open(const ldp_instance_handle handle, const ldp_cfg_handle cfg,ldp_fib_callback callback); /* * in: handle */ extern void ldp_fib_close(ldp_fib_handle handle); /* * in: handle,num_entry,dest,entry * out: entry * return: int (number of routes returned in entry) */ extern int ldp_fib_get_route(const ldp_fib_handle handle,const int num_entry, const ldp_prefix* dest,ldp_prefix* entry); /* * in: handle,num_entry,dest,entry * out: entry * return: int (number of routes returned in entry) */ extern int ldp_fib_get_best_route(const ldp_fib_handle handle, const int num_entry, const ldp_prefix* dest,ldp_prefix* entry); /* * in: handle,dest * out: dest * return: ldp_return_enum */ extern ldp_return_enum ldp_fib_getfirst_route(const ldp_fib_handle handle, ldp_prefix* dest); /* * in: handle,dest * out: dest * return: ldp_return_enum */ extern ldp_return_enum ldp_fib_getnext_route(const ldp_fib_handle handle, ldp_prefix* dest); #endif