examples/ip_pipeline: fix null packet in source port
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 17 May 2016 16:02:10 +0000 (17:02 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Jun 2016 20:58:18 +0000 (22:58 +0200)
commitf5f3f684991c523de5e31478548374a55bf707f0
treef9f46b423401ce77b7e956b713bb4aa27a3e2cc1
parentaaa69e5db47275f81ca266049d6fe309d263e547
examples/ip_pipeline: fix null packet in source port

This patch fixes the NULL packet processing problem. Originally,
pipeline's write attempt to NULL packets generated by source
port may crash the application.

This patch fixes the problem by enforcing each source port
defined in cfg file containing a user specified or default pcap
file path.

Fixes: 0e1e7d53 ("examples/ip_pipeline: add pcap file source")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/ip_pipeline/config_parse.c
examples/ip_pipeline/init.c