examples/vhost: check offset with vlan
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 5 Nov 2014 07:10:35 +0000 (15:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Nov 2014 21:20:32 +0000 (22:20 +0100)
commit6630bc42449aebba33b0817ae830cbdf3a83a1b6
treecd35ac5881d0d9c048b816e47cfd5cdee17a8882
parent72ec8d77ac68cdc2b74428e25e06765fbb10d0cb
examples/vhost: check offset with vlan

This patch checks the packet length offset value, and checks if the
extra bytes inside buffer cross page boundary.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/vhost/main.c