[XFRM]: Add XFRM_MODE_xxx for future use.
[deliverable/linux.git] / net / ipv4 / xfrm4_tunnel.c
index f8ceaa127c836d4bc6e626ae95eebf22f190a04d..f110af5b1319f0968a4278283cdaa171761d6e75 100644 (file)
@@ -28,7 +28,7 @@ static int ipip_xfrm_rcv(struct xfrm_state *x, struct sk_buff *skb)
 
 static int ipip_init_state(struct xfrm_state *x)
 {
-       if (!x->props.mode)
+       if (x->props.mode != XFRM_MODE_TUNNEL)
                return -EINVAL;
 
        if (x->encap)
This page took 0.026211 seconds and 5 git commands to generate.