artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b766b96
)
document that ip_off and ip_len are now in network byte order
author
deraadt
<deraadt@openbsd.org>
Wed, 5 Feb 1997 14:40:40 +0000
(14:40 +0000)
committer
deraadt
<deraadt@openbsd.org>
Wed, 5 Feb 1997 14:40:40 +0000
(14:40 +0000)
share/man/man4/ip.4
patch
|
blob
|
history
diff --git
a/share/man/man4/ip.4
b/share/man/man4/ip.4
index
cfb7cfd
..
c351178
100644
(file)
--- a/
share/man/man4/ip.4
+++ b/
share/man/man4/ip.4
@@
-324,9
+324,13
@@
the fields of the IP header, including the following:
ip->ip_v = IPVERSION;
ip->ip_hl = hlen >> 2;
ip->ip_id = 0; /* 0 means kernel set appropriate value */
-ip->ip_off = offset;
+ip->ip_off = htons(offset);
+ip->ip_len = htons(len);
.Ed
.sp .5
+Additionally note that starting with
+.Tn OpenBSD 2.1
+the ip_off and ip_len fields are in network byte order.
If the header source address is set to
.Dv INADDR_ANY,
the kernel will choose an appropriate address.