diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-19 21:47:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:53:53 -0500 |
commit | 60d5fcfb19d8a958fc563e52240cd05ec23f36c9 (patch) | |
tree | f1bb64a18b1b183ad1cdf84f88a42a0b643af720 /net/ipv4/xfrm4_state.c | |
parent | d26f398400311982d2433debae85746c348b7d58 (diff) |
[IPSEC]: Remove nhoff from xfrm_input
The nhoff field isn't actually necessary in xfrm_input. For tunnel
mode transforms we now throw away the output IP header so it makes no
sense to fill in the nexthdr field. For transport mode we can now let
the function transport_finish do the setting and it knows where the
nexthdr field is.
The only other thing that needs the nexthdr field to be set is the
header extraction code. However, we can simply move the protocol
extraction out of the generic header extraction.
We want to minimise the amount of info we have to carry around between
transforms as this simplifies the resumption process for async crypto.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_state.c')
-rw-r--r-- | net/ipv4/xfrm4_state.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_state.c b/net/ipv4/xfrm4_state.c index 3b067e8b7bfe..d837784a2199 100644 --- a/net/ipv4/xfrm4_state.c +++ b/net/ipv4/xfrm4_state.c | |||
@@ -56,7 +56,6 @@ int xfrm4_extract_header(struct sk_buff *skb) | |||
56 | XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off; | 56 | XFRM_MODE_SKB_CB(skb)->frag_off = iph->frag_off; |
57 | XFRM_MODE_SKB_CB(skb)->tos = iph->tos; | 57 | XFRM_MODE_SKB_CB(skb)->tos = iph->tos; |
58 | XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; | 58 | XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; |
59 | XFRM_MODE_SKB_CB(skb)->protocol = iph->protocol; | ||
60 | memset(XFRM_MODE_SKB_CB(skb)->flow_lbl, 0, | 59 | memset(XFRM_MODE_SKB_CB(skb)->flow_lbl, 0, |
61 | sizeof(XFRM_MODE_SKB_CB(skb)->flow_lbl)); | 60 | sizeof(XFRM_MODE_SKB_CB(skb)->flow_lbl)); |
62 | 61 | ||