Message ID | 1457390162-3569-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 bb98f8b..7b25277 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -381,6 +381,13 @@ ip_proto_again: 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; }