diff options
Diffstat (limited to 'sys/modules/netgraph')
-rw-r--r-- | sys/modules/netgraph/fec/Makefile | 11 | ||||
-rw-r--r-- | sys/modules/netgraph/fec/sample_startup | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sys/modules/netgraph/fec/Makefile b/sys/modules/netgraph/fec/Makefile new file mode 100644 index 0000000..2f4ccc5 --- /dev/null +++ b/sys/modules/netgraph/fec/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +KMOD= ng_fec +SRCS= ng_fec.c opt_inet.h opt_inet6.h +#MAN4= ng_fec.4 +NOMAN= yes +KMODDEPS= netgraph + +CFLAGS += -DINET -DINET6 + +.include <bsd.kmod.mk> diff --git a/sys/modules/netgraph/fec/sample_startup b/sys/modules/netgraph/fec/sample_startup new file mode 100644 index 0000000..32cfa53 --- /dev/null +++ b/sys/modules/netgraph/fec/sample_startup @@ -0,0 +1,8 @@ +# $FreeBSD$ +kldload ./ng_fec.ko +ngctl mkpeer fec dummy fec +ngctl msg fec0: add_iface '"dc0"' +ngctl msg fec0: add_iface '"dc1"' +ngctl msg fec0: add_iface '"dc2"' +ngctl msg fec0: add_iface '"dc3"' +ngctl msg fec0: set_mode_inet |