More RSVP packet decode/encode
[mpls-ldp-portable.git] / ldp / ldp_addr.h
blob65cff1289b9182461945a5838507afa9f00c7670
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_ADDR_H_
11 #define _LDP_ADDR_H_
13 #include "ldp_struct.h"
15 extern ldp_addr *ldp_addr_create(mpls_inet_addr * inet);
16 extern void ldp_addr_delete(ldp_addr * a);
17 extern mpls_return_enum _ldp_addr_add_session(ldp_addr * a, ldp_session * s);
18 extern void _ldp_addr_del_session(ldp_addr * a, ldp_session * s);
19 extern void ldp_addr_add_l2cc(ldp_addr * a, ldp_l2cc * l);
20 extern void ldp_addr_del_l2cc(ldp_addr * a, ldp_l2cc * l);
21 extern uint32_t _ldp_addr_get_next_index();
23 extern void ldp_addr_mesg_prepare(ldp_mesg * msg, ldp_global * g,
24 uint32_t msgid, mpls_inet_addr * a);
26 extern mpls_return_enum ldp_addr_send(ldp_global * g, ldp_session * s,
27 mpls_inet_addr * a);
28 extern mpls_return_enum ldp_waddr_send(ldp_global * g, ldp_session * s,
29 mpls_inet_addr * a);
30 extern mpls_return_enum ldp_addr_process(ldp_global * g, ldp_session * s,
31 ldp_entity * e, ldp_mesg * msg);
33 #endif