summaryrefslogtreecommitdiffstats
path: root/sys/modules/ip_mroute_mod
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2004-08-14 15:32:40 +0000
committerdwmalone <dwmalone@FreeBSD.org>2004-08-14 15:32:40 +0000
commit5df13d37b27b8510415fb500f01a289443950ebb (patch)
tree56a806b0847f95ede378bb97ce9bfcb595420ea2 /sys/modules/ip_mroute_mod
parent271672aa9c335d2a4944e53a99960718533d3f22 (diff)
downloadFreeBSD-src-5df13d37b27b8510415fb500f01a289443950ebb.zip
FreeBSD-src-5df13d37b27b8510415fb500f01a289443950ebb.tar.gz
Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD
have already done this, so I have styled the patch on their work: 1) introduce a ip_newid() static inline function that checks the sysctl and then decides if it should return a sequential or random IP ID. 2) named the sysctl net.inet.ip.random_id 3) IPv6 flow IDs and fragment IDs are now always random. Flow IDs and frag IDs are significantly less common in the IPv6 world (ie. rarely generated per-packet), so there should be smaller performance concerns. The sysctl defaults to 0 (sequential IP IDs). Reviewed by: andre, silby, mlaier, ume Based on: NetBSD MFC after: 2 months
Diffstat (limited to 'sys/modules/ip_mroute_mod')
-rw-r--r--sys/modules/ip_mroute_mod/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/modules/ip_mroute_mod/Makefile b/sys/modules/ip_mroute_mod/Makefile
index 41dbcec..be135de 100644
--- a/sys/modules/ip_mroute_mod/Makefile
+++ b/sys/modules/ip_mroute_mod/Makefile
@@ -3,19 +3,11 @@
.PATH: ${.CURDIR}/../../netinet
KMOD= ip_mroute
-SRCS= ip_mroute.c opt_mac.h opt_mrouting.h opt_random_ip_id.h
+SRCS= ip_mroute.c opt_mac.h opt_mrouting.h
CFLAGS+= -DMROUTE_KLD
-RANDOM_IP_ID?= 0 # 0/1 - should jibe with kernel configuration
-
opt_mrouting.h:
echo "#define MROUTING 1" > ${.TARGET}
-opt_random_ip_id.h:
- touch ${.TARGET}
-.if ${RANDOM_IP_ID} > 0
- echo "#define RANDOM_IP_ID 1" > ${.TARGET}
-.endif
-
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud