diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-20 09:38:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-29 01:54:32 +0300 |
commit | 42a73808ed4f30b739eb52bcbb33a02fe62ceef5 (patch) | |
tree | 3bd75f0afd1277d9340aa416ff79eec0be040392 /net/ipv6/sit.c | |
parent | ab70768ec78c6784958bab3b58fbe3f4150006df (diff) | |
download | linux-42a73808ed4f30b739eb52bcbb33a02fe62ceef5.tar.xz |
[RAW]: Consolidate proc interface.
Both ipv6/raw.c and ipv4/raw.c use the seq files to walk
through the raw sockets hash and show them.
The "walking" code is rather huge, but is identical in both
cases. The difference is the hash table to walk over and
the protocol family to check (this was not in the first
virsion of the patch, which was noticed by YOSHIFUJI)
Make the ->open store the needed hash table and the family
on the allocated raw_iter_state and make the start/next/stop
callbacks work with it.
This removes most of the code.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/sit.c')
0 files changed, 0 insertions, 0 deletions