summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-01-16 03:57:29 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2004-01-16 03:57:29 +0000
commit13c4c7c65b3985b5f8cb4249d27f601886e2984d (patch)
tree9ee7227f5d8eddb8d04877359a08dd2a4e3b80de
parent1593fe3fbd08472eea722d9e1fc0264718d44553 (diff)
sync with raw socket API change. reported by Esben Norby, tested by tedu
-rw-r--r--usr.sbin/mrouted/igmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrouted/igmp.c b/usr.sbin/mrouted/igmp.c
index 6ae59323cf8..2f16c1f6ba1 100644
--- a/usr.sbin/mrouted/igmp.c
+++ b/usr.sbin/mrouted/igmp.c
@@ -150,7 +150,7 @@ accept_igmp(int recvlen)
}
iphdrlen = ip->ip_hl << 2;
- ipdatalen = ntohs(ip->ip_len);
+ ipdatalen = ntohs(ip->ip_len) - iphdrlen;
if (iphdrlen + ipdatalen != recvlen) {
logit(LOG_WARNING, 0,
"received packet from %s shorter (%u bytes) than hdr+data length (%u+%u)",