Add mpls_socket_get_local_name and mpls_socket_get_remote_name
[mpls-ldp-portable.git] / ldp / ldp_label_request.h
blob745f2d7ff0676d5f59c0bbc44defc1638dc35e8e
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_LABEL_REQUEST_H_
11 #define _LDP_LABEL_REQUEST_H_
12 #include "ldp_struct.h"
14 extern void ldp_label_request_initial_callback(mpls_timer_handle timer,
15 void *extra, mpls_cfg_handle g);
17 extern mpls_return_enum ldp_label_request_send(ldp_global * g, ldp_session * s,
18 ldp_attr * us_attr, ldp_attr ** ds_attr);
20 extern mpls_return_enum ldp_label_request_process(ldp_global * g,
21 ldp_session * s, ldp_adj * a, ldp_entity * e, ldp_attr * r_attr,
22 ldp_fec * fec);
24 extern void Prepare_Label_Request_Attributes(ldp_global * g, ldp_session * s,
25 mpls_fec * fec, ldp_attr * r_attr, ldp_attr * s_attr);
27 extern mpls_return_enum ldp_label_request_for_xc(ldp_global * g, ldp_session * s, mpls_fec * fec, ldp_attr * us_attr, ldp_attr ** ds_attr);
29 extern void req2attr(mplsLdpLblReqMsg_t * req, ldp_attr * attr, uint32_t flag);
30 #endif