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)
commit17ef66afc0bdbbdc5c526db5e24bdd2dc3df1205
tree065a227c3cb4987c4cdc2442a41892ceb60ad509
parent75698b17ac3b681f4345a9be48b147381d17266d
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