First step towards making this work:
[mpls-ldp-portable.git] / ldp / ldp_mesg.h
blob1e470abda0ef232766953844796832e2c4f51cfb
2 /*
3 * Copyright (C) James R. Leu 2001
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_MESG_H_
11 #define _LDP_MESG_H_
13 #include "ldp_struct.h"
15 extern ldp_mesg *ldp_mesg_create();
16 extern void ldp_mesg_prepare(ldp_mesg * msg, uint16_t type, uint32_t id);
17 extern void ldp_mesg_delete(ldp_mesg * msg);
18 extern uint16_t ldp_mesg_get_type(ldp_mesg * mesg);
19 extern void ldp_mesg_hdr_get_lsraddr(ldp_mesg * mesg, mpls_inet_addr * lsraddr);
20 extern void ldp_mesg_hdr_get_labelspace(ldp_mesg * mesg, int *labelspace);
22 extern mpls_return_enum ldp_mesg_hello_get_traddr(ldp_mesg * mesg,
23 mpls_inet_addr * traddr);
24 extern mpls_return_enum ldp_mesg_hello_get_hellotime(ldp_mesg * mesg,
26 int *hellotime);
27 extern mpls_return_enum ldp_mesg_hello_get_csn(ldp_mesg * mesg, uint32_t * csn);
28 extern mpls_return_enum ldp_mesg_hello_get_targeted(ldp_mesg * mesg, int *tar);
29 extern mpls_return_enum ldp_mesg_hello_get_request(ldp_mesg * mesg, int *req);
31 extern mpls_return_enum ldp_mesg_send_tcp(ldp_global * g, ldp_session * s,
32 ldp_mesg * mesg);
33 extern mpls_return_enum ldp_mesg_send_udp(ldp_global * g, ldp_entity * s,
34 ldp_mesg * mesg);
36 #endif