Add mpls_socket_get_local_name and mpls_socket_get_remote_name
[mpls-ldp-portable.git] / ldp / ldp_inlabel.h
blobd9b09f6857be7f00c9cce55affadbdbc2e4f3840
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_INLABEL_H_
11 #define _LDP_INLABEL_H_
13 #include "ldp_struct.h"
15 extern void ldp_inlabel_delete(ldp_global * g, ldp_inlabel * i);
17 extern ldp_inlabel *ldp_inlabel_create_complete(ldp_global * g, ldp_session * s,
18 ldp_attr * a);
19 extern void ldp_inlabel_delete_complete(ldp_global * g, ldp_inlabel * in,
20 ldp_session * s, ldp_attr * a);
22 extern mpls_return_enum ldp_inlabel_add_outlabel(ldp_global *g,
23 ldp_inlabel *i, ldp_outlabel *o);
24 extern mpls_return_enum ldp_inlabel_del_outlabel(ldp_global *g,
25 ldp_inlabel *i);
27 extern mpls_return_enum _ldp_inlabel_add_session(ldp_inlabel * i,
28 ldp_session * s);
29 extern void _ldp_inlabel_del_session(ldp_inlabel * i, ldp_session * s);
31 extern uint32_t _ldp_inlabel_get_next_index();
33 extern mpls_return_enum _ldp_inlabel_add_attr(ldp_global *g, ldp_inlabel * i, ldp_attr * a);
34 extern void _ldp_inlabel_del_attr(ldp_global *g, ldp_inlabel * i, ldp_attr * a);
36 #endif