flow_dissector: add support for IPPROTO_IPV6

Support IPPROTO_IPV6 similar to IPPROTO_IPIP

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Tom Herbert 2013-07-29 11:07:42 -07:00 committed by David S. Miller
parent fca4189551
commit b438f940d3

View File

@ -141,6 +141,9 @@ bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow)
case IPPROTO_IPIP: case IPPROTO_IPIP:
proto = htons(ETH_P_IP); proto = htons(ETH_P_IP);
goto ip; goto ip;
case IPPROTO_IPV6:
proto = htons(ETH_P_IPV6);
goto ipv6;
default: default:
break; break;
} }