diff options
author | Craig Gallek <kraig@google.com> | 2015-06-17 10:59:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-21 10:16:50 -0700 |
commit | e0df02e0c2118892b302e8248dbbb21698bedfed (patch) | |
tree | ea0483402fab420afc7dd5732018c0d3d10d9265 /net/netlink/af_netlink.c | |
parent | b7d3282a245f44286b88e436b1d08c518cdf4569 (diff) | |
download | op-kernel-dev-e0df02e0c2118892b302e8248dbbb21698bedfed.zip op-kernel-dev-e0df02e0c2118892b302e8248dbbb21698bedfed.tar.gz |
sock_diag: fetch source port from inet_sock
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 Gallek <kraig@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
0 files changed, 0 insertions, 0 deletions