[ovs-dev,v15,14/15] dp-packet: Fix invalid size of ICMPv6 header
diff mbox series

Message ID 20190911080828.2087-15-michalx.obrembski@intel.com
State Superseded
Headers show
Series
  • Support multi-segment mbufs
Related show

Commit Message

Michal Obrembski Sept. 11, 2019, 8:08 a.m. UTC
From: Artur Twardowski <arturx.twardowski@intel.com>

Signed-off-by: Artur Twardowski <arturx.twardowski@intel.com>
Signed-off-by: Michal Obrembski <michalx.obrembski@intel.com>
---
 lib/flow.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/lib/flow.c b/lib/flow.c
index 94cfd62..e6019bf 100644
--- a/lib/flow.c
+++ b/lib/flow.c
@@ -1105,8 +1105,7 @@  miniflow_extract(struct dp_packet *packet, struct miniflow *dst)
                     }
                 }
 
-                icmp = data_pull(&data, &size, sizeof *icmp);
-
+                icmp = data_pull(&data, &size, ICMP6_HEADER_LEN);
 
                 if (parse_icmpv6(&data, &size, icmp,
                                  &rso_flags, &nd_target, arp_buf, &opt_type)) {