Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131187
b: refs/heads/master
c: 2783ef2
h: refs/heads/master
i:
  131185: b29b55f
  131183: 5e80d6c
v: v3
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Feb 6, 2009
1 parent a2aa0ae commit 4517987
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: efc683fc2a692735029067b4f939af2a3625e31d
refs/heads/master: 2783ef23128ad0a4b34e4121c1f7ff664785712f
6 changes: 4 additions & 2 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
struct udphdr *uh;
unsigned short ulen;
struct rtable *rt = (struct rtable*)skb->dst;
__be32 saddr = ip_hdr(skb)->saddr;
__be32 daddr = ip_hdr(skb)->daddr;
__be32 saddr, daddr;
struct net *net = dev_net(skb->dev);

/*
Expand All @@ -1259,6 +1258,9 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
if (udp4_csum_init(skb, uh, proto))
goto csum_error;

saddr = ip_hdr(skb)->saddr;
daddr = ip_hdr(skb)->daddr;

if (rt->rt_flags & (RTCF_BROADCAST|RTCF_MULTICAST))
return __udp4_lib_mcast_deliver(net, skb, uh,
saddr, daddr, udptable);
Expand Down

0 comments on commit 4517987

Please sign in to comment.