Thread (1 message) 1 message, 1 author, 2020-03-10

Re: 2baecda bareudp: remove unnecessary udp_encap_enable() in bareudp_socket_create()

From: David Miller <davem@davemloft.net>
Date: 2020-03-10 01:05:06

From: "Varghese, Martin (Nokia - IN/Bangalore)" <redacted>
Date: Tue, 10 Mar 2020 01:03:49 +0000
HI Taehee Yoo & David,

The commit "2baecda bareudp: remove unnecessary udp_encap_enable() in bareudp_socket_create()" breaks the receive handler  of  bareudp device.
setup_udp_tunnel_sock does not call udp_encap_enable() if the socket is ipv6. In bareudp v6 socket is used to receive v4 traffic also.
Please let me know if I need to submit a patch again to put back the below lines

if (sock->sk->sk_family == AF_INET6)
             udp_encap_enable();
So submit a fix.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help