summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ifmib.4
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2001-10-17 04:12:29 +0000
committerfenner <fenner@FreeBSD.org>2001-10-17 04:12:29 +0000
commit1e7fe9f955a3d9d24a8f7545a033f8b90126e3bf (patch)
tree3a092a48e9ca517c0577423fc3e3894299750bb4 /share/man/man4/ifmib.4
parentb69c7c0b789e7ca4de555baab2ee087e1bb5d231 (diff)
downloadFreeBSD-src-1e7fe9f955a3d9d24a8f7545a033f8b90126e3bf.zip
FreeBSD-src-1e7fe9f955a3d9d24a8f7545a033f8b90126e3bf.tar.gz
The interface index space may be sparsely populated (e.g. when an
interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days
Diffstat (limited to 'share/man/man4/ifmib.4')
-rw-r--r--share/man/man4/ifmib.46
1 files changed, 5 insertions, 1 deletions
diff --git a/share/man/man4/ifmib.4 b/share/man/man4/ifmib.4
index 9fd6bc8..dc9b28d 100644
--- a/share/man/man4/ifmib.4
+++ b/share/man/man4/ifmib.4
@@ -76,7 +76,7 @@ MIB. The manifest constants for each level in the
.Ar name
are defined in
.Aq Pa net/if_mib.h .
-A count of interfaces (and thus rows in the table) is given by
+The index of the last row in the table is given by
.Dq Li net.link.generic.system.ifcount
(or, using the manifest constants,
.Dv CTL_NET ,
@@ -87,6 +87,10 @@ A count of interfaces (and thus rows in the table) is given by
A management application searching for a particular interface should
start with row 1 and continue through the table row-by-row until the
desired interface is found, or the interface count is reached.
+Note that the table may be sparse, i.e. a given row may not exist,
+indicated by an errno of
+.Er ENOENT .
+Such an error should be ignored, and the next row should be checked.
.Pp
The generic interface information, common to all interfaces,
can be accessed via the following procedure:
OpenPOWER on IntegriCloud