Beginnings of support for L2CC
[mpls-ldp-portable.git] / ldp / ldp_fec.h
blob3a48352e9d537a272ddf5a303eca59270b16b365
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();
14 extern ldp_fec *ldp_fec_create_prefix(mpls_inet_addr * prefix, int prefix_len);
15 extern ldp_fec *ldp_fec_create_host(mpls_inet_addr * host);
16 extern void ldp_fec_delete(ldp_fec * fec);
18 extern void mpls_fec2ldp_fec(mpls_fec * a, ldp_fec * b);
20 extern void fec_tlv2mpls_fec(mplsLdpFecTlv_t * tlv, int num, mpls_fec * lf);
21 extern void mpls_fec2fec_tlv(mpls_fec * lf, mplsLdpFecTlv_t * tlv, int num);
23 extern mpls_return_enum Recognize_New_Fec(ldp_global * g, mpls_fec * f);
24 extern mpls_return_enum Detect_Change_Fec_Next_Hop(ldp_global * g, mpls_fec * f,
25 ldp_session * nh_old);
27 #endif