X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fesp4.c;h=eae84cc39d3f10e984c93e11cb4a94c160bc6a80;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=49d3cee6ded7744319ff3f6072cd3596dff0127c;hpb=e3f6fb6212a7102bdb56ba38fa1e98fe72950475;p=linux-2.6.git diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 49d3cee6d..eae84cc39 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -17,11 +17,9 @@ struct esp_decap_data { __u8 proto; }; -static int esp_output(struct sk_buff *skb) +static int esp_output(struct xfrm_state *x, struct sk_buff *skb) { int err; - struct dst_entry *dst = skb->dst; - struct xfrm_state *x = dst->xfrm; struct iphdr *top_iph; struct ip_esp_hdr *esph; struct crypto_tfm *tfm; @@ -480,7 +478,7 @@ static int __init esp4_init(void) { struct xfrm_decap_state decap; - if (sizeof(struct esp_decap_data) < + if (sizeof(struct esp_decap_data) > sizeof(decap.decap_data)) { extern void decap_data_too_small(void);