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:
Ruslan Ermilov 2000-10-25 10:56:41 +00:00
parent fbdfe15620
commit 8829f4ee0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67564

View File

@ -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
/*