mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 03:13:02 -05:00
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
13 lines
209 B
Makefile
13 lines
209 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../netinet
|
|
|
|
KMOD= ip_mroute
|
|
SRCS= ip_mroute.c opt_mac.h opt_mrouting.h
|
|
|
|
CFLAGS+= -DMROUTE_KLD
|
|
|
|
opt_mrouting.h:
|
|
echo "#define MROUTING 1" > ${.TARGET}
|
|
|
|
.include <bsd.kmod.mk>
|