Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200887
b: refs/heads/master
c: 44b451f
h: refs/heads/master
i:
  200885: 9280258
  200883: 9c8e0a9
  200879: 1d6de33
v: v3
  • Loading branch information
Peter Kosyh authored and David S. Miller committed Jul 4, 2010
1 parent b90694a commit ad7c2b7
Show file tree
Hide file tree
Showing 3 changed files with 5 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: 8bd39456bd5ab16d2a956dd3d567dcac9c73a6c0
refs/heads/master: 44b451f1633896de15d2d52e1a2bd462e80b7814
2 changes: 2 additions & 0 deletions trunk/net/ipv4/xfrm4_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse)
u8 *xprth = skb_network_header(skb) + iph->ihl * 4;

memset(fl, 0, sizeof(struct flowi));
fl->mark = skb->mark;

if (!(iph->frag_off & htons(IP_MF | IP_OFFSET))) {
switch (iph->protocol) {
case IPPROTO_UDP:
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/ipv6/xfrm6_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl, int reverse)
u8 nexthdr = nh[IP6CB(skb)->nhoff];

memset(fl, 0, sizeof(struct flowi));
fl->mark = skb->mark;

ipv6_addr_copy(&fl->fl6_dst, reverse ? &hdr->saddr : &hdr->daddr);
ipv6_addr_copy(&fl->fl6_src, reverse ? &hdr->daddr : &hdr->saddr);

Expand Down

0 comments on commit ad7c2b7

Please sign in to comment.