We now keep the ip_id field in network byte order all the
time, so there is no need to make the distinction between ip_output() and ip_input() cases. Reviewed by: silence on freebsd-net
This commit is contained in:
parent
fbdfe15620
commit
8829f4ee0b
@ -825,12 +825,14 @@ int out;
|
||||
# endif
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
/*
|
||||
* Be careful here: ip_id is in network byte order when called
|
||||
* from ip_output()
|
||||
*/
|
||||
if ((out) && (v == 4))
|
||||
ip->ip_id = ntohs(ip->ip_id);
|
||||
#endif
|
||||
|
||||
changed = 0;
|
||||
fin->fin_v = v;
|
||||
@ -1037,8 +1039,10 @@ int out;
|
||||
}
|
||||
#endif /* IPFILTER_LOG */
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
if ((out) && (v == 4))
|
||||
ip->ip_id = htons(ip->ip_id);
|
||||
#endif
|
||||
|
||||
#ifdef _KERNEL
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user