Re: [PATCH net-next] sock_diag: fetch source port from inet_sock

2015-06-21 Thread David Miller
From: Craig Gallek Date: Wed, 17 Jun 2015 10:59:10 -0400 > When an inet_sock is destroyed, its source port (sk_num) is set to > zero as part of the unhash procedure. In order to supply a source > port as part of the NETLINK_SOCK_DIAG socket destruction broadcasts, > the source port number must b

[PATCH net-next] sock_diag: fetch source port from inet_sock

2015-06-17 Thread Craig Gallek
When an inet_sock is destroyed, its source port (sk_num) is set to zero as part of the unhash procedure. In order to supply a source port as part of the NETLINK_SOCK_DIAG socket destruction broadcasts, the source port number must be read from inet_sport instead. Tested: ss -E Signed-off-by: Craig