]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
inet_diag: remove duplicate code from inet_twsk_diag_dump()
authorEric Dumazet <edumazet@google.com>
Thu, 5 Mar 2015 18:18:14 +0000 (10:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 03:55:44 +0000 (22:55 -0500)
commit496127290f298d839918a14728b653b43ef02708
treecd91bdd93132621aacb7a98770753b0689db9dda
parente815665e1a8ca1525900377f74021c8cac390e8d
inet_diag: remove duplicate code from inet_twsk_diag_dump()

timewait sockets now share a common base with established sockets.

inet_twsk_diag_dump() can use inet_diag_bc_sk() instead of duplicating
code, granted that inet_diag_bc_sk() does proper userlocks
initialization.

twsk_build_assert() will catch any future changes that could break
the assumptions.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c