diff options
author | julian <julian@FreeBSD.org> | 2004-06-25 19:22:05 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-25 19:22:05 +0000 |
commit | dfb6d511956c2a209c86265e60dde6f108cf61b3 (patch) | |
tree | e6486f45de5c63b28a090942d8f046694d0329cb /sys/modules | |
parent | d754d951b906e8d0c99ea9917952cdfb8c5c9378 (diff) | |
download | FreeBSD-src-dfb6d511956c2a209c86265e60dde6f108cf61b3.zip FreeBSD-src-dfb6d511956c2a209c86265e60dde6f108cf61b3.tar.gz |
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.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/ar/Makefile | 13 | ||||
-rw-r--r-- | sys/modules/sr/Makefile | 11 |
2 files changed, 21 insertions, 3 deletions
diff --git a/sys/modules/ar/Makefile b/sys/modules/ar/Makefile index 3951fd4..fae9452 100644 --- a/sys/modules/ar/Makefile +++ b/sys/modules/ar/Makefile @@ -1,8 +1,17 @@ # $FreeBSD$ - + .PATH: ${.CURDIR}/../../dev/ar KMOD = if_ar SRCS = if_ar.c if_ar_isa.c if_ar_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> diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile index 7b173ab..b49d21e 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> |