the mpls_inet_addr member is called 'address' in ldp_addr not 'info'
[mpls-ldp-portable.git] / ldp / ldp_fec.h
blob1bf5471a5a4a2da08cc5f9f0fffaf85ddfd35350
2 /*
3 * Copyright (C) James R. Leu 2000
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 _LDP_FEC_H_
11 #define _LDP_FEC_H_
13 extern ldp_fec *ldp_fec_create(ldp_global *g, mpls_fec *fec);
14 extern void ldp_fec_delete(ldp_global *g, ldp_fec * fec);
15 extern ldp_fec *ldp_fec_find(ldp_global *g, mpls_fec *fec);
16 extern ldp_fec *ldp_fec_find2(ldp_global *g, mpls_fec *fec);
17 extern ldp_nexthop *ldp_fec_nexthop_find(ldp_fec *f, mpls_nexthop *n);
18 extern mpls_return_enum ldp_fec_find_nexthop_index(ldp_fec *f, int index,
19 ldp_nexthop **n);
20 extern mpls_return_enum ldp_fec_add_nexthop(ldp_global *g, ldp_fec *f,
21 ldp_nexthop *n);
22 extern void ldp_fec_del_nexthop(ldp_global *g, ldp_fec *f, ldp_nexthop *n);
24 extern mpls_return_enum ldp_fec_process_add(ldp_global * g, ldp_fec * f,
25 ldp_nexthop *nh, ldp_session *nh_session);
26 extern mpls_return_enum ldp_fec_process_change(ldp_global * g, ldp_fec * f,
27 ldp_nexthop *nh, ldp_nexthop *nh_old, ldp_session * nh_session_old);
29 extern mpls_bool ldp_fec_empty(ldp_fec *fec);
30 extern void mpls_fec2ldp_fec(mpls_fec * a, ldp_fec * b);
31 extern void fec_tlv2mpls_fec(mplsLdpFecTlv_t * tlv, int num, mpls_fec * lf);
32 extern void mpls_fec2fec_tlv(mpls_fec * lf, mplsLdpFecTlv_t * tlv, int num);
34 #endif