From 33c3054b18f4e1f3548b60962face634c0e44988 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 10 Dec 2001 20:30:47 +0000 Subject: follow post-2.1 ip_off & ip_len byte orders --- usr.sbin/mrouted/igmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/mrouted/igmp.c') 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)", -- cgit v1.2.3