summaryrefslogtreecommitdiffstats
path: root/sys/modules/netgraph
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2002-10-29 19:12:44 +0000
committerjulian <julian@FreeBSD.org>2002-10-29 19:12:44 +0000
commit9e662115ff28ad98b791585637bd1f231acb95b3 (patch)
tree1cd4034bd5f26b752e9f6aaac8c8f136013855f6 /sys/modules/netgraph
parent13f1045bf9d450419deff3e8c406af5e4afdba2c (diff)
downloadFreeBSD-src-9e662115ff28ad98b791585637bd1f231acb95b3.zip
FreeBSD-src-9e662115ff28ad98b791585637bd1f231acb95b3.tar.gz
Finally get around to committing Bill Paul's FEC netgraph nodes.
These are really only partly netgraph nodes as they do not use the netgraph interfaces for many of the functions for which they could be used, however they represent important functionality. Submitted by: wpaul MFC after: 2 days
Diffstat (limited to 'sys/modules/netgraph')
-rw-r--r--sys/modules/netgraph/fec/Makefile11
-rw-r--r--sys/modules/netgraph/fec/sample_startup8
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
OpenPOWER on IntegriCloud