numam-dpdk/examples/tep_termination
Beilei Xing 8a499c23fe examples/tep_term: fix port id check
Coverity reported lots of out-of-bounds in function
vxlan_link, these issues should happen when index
port_id evaluates to 2, cause size of arrays is
2 in structure.
Fix this issue by modifying judgement condition, make
sure port_id is less than 2.

Coverity issue: 107121, 107122, 107123, 107124, 107125
Fixes: 4abe471ed6 ("examples/tep_term: implement VXLAN processing")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
2016-07-11 17:21:21 +02:00
..
main.c vhost: add vhost-user client mode 2016-06-22 09:47:07 +02:00
main.h vhost: export device id as the interface to applications 2016-06-22 09:42:57 +02:00
Makefile eal: set name to threads 2015-11-03 15:32:34 +01:00
vxlan_setup.c examples/tep_term: fix port id check 2016-07-11 17:21:21 +02:00
vxlan_setup.h vhost: export device id as the interface to applications 2016-06-22 09:42:57 +02:00
vxlan.c mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
vxlan.h examples/tep_term: add TSO offload configuration 2015-06-23 11:34:54 +02:00