3 * Copyright (C) James R. Leu 2002
6 * This software is covered under the LGPL, for more
7 * info check out http://www.gnu.org/copyleft/lgpl.html
10 #ifndef _MPLS_IFMGR_IMPL_H_
11 #define _MPLS_IFMGR_IMPL_H_
13 #include "mpls_struct.h"
14 #include "ldp_struct.h"
15 #include "ldp_struct.h"
16 #include "mpls_handle_type.h"
20 * return: mpls_ifmgr_handle
22 extern mpls_ifmgr_handle
mpls_ifmgr_open(const mpls_instance_handle handle
,
23 const mpls_cfg_handle cfg
);
28 extern void mpls_ifmgr_close(const mpls_ifmgr_handle handle
);
32 * return: mpls_if_handle
34 extern mpls_if_handle
mpls_ifmgr_open_if(const mpls_ifmgr_handle
,
40 extern void mpls_ifmgr_close_if(const mpls_ifmgr_handle
, const mpls_if_handle iff
);
43 * in: handle,iff,addr,mask,flags
44 * out: addr,mask,flags
45 * return: mpls_return_enum
47 extern mpls_return_enum
mpls_ifmgr_get_address(const mpls_ifmgr_handle
,
48 const mpls_if_handle iff
, mpls_inet_addr
* addr
, mpls_inet_addr
* mask
,
54 * return: mpls_return_enum
56 extern mpls_return_enum
mpls_ifmgr_get_mtu(const mpls_ifmgr_handle
,
57 const mpls_if_handle iff
, int *mtu
);
60 * in: handle, handle, addr
61 * return: mpls_return_enum
63 extern mpls_return_enum
mpls_ifmgr_getfirst_address(const mpls_ifmgr_handle
,
64 mpls_if_handle
*, mpls_inet_addr
*);
67 * in: handle, handle, addr
68 * return: mpls_return_enum
70 extern mpls_return_enum
mpls_ifmgr_getnext_address(const mpls_ifmgr_handle
,
71 mpls_if_handle
*, mpls_inet_addr
*);