summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mib.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2006-01-04 12:57:09 +0000
committerharti <harti@FreeBSD.org>2006-01-04 12:57:09 +0000
commit9cca28b4d7b7042fa7f1bb73238dcc863592e044 (patch)
tree9883bdb48e4fc6a6de0d55496500f2dcaf3bc18c /sys/net/if_mib.h
parente426666183b577af4f703c82c374703a3b0ce946 (diff)
downloadFreeBSD-src-9cca28b4d7b7042fa7f1bb73238dcc863592e044.zip
FreeBSD-src-9cca28b4d7b7042fa7f1bb73238dcc863592e044.tar.gz
Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
the name and unit number assigned by the driver. This is needed by SNMP to find interfaces after they have been renamed. MFC after: 4 weeks
Diffstat (limited to 'sys/net/if_mib.h')
-rw-r--r--sys/net/if_mib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_mib.h b/sys/net/if_mib.h
index 445bd5b..e2b80c8 100644
--- a/sys/net/if_mib.h
+++ b/sys/net/if_mib.h
@@ -54,6 +54,7 @@ struct ifmibdata {
*/
#define IFDATA_GENERAL 1 /* generic stats for all kinds of ifaces */
#define IFDATA_LINKSPECIFIC 2 /* specific to the type of interface */
+#define IFDATA_DRIVERNAME 3 /* driver name and unit */
/*
* MIB tags at the net.link.generic.system level
OpenPOWER on IntegriCloud