aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleper <blubblub@mail.ru>2023-10-23 08:23:55 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2023-10-23 14:44:09 +0000
commit5881889d20c6cc5bcdda34681c5c8bcc9f43defe (patch)
tree711d0d9d29594057aed46cb2931f1eff883991ef
parent2ac75eafd85218e6a4f7d66bfe8cb40575b684da (diff)
downloadports-5881889d20c6cc5bcdda34681c5c8bcc9f43defe.tar.gz
ports-5881889d20c6cc5bcdda34681c5c8bcc9f43defe.zip
net/igmpproxy: Patch to fix membership query packet checksums.
PR: 274656 Reported by: blubblub@mail.ru Approved by: franco@opnsense.org (maintainer)
-rw-r--r--net/igmpproxy/files/patch-src_igmp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/igmpproxy/files/patch-src_igmp.c b/net/igmpproxy/files/patch-src_igmp.c
new file mode 100644
index 000000000000..07ec003f8c30
--- /dev/null
+++ b/net/igmpproxy/files/patch-src_igmp.c
@@ -0,0 +1,11 @@
+--- src/igmp.c.orig 2022-10-29 10:01:46 UTC
++++ src/igmp.c
+@@ -288,7 +288,7 @@ static void buildIgmp(uint32_t src, uint32_t dst, int
+ igmp->igmp_group.s_addr = group;
+ igmp->igmp_cksum = 0;
+ igmp->igmp_cksum = inetChksum((unsigned short *)igmp,
+- IP_HEADER_RAOPT_LEN + datalen);
++ sizeof(igmp) + datalen);
+
+ }
+