diff options
author | ume <ume@FreeBSD.org> | 2003-10-01 16:00:12 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-01 16:00:12 +0000 |
commit | 59fe55cb24a64c7be3f93aa183ada9777e3b08d4 (patch) | |
tree | 79eedc3aacee6b2ff1504f99498a0a19d9178db5 /sys | |
parent | 7a9738e2626a7965b44e0e14bfb4ef3e518136fc (diff) | |
download | FreeBSD-src-59fe55cb24a64c7be3f93aa183ada9777e3b08d4.zip FreeBSD-src-59fe55cb24a64c7be3f93aa183ada9777e3b08d4.tar.gz |
Obey RANDOM_IP_ID.
Requested by: sam
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/ip6_output.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index fe5d662..14e54fd 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -70,6 +70,7 @@ #include "opt_inet6.h" #include "opt_ipsec.h" #include "opt_pfil_hooks.h" +#include "opt_random_ip_id.h" #include <sys/param.h> #include <sys/malloc.h> @@ -978,7 +979,11 @@ skip_ipsec2:; } else { struct mbuf **mnext, *m_frgpart; struct ip6_frag *ip6f; +#ifdef RANDOM_IP_ID u_int32_t id = htonl(ip6_randomid()); +#else + u_int32_t id = htonl(ip6_id++); +#endif u_char nextproto; /* |