Message ID | 1457483269-27967-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index e36bd03..bb9e175 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -219,6 +219,13 @@ ipv6: return false; proto = eth->h_proto; nhoff += sizeof(*eth); + + /* Cap headers that we access via pointers at the + * end of the Ethernet header as our maximum alignment + * at that point is only 2 bytes. + */ + if (NET_IP_ALIGN) + hlen = nhoff; } goto again; }