wok view linux64-wireguard/stuff/socket.u @ rev 25437

Add wireguard for linux64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 31 17:31:14 2022 +0000 (20 months ago)
parents
children
line source
1 --- socket.c
2 +++ socket.c
3 @@ -358,7 +358,6 @@
4 struct socket *new4 = NULL, *new6 = NULL;
5 struct udp_port_cfg port4 = {
6 .family = AF_INET,
7 - .local_ip.s_addr = htonl(INADDR_ANY),
8 .local_udp_port = htons(port),
9 .use_udp_checksums = true
10 };
11 @@ -366,12 +365,13 @@
12 int retries = 0;
13 struct udp_port_cfg port6 = {
14 .family = AF_INET6,
15 - .local_ip6 = IN6ADDR_ANY_INIT,
16 .use_udp6_tx_checksums = true,
17 .use_udp6_rx_checksums = true,
18 .ipv6_v6only = true
19 };
20 + memset(&port6.local_ip6, 0, 16); // port6.local_ip6 = IN6ADDR_ANY_INIT;
21 #endif
22 + port4.local_ip.s_addr = htonl(INADDR_ANY);
24 rcu_read_lock();
25 net = rcu_dereference(wg->creating_net);