diff options
author | 2004-01-16 03:57:28 +0000 | |
---|---|---|
committer | 2004-01-16 03:57:28 +0000 | |
commit | 435d1c2a2ae360ae74801ff9483cc70b18a25838 (patch) | |
tree | 7360941eb23294c872259507a4bdd28d3c8f8bc8 | |
parent | log -> logit ISO C fix. (diff) | |
download | wireguard-openbsd-435d1c2a2ae360ae74801ff9483cc70b18a25838.tar.xz wireguard-openbsd-435d1c2a2ae360ae74801ff9483cc70b18a25838.zip |
sync with raw socket API change. reported by Esben Norby, tested by tedu
-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)", |