From: Herbert Xu <herbert@gondor.apana.org.au> Date: Wed, 14 Nov 2007 14:41:54 +0800Nope, it needs a little more than that :-) I just checked in the following: From befb75b758f8a4d4de4c535db9f845726eae05eb Mon Sep 17 00:00:00 2001 From: David S. Miller <davem@sunset.davemloft.net> Date: Tue, 13 Nov 2007 22:45:41 -0800 Subject: [PATCH] [IPV4] xfrm4_input.c: Fix build in non-NETFILTER case. Based in part on a patch from Herbert Xu. Signed-off-by: David S. Miller <davem@davemloft.net> --- net/ipv4/xfrm4_input.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c index cd25351..d5890c8 100644 --- a/net/ipv4/xfrm4_input.c +++ b/net/ipv4/xfrm4_input.c @@ -21,7 +21,6 @@ int xfrm4_extract_input(struct xfrm_state *x, struct sk_buff *skb) return xfrm4_extract_header(skb); } -#ifdef CONFIG_NETFILTER static inline int xfrm4_rcv_encap_finish(struct sk_buff *skb) { if (skb->dst == NULL) { @@ -36,7 +35,6 @@ drop: kfree_skb(skb); return NET_RX_DROP; } -#endif int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) @@ -64,7 +62,7 @@ int xfrm4_transport_finish(struct sk_buff *skb, int async) if (async) return xfrm4_rcv_encap_finish(skb); - return -nexthdr; + return -iph->protocol; #endif } -- 1.5.3.5 - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Alan Stern | Re: 2.6.22-rc2-mm1 |
| Satyam Sharma | Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures |
| William Lee Irwin III | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
git: | |
| Dale Farnsworth | Re: [PATCH 03/39] mv643xx_eth: shorten reg names |
| Jarek Poplawski | Re: HTB accuracy for high speed |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
