3 * Copyright (C) James R. Leu 2003
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
10 #ifndef _LDP_NEXTHOP_H_
11 #define _LDP_NEXTHOP_H_
13 extern ldp_nexthop
*ldp_nexthop_create(ldp_global
*g
, mpls_nexthop
*n
);
14 extern ldp_nexthop
*ldp_nexthop_for_fec_session(ldp_fec
*fec
, ldp_session
*s
);
15 extern void ldp_nexthop_delete(ldp_global
*g
, 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_global
*g
, 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_global
* g
, ldp_nexthop
* nh
);
26 extern void mpls_nexthop2ldp_nexthop(mpls_nexthop
*mnh
, ldp_nexthop
*lnh
);