summaryrefslogtreecommitdiff
path: root/include/net/udp.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-09 10:23:34 +0400
committerDavid S. Miller <davem@davemloft.net>2011-12-09 23:14:08 +0400
commitfce823381e3c082ba1b2e15d5151d1aa8afdc9e9 (patch)
treefe265662f80f822246f7705d3b2ac1e44fa84579 /include/net/udp.h
parent1942c518ca017f376b267a7c5e78c15d37202442 (diff)
downloadlinux-fce823381e3c082ba1b2e15d5151d1aa8afdc9e9.tar.xz
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 'include/net/udp.h')
-rw-r--r--include/net/udp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index f54a5156b248..1ffb39c9f324 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -194,9 +194,15 @@ extern int udp_lib_setsockopt(struct sock *sk, int level, int optname,
extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
__be32 daddr, __be16 dport,
int dif);
+extern struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport,
+ __be32 daddr, __be16 dport,
+ int dif, struct udp_table *tbl);
extern struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport,
const struct in6_addr *daddr, __be16 dport,
int dif);
+extern struct sock *__udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport,
+ const struct in6_addr *daddr, __be16 dport,
+ int dif, struct udp_table *tbl);
/*
* SNMP statistics for UDP and UDP-Lite