3 * Copyright (C) James R. Leu 2001
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
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
,
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
,
33 extern mpls_return_enum
ldp_mesg_send_udp(ldp_global
* g
, ldp_entity
* s
,