aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
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/ipv4
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/ipv4')
-rw-r--r--net/ipv4/udp.c3
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:
445/* UDP is nearly always wildcards out the wazoo, it makes no sense to try 445/* UDP is nearly always wildcards out the wazoo, it makes no sense to try
446 * harder than this. -DaveM 446 * harder than this. -DaveM
447 */ 447 */
448static struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, 448struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr,
449 __be16 sport, __be32 daddr, __be16 dport, 449 __be16 sport, __be32 daddr, __be16 dport,
450 int dif, struct udp_table *udptable) 450 int dif, struct udp_table *udptable)
451{ 451{
@@ -512,6 +512,7 @@ begin:
512 rcu_read_unlock(); 512 rcu_read_unlock();
513 return result; 513 return result;
514} 514}
515EXPORT_SYMBOL_GPL(__udp4_lib_lookup);
515 516
516static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, 517static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb,
517 __be16 sport, __be16 dport, 518 __be16 sport, __be16 dport,