[XFRM]: Add XFRM_MODE_xxx for future use.
[linux-2.6.git] / net / ipv4 / xfrm4_input.c
index 817ed84..040e847 100644 (file)
@@ -106,7 +106,7 @@ int xfrm4_rcv_encap(struct sk_buff *skb, __u16 encap_type)
                if (x->mode->input(x, skb))
                        goto drop;
 
-               if (x->props.mode) {
+               if (x->props.mode == XFRM_MODE_TUNNEL) {
                        decaps = 1;
                        break;
                }