]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commita4458343ac5986d010290915df6ab884afacbdb7
treed1fe4404bcee2e27b0a57cca62ee03f389e86f54
parenta07c92078d5cf32dcc7c3d673066f031d02dc454
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