Project

General

Profile

Bug #13929 » patch-src_igmp.c

Nizam Moidu, 02/17/2023 02:39 PM

 
1
--- src/igmp.c.orig
2
+++ src/igmp.c
3
@@ -295,7 +295,7 @@ static void buildIgmp(uint32_t src, uint32_t dst, int type, int code, uint32_t g
4
     igmp->igmp_group.s_addr = group;
5
     igmp->igmp_cksum        = 0;
6
     igmp->igmp_cksum        = inetChksum((unsigned short *)igmp,
7
-                                         IP_HEADER_RAOPT_LEN + datalen);
8
+                                         sizeof(igmp) + datalen);
9

    
10
 }
(4-4/7)