diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-10 20:30:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-12-10 20:30:47 +0000 |
commit | 33c3054b18f4e1f3548b60962face634c0e44988 (patch) | |
tree | 07e4247f8f2d82779c1933d2ff5d5616564daee2 /usr.sbin/mrouted/igmp.c | |
parent | f5a6bd6e1a5c0904abdfe4203aa0c0b9224efe5f (diff) |
follow post-2.1 ip_off & ip_len byte orders
Diffstat (limited to 'usr.sbin/mrouted/igmp.c')
-rw-r--r-- | usr.sbin/mrouted/igmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/igmp.c b/usr.sbin/mrouted/igmp.c index 2efb6d319b3..5ac21537f4c 100644 --- a/usr.sbin/mrouted/igmp.c +++ b/usr.sbin/mrouted/igmp.c @@ -152,7 +152,7 @@ accept_igmp(recvlen) } iphdrlen = ip->ip_hl << 2; - ipdatalen = ip->ip_len; + ipdatalen = ntohs(ip->ip_len); if (iphdrlen + ipdatalen != recvlen) { log(LOG_WARNING, 0, "received packet from %s shorter (%u bytes) than hdr+data length (%u+%u)", |