| 1 |
#ifdef __cplusplus |
| 2 |
extern "C" { |
| 3 |
#endif |
| 4 |
|
| 5 |
struct netsnmp_ipaddress_s; |
| 6 |
|
| 7 |
/* |
| 8 |
* struct for netlink extras |
| 9 |
*/ |
| 10 |
struct address_flag_info { |
| 11 |
int bcastflg; |
| 12 |
int anycastflg; |
| 13 |
in_addr_t addr; |
| 14 |
}; |
| 15 |
|
| 16 |
#define IS_APIPA(a) (((in_addr_t)(a << 16)) == 0xFEA90000) |
| 17 |
|
| 18 |
int |
| 19 |
_netsnmp_ioctl_ipaddress_container_load_v4(netsnmp_container *container, |
| 20 |
int idx_offset); |
| 21 |
int |
| 22 |
_netsnmp_ioctl_ipaddress_set_v4(struct netsnmp_ipaddress_s * entry); |
| 23 |
int |
| 24 |
_netsnmp_ioctl_ipaddress_remove_v4(struct netsnmp_ipaddress_s * entry); |
| 25 |
|
| 26 |
int |
| 27 |
_netsnmp_ioctl_ipaddress_set_v6(struct netsnmp_ipaddress_s * entry); |
| 28 |
int |
| 29 |
_netsnmp_ioctl_ipaddress_remove_v6(struct netsnmp_ipaddress_s * entry); |
| 30 |
|
| 31 |
int |
| 32 |
netsnmp_access_ipaddress_ioctl_get_interface_count(int sd, struct ifconf * ifc); |
| 33 |
|
| 34 |
struct address_flag_info |
| 35 |
netsnmp_access_other_info_get(int index, int family); |
| 36 |
|
| 37 |
/* |
| 38 |
* struct ioctl for arch_data |
| 39 |
*/ |
| 40 |
typedef struct _ioctl_extras { |
| 41 |
u_int flags; |
| 42 |
u_char name[IFNAMSIZ]; |
| 43 |
} _ioctl_extras; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
_ioctl_extras * |
| 48 |
netsnmp_ioctl_ipaddress_entry_init(struct netsnmp_ipaddress_s *entry); |
| 49 |
void |
| 50 |
netsnmp_ioctl_ipaddress_entry_cleanup(struct netsnmp_ipaddress_s *entry); |
| 51 |
int |
| 52 |
netsnmp_ioctl_ipaddress_entry_copy(struct netsnmp_ipaddress_s *lhs, |
| 53 |
struct netsnmp_ipaddress_s *rhs); |
| 54 |
|
| 55 |
_ioctl_extras * |
| 56 |
netsnmp_ioctl_ipaddress_extras_get(struct netsnmp_ipaddress_s *entry); |
| 57 |
|
| 58 |
int |
| 59 |
_netsnmp_ioctl_ipaddress_delete_v4(struct netsnmp_ipaddress_s * entry); |
| 60 |
int |
| 61 |
_netsnmp_ioctl_ipaddress_delete_v6(struct netsnmp_ipaddress_s * entry); |
| 62 |
|
| 63 |
#ifdef __cplusplus |
| 64 |
} |
| 65 |
#endif |
| 66 |
|