diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-01-16 03:57:29 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2004-01-16 03:57:29 +0000 |
commit | 13c4c7c65b3985b5f8cb4249d27f601886e2984d (patch) | |
tree | 9ee7227f5d8eddb8d04877359a08dd2a4e3b80de /usr.sbin/mrouted | |
parent | 1593fe3fbd08472eea722d9e1fc0264718d44553 (diff) |
sync with raw socket API change. reported by Esben Norby, tested by tedu
Diffstat (limited to 'usr.sbin/mrouted')
-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 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)", |