Re-work the adding/removing of ldp_if and ldp_addr.
[mpls-ldp-portable.git] / ldp / ldp_nexthop.h
blob8aba0049151551e93113932e8c8ba4c3b2ec74d5
2 /*
3 * Copyright (C) James R. Leu 2003
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_NEXTHOP_H_
11 #define _LDP_NEXTHOP_H_
13 extern ldp_nexthop *ldp_nexthop_create();
14 extern ldp_nexthop *ldp_nexthop_for_fec_session(ldp_fec *fec, ldp_session *s);
15 extern void ldp_nexthop_delete(ldp_nexthop *nh);
16 extern void ldp_nexthop_add_if(ldp_nexthop * nh, ldp_if * i);
17 extern void ldp_nexthop_del_if(ldp_global *g, ldp_nexthop * nh);
18 extern void ldp_nexthop_add_addr(ldp_nexthop * nh, ldp_addr * a);
19 extern void ldp_nexthop_del_addr(ldp_global *g, ldp_nexthop * nh);
20 extern void ldp_nexthop_add_outlabel(ldp_nexthop * nh, ldp_outlabel * o);
21 extern void ldp_nexthop_del_outlabel(ldp_nexthop * nh);
22 extern void ldp_nexthop_add_outlabel2(ldp_nexthop * nh, ldp_outlabel * o);
23 extern void ldp_nexthop_del_outlabel2(ldp_nexthop * nh, ldp_outlabel * o);
24 extern void ldp_nexthop_add_fec(ldp_nexthop * nh, ldp_fec * f);
25 extern void ldp_nexthop_del_fec(ldp_nexthop * nh);
26 extern void mpls_nexthop2ldp_nexthop(mpls_nexthop *mnh, ldp_nexthop *lnh);
29 #endif