wok diff linux64-wireguard/stuff/socket.u @ rev 25477
icedtea6-jdk: find output to variable
author | Hans-G?nter Theisgen |
---|---|
date | Thu Oct 13 17:53:47 2022 +0100 (2022-10-13) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux64-wireguard/stuff/socket.u Thu Oct 13 17:53:47 2022 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +--- socket.c 1.5 ++++ socket.c 1.6 +@@ -358,7 +358,6 @@ 1.7 + struct socket *new4 = NULL, *new6 = NULL; 1.8 + struct udp_port_cfg port4 = { 1.9 + .family = AF_INET, 1.10 +- .local_ip.s_addr = htonl(INADDR_ANY), 1.11 + .local_udp_port = htons(port), 1.12 + .use_udp_checksums = true 1.13 + }; 1.14 +@@ -366,12 +365,13 @@ 1.15 + int retries = 0; 1.16 + struct udp_port_cfg port6 = { 1.17 + .family = AF_INET6, 1.18 +- .local_ip6 = IN6ADDR_ANY_INIT, 1.19 + .use_udp6_tx_checksums = true, 1.20 + .use_udp6_rx_checksums = true, 1.21 + .ipv6_v6only = true 1.22 + }; 1.23 ++ memset(&port6.local_ip6, 0, 16); // port6.local_ip6 = IN6ADDR_ANY_INIT; 1.24 + #endif 1.25 ++ port4.local_ip.s_addr = htonl(INADDR_ANY); 1.26 + 1.27 + rcu_read_lock(); 1.28 + net = rcu_dereference(wg->creating_net);