examples/ip_frag: fix unknown ethernet type
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Thu, 18 Jul 2019 10:11:13 +0000 (11:11 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 18 Jul 2019 21:07:17 +0000 (23:07 +0200)
commit826038fcfc7b82866673f10e22cc89860ca4cba3
tree54aff68b92be1e1aac350550c141e417a6e1a1b3
parentb869cbc955382d67aa2cc5318933a579099869b9
examples/ip_frag: fix unknown ethernet type

Right now app blindly set IPv4 ether type for all non IPv6 packets.
Instead we can save and later restore original type value.

Fixes: 74de12b7b63a ("examples/ip_fragmentation: overhaul")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/ip_fragmentation/main.c