blob: 611880b468c13ae68cbbcd43a203087a61730ec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* ioctl interface data access header
*
* $Id: interface_ioctl.h 13309 2005-10-29 03:30:43Z rstory $
*/
#ifndef NETSNMP_ACCESS_INTERFACE_IOCTL_H
#define NETSNMP_ACCESS_INTERFACE_IOCTL_H
/*
* need ipaddress functions to get ipversions of an interface
*/
config_require(ip-mib/data_access/ipaddress)
#ifdef __cplusplus
extern "C" {
#endif
/**---------------------------------------------------------------------*/
/**/
int
netsnmp_access_interface_ioctl_physaddr_get(int fd,
netsnmp_interface_entry *ifentry);
int
netsnmp_access_interface_ioctl_flags_get(int fd,
netsnmp_interface_entry *ifentry);
int
netsnmp_access_interface_ioctl_flags_set(int fd,
netsnmp_interface_entry *ifentry,
unsigned int flags,
int and_complement);
int
netsnmp_access_interface_ioctl_mtu_get(int fd,
netsnmp_interface_entry *ifentry);
oid
netsnmp_access_interface_ioctl_ifindex_get(int fd, const char *name);
int
netsnmp_access_interface_ioctl_has_ipv4(int sd, const char *if_name,
int if_index, u_int *flags);
/**---------------------------------------------------------------------*/
# ifdef __cplusplus
}
#endif
#endif /* NETSNMP_ACCESS_INTERFACE_IOCTL_H */
|