diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-09 07:23:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-09 20:14:08 +0100 |
commit | fce823381e3c082ba1b2e15d5151d1aa8afdc9e9 (patch) | |
tree | fe265662f80f822246f7705d3b2ac1e44fa84579 /net/ipv4/udp.c | |
parent | inet_diag: Generalize inet_diag dump and get_exact calls (diff) | |
download | linux-fce823381e3c082ba1b2e15d5151d1aa8afdc9e9.tar.xz linux-fce823381e3c082ba1b2e15d5151d1aa8afdc9e9.zip |
udp: Export code sk lookup routines
The UDP diag get_exact handler will require them to find a
socket by provided net, [sd]addr-s, [sd]ports and device.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index ad481b32f1e3..5d075b5f70fc 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -445,7 +445,7 @@ exact_match: /* UDP is nearly always wildcards out the wazoo, it makes no sense to try * harder than this. -DaveM */ -static struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, +struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, __be16 dport, int dif, struct udp_table *udptable) { @@ -512,6 +512,7 @@ begin: rcu_read_unlock(); return result; } +EXPORT_SYMBOL_GPL(__udp4_lib_lookup); static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport, |