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
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
,
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
,
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
,
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
,
40 extern mpls_return_enum
ldp_tunnel_shutdown(ldp_global
* global
,
41 ldp_tunnel
* tunnel
, int flag
);