aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/sr
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2004-06-25 19:22:05 +0000
committerJulian Elischer <julian@FreeBSD.org>2004-06-25 19:22:05 +0000
commit327b288e5ce5515e6914ef443418cf2401384fe7 (patch)
treee6486f45de5c63b28a090942d8f046694d0329cb /sys/modules/sr
parent865897c9f1191913bae430d5d7ec86ad6c7d782b (diff)
downloadsrc-327b288e5ce5515e6914ef443418cf2401384fe7.tar.gz
src-327b288e5ce5515e6914ef443418cf2401384fe7.zip
Convert Netgraph to use mbuf tags to pass its meta information around.
Thanks to Sam for importing tags in a way that allowed this to be done. Submitted by: Gleb Smirnoff <glebius@cell.sick.ru> Also allow the sr and ar drivers to create netgraph versions of their modules. Document the change to the ksocket node.
Notes
Notes: svn path=/head/; revision=131108
Diffstat (limited to 'sys/modules/sr')
-rw-r--r--sys/modules/sr/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile
index 7b173ab26ad1..b49d21edbdbe 100644
--- a/sys/modules/sr/Makefile
+++ b/sys/modules/sr/Makefile
@@ -4,5 +4,14 @@
KMOD = if_sr
SRCS = if_sr.c if_sr_isa.c if_sr_pci.c
SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h
-
+
+NETGRAPH?= 0
+
+opt_netgraph.h:
+.if ${NETGRAPH} != 0
+ echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
+.else
+ echo "" > opt_netgraph.h
+.endif
+
.include <bsd.kmod.mk>