summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-12-20 21:53:53 +0000
committerwollman <wollman@FreeBSD.org>1995-12-20 21:53:53 +0000
commit3bc72fd2150906e2400079d7a0a69c55eb69bc64 (patch)
tree9608e4a13c02893d6405aad4abe15ae32a37101a /sys/net/if.c
parent19914706e411f628cfd36b7f46094cb62d6b815e (diff)
downloadFreeBSD-src-3bc72fd2150906e2400079d7a0a69c55eb69bc64.zip
FreeBSD-src-3bc72fd2150906e2400079d7a0a69c55eb69bc64.tar.gz
in_proto.c: spell ``Internet'' right and put whitespace after commas.
others: start to populate the link-layer branch of the net mib, by moving ARP to its proper place. (ARP is not a protocol family, it's an interface layer between a medium-access layer and a protocol family.) sysctl(8) needs to be taught about the structure of this branch, unless Poul-Henning implements dynamic MIB exploration soon.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index bcebdb2..4525600 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if.c 8.3 (Berkeley) 1/4/94
- * $Id: if.c,v 1.23 1995/12/05 02:01:36 davidg Exp $
+ * $Id: if.c,v 1.24 1995/12/09 20:47:08 phk Exp $
*/
#include <sys/param.h>
@@ -45,6 +45,7 @@
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/syslog.h>
+#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_dl.h>
@@ -756,3 +757,5 @@ sprint_d(n, buf, buflen)
} while (n != 0);
return (cp);
}
+
+SYSCTL_NODE(_net, PF_LINK, link, CTLFLAG_RW, 0, "Link layers");
OpenPOWER on IntegriCloud