Change inlabel outlabel/nexthop, and attr accounting. Specically
[mpls-ldp-portable.git] / ldp / ldp_peer.h
blob909f244f01cbd4c234ff821156692b3f0aded704
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_PEER_H_
11 #define _LDP_PEER_H_
13 #include "ldp_struct.h"
15 extern ldp_peer *ldp_peer_create();
16 extern void ldp_peer_delete(ldp_peer * p);
17 extern mpls_return_enum ldp_peer_startup(ldp_global * g, ldp_peer * p);
18 extern mpls_return_enum ldp_peer_shutdown(ldp_global * g, ldp_peer * p);
19 extern mpls_bool ldp_peer_is_active(ldp_peer * p);
20 extern mpls_return_enum _ldp_peer_add_entity(ldp_peer * p, ldp_entity * e);
21 extern mpls_return_enum _ldp_peer_del_entity(ldp_peer * p);
22 extern ldp_entity *ldp_peer_get_entity(ldp_peer * p);
23 extern uint32_t _ldp_peer_get_next_index();
24 extern void ldp_peer_retry_stop(ldp_global * g, ldp_peer * p);
25 extern void ldp_peer_send_stop(ldp_global * g, ldp_peer * p);
26 extern void ldp_peer_retry_callback(mpls_timer_handle timer, void *extra,
27 mpls_cfg_handle g);
29 #endif