gugus

pimd patch1 from the famous gleb!

Jan 15th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. --- igmp.c.orig 2014-01-15 12:44:13.730996694 +0100
  2. +++ igmp.c 2014-01-15 12:44:17.343999780 +0100
  3. @@ -169,7 +169,11 @@
  4. #ifdef RAW_INPUT_IS_RAW
  5. ipdatalen = ntohs(ip->ip_len) - iphdrlen;
  6. #else
  7. + #if __FreeBSD_version >= 1000000
  8. + ipdatalen = ip->ip_len - iphdrlen;
  9. + #else
  10. ipdatalen = ip->ip_len;
  11. + #endif
  12. #endif
  13. if (iphdrlen + ipdatalen != recvlen) {
  14. logit(LOG_WARNING, 0, "Received packet from %s shorter (%u bytes) than hdr+data length (%u+%u)",
Advertisement
Add Comment
Please, Sign In to add comment