]> git.baikalelectronics.ru Git - kernel.git/commit
net: diag: make udp_diag_destroy work for mapped addresses.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 7 Sep 2016 04:38:35 +0000 (13:38 +0900)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 00:31:30 +0000 (17:31 -0700)
commit1b84bdda85778b9e8792b3b83bc36a9d5be016a8
tree38a250371a5277987b81069b88d4509067733ab5
parent459ad8dd9cf1ea483c04cb9b2f466b19154d78b8
net: diag: make udp_diag_destroy work for mapped addresses.

udp_diag_destroy does look up the IPv4 UDP hashtable for mapped
addresses, but it gets the IPv4 address to look up from the
beginning of the IPv6 address instead of the end.

Tested: https://android-review.googlesource.com/269874
Fixes: 9cdf08c4626a ("net: diag: support SOCK_DESTROY for UDP sockets")
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_diag.c