More RSVP packet decode/encode
[mpls-ldp-portable.git] / ldp / ldp_tunnel.h
blob7926324a553fb4c32432cb3f065dfd1e1e463fc6
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_TUNNEL_H_
11 #define _LDP_TUNNEL_H_
13 #include "ldp_struct.h"
15 extern ldp_tunnel *ldp_tunnel_create();
16 extern void ldp_tunnel_delete(ldp_tunnel * t);
17 extern uint32_t _ldp_tunnel_get_next_index();
19 extern mpls_return_enum ldp_tunnel_add_resource(ldp_tunnel * t,
21 ldp_resource * r);
22 extern mpls_return_enum ldp_tunnel_del_resource(ldp_tunnel * t);
24 extern mpls_return_enum ldp_tunnel_add_hop_list(ldp_tunnel * t,
26 ldp_hop_list * h);
27 extern mpls_return_enum ldp_tunnel_del_hop_list(ldp_tunnel * t);
29 extern mpls_return_enum ldp_tunnel_add_outlabel(ldp_tunnel * t,
31 ldp_outlabel * o);
32 extern mpls_return_enum ldp_tunnel_del_outlabel(ldp_tunnel * t);
34 extern mpls_bool ldp_tunnel_is_active(ldp_tunnel * t);
35 extern mpls_bool ldp_tunnel_is_ready(ldp_tunnel * t);
37 extern mpls_return_enum ldp_tunnel_startup(ldp_global * global,
39 ldp_tunnel * tunnel);
40 extern mpls_return_enum ldp_tunnel_shutdown(ldp_global * global,
41 ldp_tunnel * tunnel, int flag);
43 #endif