Debian Codegraph @

agent/mibgroup/if-mib/data_access/interface_ioctl.h

raw
1 /*
2 * ioctl interface data access header
3 *
4 * $Id$
5 */
6 #ifndef NETSNMP_ACCESS_INTERFACE_IOCTL_H
7 #define NETSNMP_ACCESS_INTERFACE_IOCTL_H
8
9 /*
10 * need ipaddress functions to get ipversions of an interface
11 */
12 config_require(ip-mib/data_access/ipaddress);
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /**---------------------------------------------------------------------*/
19 /**/
20
21 int
22 netsnmp_convert_arphrd_type(int arphrd_type);
23
24 int
25 netsnmp_access_interface_ioctl_physaddr_get(int fd,
26 netsnmp_interface_entry *ifentry);
27
28 void
29 netsnmp_process_link_flags(netsnmp_interface_entry *ifentry,
30 unsigned int os_flags);
31
32 int
33 netsnmp_access_interface_ioctl_flags_get(int fd,
34 netsnmp_interface_entry *ifentry);
35
36 int
37 netsnmp_access_interface_ioctl_flags_set(int fd,
38 netsnmp_interface_entry *ifentry,
39 unsigned int flags,
40 int and_complement);
41
42 int
43 netsnmp_access_interface_ioctl_mtu_get(int fd,
44 netsnmp_interface_entry *ifentry);
45
46 oid
47 netsnmp_access_interface_ioctl_ifindex_get(int fd, const char *name);
48
49 int
50 netsnmp_access_interface_ioctl_has_ipv4(int sd, const char *if_name,
51 int if_index, u_int *flags,
52 const struct ifconf *pifc);
53
54 /**---------------------------------------------------------------------*/
55
56 # ifdef __cplusplus
57 }
58 #endif
59
60 #endif /* NETSNMP_ACCESS_INTERFACE_IOCTL_H */