Add mpls_socket_get_local_name and mpls_socket_get_remote_name
[mpls-ldp-portable.git] / ldp / ldp_adj.h
blob33099db90f28679e0d6a59416c753cbca81c408c
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_ADJ_H_
11 #define _LDP_ADJ_H_
13 #include "ldp_struct.h"
15 extern ldp_adj *ldp_adj_create(mpls_inet_addr * source,
16 mpls_inet_addr * lsraddr, int labelspace, int remote_hellotime,
17 mpls_inet_addr * remote_transport_address, uint32_t remote_csn);
19 extern void ldp_adj_delete(ldp_adj * a);
20 extern mpls_return_enum ldp_adj_startup(ldp_global * g, ldp_adj * a,
21 int request);
22 extern mpls_return_enum ldp_adj_restart(ldp_global * g, ldp_adj * a);
23 extern mpls_return_enum ldp_adj_shutdown(ldp_global * g, ldp_adj * a);
24 extern mpls_return_enum ldp_adj_maintain_timer(ldp_global * g, ldp_adj * a);
25 extern mpls_return_enum ldp_adj_recv_stop(ldp_global * g, ldp_adj * a);
27 extern void _ldp_adj_add_entity(ldp_adj * a, ldp_entity * e);
28 extern void _ldp_adj_del_entity(ldp_adj * a, ldp_entity * e);
29 extern void ldp_adj_add_session(ldp_adj * a, ldp_session * s);
30 extern void ldp_adj_del_session(ldp_adj * a, ldp_session * s);
31 extern uint32_t _ldp_adj_get_next_index();
33 #endif