net: ipv4: make the ping /proc code AF-independent
authorLorenzo Colitti <lorenzo@google.com>
Fri, 31 May 2013 15:05:49 +0000 (15:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2013 19:56:14 +0000 (12:56 -0700)
commit8cc785f6f429c2a3fb81745dc142cbd72a462c4a
treea8b9d6fab0cab1e1026fd99dc10c51ad8244a8cc
parent17ef66afc0bdbbdc5c526db5e24bdd2dc3df1205
net: ipv4: make the ping /proc code AF-independent

Introduce a ping_seq_afinfo structure (similar to its UDP
equivalent) and use it to make some of the ping /proc functions
address-family independent. Rename the remaining ping /proc
functions from ping_* to ping_v4_*.

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/ping.h
net/ipv4/ping.c