numam-dpdk/lib/librte_net
Olivier Matz b081c1dd2e net: fix inner L2 length in packet type parser
The inner L2 length returned by rte_net_get_ptype() is not
properly initialized. If the caller does not zero the header
lengths structure, the inner_l2 field will be undefined.

Fix it by initializing inner_l2 to 0 when parsing a inner layer.

Fixes: 2c15c5377d ("net: support NVGRE in software packet type parser")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2017-10-05 23:34:45 +02:00
..
Makefile net: add CRC computation API 2017-04-05 23:03:23 +02:00
net_crc_neon.h update Cavium Inc copyright headers 2017-07-08 17:43:49 +02:00
net_crc_sse.h eal: introduce macro for always inline 2017-06-06 17:21:55 +02:00
rte_arp.h net: change arp header struct declaration 2015-02-20 22:10:52 +01:00
rte_ether.h net/i40e: add LLDP check for ethertype filter 2017-05-05 17:19:52 +02:00
rte_gre.h net: add GRE header structure 2016-10-11 18:17:13 +02:00
rte_icmp.h app/testpmd: add engine that replies to ARP and ICMP echo requests 2014-05-16 13:25:16 +02:00
rte_ip.h net: add function to calculate checksum in mbuf 2016-10-13 20:44:18 +02:00
rte_net_crc.c net: implement CRC for ARM64 NEON 2017-07-04 15:58:45 +02:00
rte_net_crc.h net: implement CRC for ARM64 NEON 2017-07-04 15:58:45 +02:00
rte_net_version.map net: add CRC computation API 2017-04-05 23:03:23 +02:00
rte_net.c net: fix inner L2 length in packet type parser 2017-10-05 23:34:45 +02:00
rte_net.h lib: fix IPv6 tunnel checksum 2017-04-10 22:49:57 +02:00
rte_sctp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_tcp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_udp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00