diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-11-12 09:53:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-12 09:53:30 +0100 |
commit | 8f424b5f32d78b4f353b3cddca9804808ef063eb (patch) | |
tree | 4e481fd6ed7ab82c5d70c30a66842fa432065f64 /net/ipv4 | |
parent | dccp: Resolve dependencies of features on choice of CCID (diff) | |
download | linux-8f424b5f32d78b4f353b3cddca9804808ef063eb.tar.xz linux-8f424b5f32d78b4f353b3cddca9804808ef063eb.zip |
net: Introduce read_pnet() and write_pnet() helpers
This patch introduces two helpers that deal with reading and writing
struct net pointers in various network structures.
Their implementation depends on CONFIG_NET_NS
For symmetry, both functions work with "struct net **pnet".
Their usage should reduce the number of #ifdef CONFIG_NET_NS,
without adding many helpers for each network structure
that hold a "struct net *pointer"
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions