The discard, tunnel, SLIP, and PPP network interface pseudo-devices

are now dynamically loadable.  It doesn't make sense to do the same
for the loopback.
This commit is contained in:
Garrett Wollman 1995-03-20 19:25:49 +00:00
parent 69244b69db
commit f065639f29
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7194
10 changed files with 182 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# $Id: Makefile,v 1.7 1995/01/30 14:21:46 ugen Exp $
# $Id: Makefile,v 1.8 1995/02/22 13:42:31 sos Exp $
SUBDIR= cd9660 coff fdesc ibcs2 ip_mroute_mod ipfw kernfs msdos nfs nullfs \
SUBDIR= cd9660 coff fdesc ibcs2 if_disc if_ppp if_sl if_tun ip_mroute_mod \
ipfw kernfs msdos nfs nullfs \
portal procfs socksys syscons umapfs union
#
# Doesn't work:

19
lkm/if_disc/Makefile Normal file
View File

@ -0,0 +1,19 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_disc_mod
SRCS= if_disc.c bpfilter.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
.include <bsd.kmod.mk>

23
lkm/if_ppp/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_ppp_mod
SRCS= if_ppp.c bpfilter.h ppp.h vnode_if.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NPPP?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h ppp.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h
.include <bsd.kmod.mk>

23
lkm/if_sl/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_sl_mod
SRCS= if_sl.c bpfilter.h sl.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NSL?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h sl.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
sl.h:
echo "#define NSL ${NSL}" > sl.h
.include <bsd.kmod.mk>

23
lkm/if_tun/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_tun_mod
SRCS= if_tun.c bpfilter.h tun.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NTUN?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h tun.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
tun.h:
echo "#define NTUN ${NTUN}" > tun.h
.include <bsd.kmod.mk>

View File

@ -1,6 +1,7 @@
# $Id: Makefile,v 1.7 1995/01/30 14:21:46 ugen Exp $
# $Id: Makefile,v 1.8 1995/02/22 13:42:31 sos Exp $
SUBDIR= cd9660 coff fdesc ibcs2 ip_mroute_mod ipfw kernfs msdos nfs nullfs \
SUBDIR= cd9660 coff fdesc ibcs2 if_disc if_ppp if_sl if_tun ip_mroute_mod \
ipfw kernfs msdos nfs nullfs \
portal procfs socksys syscons umapfs union
#
# Doesn't work:

View File

@ -0,0 +1,19 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_disc_mod
SRCS= if_disc.c bpfilter.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_ppp_mod
SRCS= if_ppp.c bpfilter.h ppp.h vnode_if.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NPPP?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h ppp.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_sl_mod
SRCS= if_sl.c bpfilter.h sl.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NSL?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h sl.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
sl.h:
echo "#define NSL ${NSL}" > sl.h
.include <bsd.kmod.mk>

View File

@ -0,0 +1,23 @@
# $Id: Makefile,v 1.1 1994/09/22 22:12:59 wollman Exp $
.PATH: ${.CURDIR}/../../sys/net
KMOD= if_tun_mod
SRCS= if_tun.c bpfilter.h tun.h
NOMAN=
PSEUDO_LKM=
CFLAGS+= -I.
NBPFILTER?= 0
NTUN?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= bpfilter.h tun.h
bpfilter.h:
echo "#define NBPFILTER ${NBPFILTER}" > bpfilter.h
tun.h:
echo "#define NTUN ${NTUN}" > tun.h
.include <bsd.kmod.mk>