[XFRM]: Add XFRM_MODE_xxx for future use.
[linux-2.6.git] / net / ipv6 / xfrm6_input.c
index 0405d74..ee2f6b3 100644 (file)
@@ -72,7 +72,7 @@ int xfrm6_rcv_spi(struct sk_buff *skb, u32 spi)
                if (x->mode->input(x, skb))
                        goto drop;
 
-               if (x->props.mode) { /* XXX */
+               if (x->props.mode == XFRM_MODE_TUNNEL) { /* XXX */
                        decaps = 1;
                        break;
                }