mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1942c518ca
commit
fce823381e
3 changed files with 10 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue