search for: xfrm_mode_beet

Displaying 1 result from an estimated 1 matches for "xfrm_mode_beet".

2008 Sep 12
4
Custom build kernel patch fails big time.
...;encap) return -EINVAL; - x->props.header_len = sizeof(struct iphdr); + switch (x->props.mode) { + case XFRM_MODE_TRANSPORT: + return -EINVAL; + default: + case XFRM_MODE_TUNNEL: + x->props.header_len = sizeof(struct iphdr); + break; + case XFRM_MODE_BEET: + x->props.header_len += IPV4_BEET_PHMAXLEN; + break; + } return 0; } diff -urN a/net/ipv4/route.c b/net/ipv4/route.c --- a/net/ipv4/route.c 2007-05-25 12:21:11.000000000 +0300 +++ b/net/ipv4/route.c 2007-05-25 12:21:11.000000000 +0300 @@ -108,6 +108,7 @@ #ifdef CONFI...