diff options
author | ru <ru@FreeBSD.org> | 2000-09-14 14:42:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-09-14 14:42:04 +0000 |
commit | 92269e49c439d44bb3b525cc86f3a6f60cae7ed9 (patch) | |
tree | 2dfe0c58d20b6967465953a458c9b0f221773ac8 /sys/netinet/raw_ip.c | |
parent | fa323bab500d3be5a6e06a3d4ef11da85244efbe (diff) | |
download | FreeBSD-src-92269e49c439d44bb3b525cc86f3a6f60cae7ed9.zip FreeBSD-src-92269e49c439d44bb3b525cc86f3a6f60cae7ed9.tar.gz |
Follow BSD/OS and NetBSD, keep the ip_id field in network order all the time.
Requested by: wollman
Diffstat (limited to 'sys/netinet/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 94046e8..5d056ce 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -221,7 +221,7 @@ rip_output(m, so, dst) return EINVAL; } if (ip->ip_id == 0) - ip->ip_id = ip_id++; + ip->ip_id = htons(ip_id++); /* XXX prevent ip_output from overwriting header fields */ flags |= IP_RAWOUTPUT; ipstat.ips_rawout++; |