Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78636
b: refs/heads/master
c: 0883ae0
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 28, 2008
1 parent fbfd037 commit c2359ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 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: fcb8c156c8277ee9d71c8c81587d494c9c5240b3
refs/heads/master: 0883ae0e5599656b5f3b0e9ce474e01dee7dfee4
12 changes: 5 additions & 7 deletions trunk/net/ipv4/xfrm4_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,18 @@ int xfrm4_transport_finish(struct sk_buff *skb, int async)

iph->protocol = XFRM_MODE_SKB_CB(skb)->protocol;

#ifdef CONFIG_NETFILTER
#ifndef CONFIG_NETFILTER
if (!async)
return -iph->protocol;
#endif

__skb_push(skb, skb->data - skb_network_header(skb));
iph->tot_len = htons(skb->len);
ip_send_check(iph);

NF_HOOK(PF_INET, NF_INET_PRE_ROUTING, skb, skb->dev, NULL,
xfrm4_rcv_encap_finish);
return 0;
#else
if (async)
return xfrm4_rcv_encap_finish(skb);

return -iph->protocol;
#endif
}

/* If it's a keepalive packet, then just eat it.
Expand Down
12 changes: 5 additions & 7 deletions trunk/net/ipv6/xfrm6_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ int xfrm6_transport_finish(struct sk_buff *skb, int async)
skb_network_header(skb)[IP6CB(skb)->nhoff] =
XFRM_MODE_SKB_CB(skb)->protocol;

#ifdef CONFIG_NETFILTER
#ifndef CONFIG_NETFILTER
if (!async)
return 1;
#endif

ipv6_hdr(skb)->payload_len = htons(skb->len);
__skb_push(skb, skb->data - skb_network_header(skb));

NF_HOOK(PF_INET6, NF_INET_PRE_ROUTING, skb, skb->dev, NULL,
ip6_rcv_finish);
return -1;
#else
if (async)
return ip6_rcv_finish(skb);

return 1;
#endif
}

int xfrm6_rcv(struct sk_buff *skb)
Expand Down

0 comments on commit c2359ea

Please sign in to comment.