aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-09 01:23:34 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-09 14:14:08 -0500
commitfce823381e3c082ba1b2e15d5151d1aa8afdc9e9 (patch)
treefe265662f80f822246f7705d3b2ac1e44fa84579 /net/ipv6
parent1942c518ca017f376b267a7c5e78c15d37202442 (diff)
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/ipv6')
-rw-r--r--net/ipv6/udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index adfe26a7fc63..4f96b5c63685 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -238,7 +238,7 @@ exact_match:
238 return result; 238 return result;
239} 239}
240 240
241static struct sock *__udp6_lib_lookup(struct net *net, 241struct sock *__udp6_lib_lookup(struct net *net,
242 const struct in6_addr *saddr, __be16 sport, 242 const struct in6_addr *saddr, __be16 sport,
243 const struct in6_addr *daddr, __be16 dport, 243 const struct in6_addr *daddr, __be16 dport,
244 int dif, struct udp_table *udptable) 244 int dif, struct udp_table *udptable)
@@ -305,6 +305,7 @@ begin:
305 rcu_read_unlock(); 305 rcu_read_unlock();
306 return result; 306 return result;
307} 307}
308EXPORT_SYMBOL_GPL(__udp6_lib_lookup);
308 309
309static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb, 310static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb,
310 __be16 sport, __be16 dport, 311 __be16 sport, __be16 dport,