[ovs-dev] [PATCH v16 13/14] dp-packet: Fix invalid size of ICMPv6 header

Michal Obrembski michalx.obrembski at intel.com
Wed Sep 11 13:30:02 UTC 2019


From: Artur Twardowski <arturx.twardowski at intel.com>

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

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)) {
-- 
2.7.4



More information about the dev mailing list