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)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 18 Sep 2016 17:26:27 +0000 (02:26 +0900)
commit513e28e1983a31c52f30b4ca1b1e69e4c25b71fe
treec7ee06e6ae4a80994ffa49ed60a79f358f76dbf7
parent2f500d61a4df5764d94abfab7cbc43e4e9b92881
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.

[cherry-pick of net-next f95bf346226b9b79352e05508beececc807cc37a]

Change-Id: Ia369482c4645bcade320b2c33a763f1ce4378ff1
Tested: https://android-review.googlesource.com/269874
Fixes: 5d77dca82839 ("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