diff options
author | deraadt <deraadt@openbsd.org> | 2001-12-10 20:30:46 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2001-12-10 20:30:46 +0000 |
commit | 638fb4025b054b78fae7b82bf78320d37872ef9f (patch) | |
tree | b36cf603734aaaef356042c631bbd95ffeb2006d /usr.sbin/mrinfo | |
parent | Since VOP_READ is never called on VDIR vnodes and ext2fs_read (diff) | |
download | wireguard-openbsd-638fb4025b054b78fae7b82bf78320d37872ef9f.tar.xz wireguard-openbsd-638fb4025b054b78fae7b82bf78320d37872ef9f.zip |
follow post-2.1 ip_off & ip_len byte orders
Diffstat (limited to 'usr.sbin/mrinfo')
-rw-r--r-- | usr.sbin/mrinfo/mrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c index 2bf1c403584..1bfa27e267b 100644 --- a/usr.sbin/mrinfo/mrinfo.c +++ b/usr.sbin/mrinfo/mrinfo.c @@ -514,7 +514,7 @@ main(argc, argv) src = ip->ip_src.s_addr; dst = ip->ip_dst.s_addr; iphdrlen = ip->ip_hl << 2; - ipdatalen = ip->ip_len; + ipdatalen = ntohs(ip->ip_len); if (iphdrlen + ipdatalen != recvlen) { log(LOG_WARNING, 0, "packet shorter (%u bytes) than hdr+data length (%u+%u)", |