udptunnel: new package
[feed/packages.git] / net / udptunnel / patches / 001-multicast.patch
1 Description: Fix issue where udptunnel was failing to receive packets sent to a multicast address. (See #254834).
2 Author: singh_chinmay@extenprise.net
3
4 --- udptunnel-1.1.orig/udptunnel.c
5 +++ udptunnel-1.1/udptunnel.c
6 @@ -217,7 +217,7 @@
7 (*relays)[i].udpaddr.sin_port = htons(udpport + i);
8 (*relays)[i].udpaddr.sin_family = AF_INET;
9 (*relays)[i].udp_ttl = udpttl;
10 - (*relays)[i].multicast_udp = IN_MULTICAST(htons(udpaddr.s_addr));
11 + (*relays)[i].multicast_udp = IN_MULTICAST(htonl(udpaddr.s_addr));
12
13 (*relays)[i].tcpaddr.sin_addr = tcpaddr;
14 (*relays)[i].tcpaddr.sin_port = htons(tcpport + i);