mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67564
@ -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 @@ logit:
|
||||
}
|
||||
#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