]> git.baikalelectronics.ru Git - kernel.git/commit
inet_diag: factorize code in new inet_diag_msg_common_fill() helper
authorEric Dumazet <edumazet@google.com>
Fri, 13 Mar 2015 22:51:12 +0000 (15:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Mar 2015 19:05:10 +0000 (15:05 -0400)
commit0b489d12211c047c3fec4299a67be3fde04a6325
treed1fe4404bcee2e27b0a57cca62ee03f389e86f54
parentf790b1e7a2a8bff8e5ba73f1301427c28987a288
inet_diag: factorize code in new inet_diag_msg_common_fill() helper

Now the three type of sockets share a common base, we can factorize
code in inet_diag_msg_common_fill().

inet_diag_entry no longer requires saddr_storage & daddr_storage
and the extra copies.

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