summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 22:42:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 22:42:00 +0000
commit38060a534e240914301c04a72f34e0f3a2e07da5 (patch)
tree2676c31c30174ba275ff606006c61c7e02d4fdc6 /sys
parent8af7de9e2d1c28f31002f7da5d8a176e4f61d76e (diff)
for IP_HDRINCL option, use ip_len/ip_off in network order; lidl@va.pubnix.com
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/raw_ip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index 97d641fddb4..1efb0a209f3 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip.c,v 1.8 1997/01/26 01:23:44 tholo Exp $ */
+/* $OpenBSD: raw_ip.c,v 1.9 1997/01/30 22:41:59 deraadt Exp $ */
/* $NetBSD: raw_ip.c,v 1.25 1996/02/18 18:58:33 christos Exp $ */
/*
@@ -190,6 +190,8 @@ rip_output(m, va_alist)
return (EMSGSIZE);
}
ip = mtod(m, struct ip *);
+ NTOHS(ip->ip_len);
+ NTOHS(ip->ip_off);
/*
* don't allow both user specified and setsockopt options,
* and don't allow packet length sizes that will crash