summaryrefslogtreecommitdiff
path: root/net/pimdd/files/patch-igmp.c
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-02-21 22:30:51 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-02-21 22:30:51 +0000
commit3dfe4b6f756b5e6fc5ecf5ddf3533c39c644c7f7 (patch)
tree17e29a3681c746a6ac822444dc8c73683de910ef /net/pimdd/files/patch-igmp.c
parentUpdate to new project home (diff)
- Fix build with clang, now no gcc is required on 10+ [1]
- Adapt it to new RAW socket behavior introduced in 10.0 [1] - Support staging [1] - Convert to new options framework - Respect CFLAGS PR: ports/186127 [1] Submitted by: Olivier Cochard-Labbe <olivier@cochard.me>
Notes
Notes: svn path=/head/; revision=345558
Diffstat (limited to 'net/pimdd/files/patch-igmp.c')
-rw-r--r--net/pimdd/files/patch-igmp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/pimdd/files/patch-igmp.c b/net/pimdd/files/patch-igmp.c
new file mode 100644
index 000000000000..bc6ea80785c6
--- /dev/null
+++ b/net/pimdd/files/patch-igmp.c
@@ -0,0 +1,14 @@
+--- igmp.c.orig 2014-01-22 00:05:49.560452946 +0100
++++ igmp.c 2014-01-22 00:06:57.098508699 +0100
+@@ -168,7 +168,11 @@
+ #ifdef RAW_INPUT_IS_RAW
+ ipdatalen = ntohs(ip->ip_len) - iphdrlen;
+ #else
++ #if __FreeBSD_version >= 1000000
++ ipdatalen = ip->ip_len - iphdrlen;
++ #else
+ ipdatalen = ip->ip_len;
++ #endif
+ #endif
+ if (iphdrlen + ipdatalen != recvlen) {
+ log(LOG_WARNING, 0,