Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215491
b: refs/heads/master
c: aa976fc
h: refs/heads/master
i:
  215489: 34e9067
  215487: c262e79
v: v3
  • Loading branch information
Balazs Scheidler authored and Patrick McHardy committed Oct 21, 2010
1 parent da1ca54 commit 3138645
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88440ae70eda83d0cc94148d404f4990c9f1289c
refs/heads/master: aa976fc011efa1f0e3290c6c9addf7c20757f885
3 changes: 3 additions & 0 deletions trunk/include/net/udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ 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 *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport,
const struct in6_addr *daddr, __be16 dport,
int dif);

/*
* SNMP statistics for UDP and UDP-Lite
Expand Down
8 changes: 8 additions & 0 deletions trunk/net/ipv6/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,14 @@ static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb,
udptable);
}

struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport,
const struct in6_addr *daddr, __be16 dport, int dif)
{
return __udp6_lib_lookup(net, saddr, sport, daddr, dport, dif, &udp_table);
}
EXPORT_SYMBOL_GPL(udp6_lib_lookup);


/*
* This should be easy, if there is something there we
* return it, otherwise we block.
Expand Down

0 comments on commit 3138645

Please sign in to comment.