Obey RANDOM_IP_ID.
Requested by: sam
This commit is contained in:
parent
8373d51d4b
commit
2923494300
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120640
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user