summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-02-28 18:04:42 +0000
committermux <mux@FreeBSD.org>2003-02-28 18:04:42 +0000
commita1b221af52c331bd82cf390d2305be1bcd220585 (patch)
treee422c345e359647836dba10af74890ee47c4c7c1 /sys/net
parentc2b425f8b522fd3591f0b90e957a9910cd47ce57 (diff)
downloadFreeBSD-src-a1b221af52c331bd82cf390d2305be1bcd220585.zip
FreeBSD-src-a1b221af52c331bd82cf390d2305be1bcd220585.tar.gz
Make the network /dev entries use MAJOR_AUTO.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 599d069..cdf5fd3 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -125,8 +125,6 @@ MALLOC_DEFINE(M_IFADDR, "ifaddr", "interface address");
MALLOC_DEFINE(M_IFMADDR, "ether_multi", "link-level multicast address");
MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework");
-#define CDEV_MAJOR 165
-
static d_open_t netopen;
static d_close_t netclose;
static d_ioctl_t netioctl;
@@ -142,7 +140,7 @@ static struct cdevsw net_cdevsw = {
/* mmap */ nommap,
/* strategy */ nostrategy,
/* name */ "net",
- /* maj */ CDEV_MAJOR,
+ /* maj */ MAJOR_AUTO,
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_KQFILTER,
OpenPOWER on IntegriCloud