diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1999-01-08 21:51:24 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1999-01-08 21:51:24 +0000 |
commit | c07341fac2ce2741b6a76adc2a128945bb889594 (patch) | |
tree | 321668943b40bf61453e796600fb41cd7fa98c51 /sys/netinet/ip_output.c | |
parent | f516dcb4a03468a0ee9f72fa265fd61d97333609 (diff) |
dont call ip_randomid() in htons().
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index cae2c256a0a..36e911f76be 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.37 1998/12/26 12:35:11 provos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.38 1999/01/08 21:51:22 provos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -151,7 +151,8 @@ ip_output(m0, va_alist) if ((flags & (IP_FORWARDING|IP_RAWOUTPUT)) == 0) { ip->ip_v = IPVERSION; ip->ip_off &= IP_DF; - ip->ip_id = htons(ip_randomid()); + ip->ip_id = ip_randomid(); + HTONS(ip->ip_id); ip->ip_hl = hlen >> 2; ipstat.ips_localout++; } else { |