]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Unify {raw,udp}6_sock_seq_show.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 31 May 2013 15:05:48 +0000 (15:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2013 19:56:14 +0000 (12:56 -0700)
commit54da49cc3650e055beb2b6a1a2a522d7099fc700
tree065a227c3cb4987c4cdc2442a41892ceb60ad509
parent78f44164fbb52a195da33dcc5101cad7e6f75c42
net: ipv6: Unify {raw,udp}6_sock_seq_show.

udp6_sock_seq_show and raw6_sock_seq_show are identical, except
the UDP version displays ports and the raw version displays the
protocol. Refactor most of the code in these two functions into
a new common ip6_dgram_sock_seq_show function, in preparation
for using it to display ICMPv6 sockets as well.

Also reduce the indentation in parts of include/net/transp_v6.h
to improve readability.

Compiles and displays reasonable results with CONFIG_IPV6={n,m,y}

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/transp_v6.h
net/ipv6/datagram.c
net/ipv6/raw.c
net/ipv6/udp.c