numam-dpdk/examples/ipsec-secgw
Fan Zhang 0d547ed037 examples/ipsec-secgw: support configuration file
This patch adds the configuration file support to ipsec_secgw
sample application. Instead of hard-coded rules, the users can
specify their own SP, SA, and routing rules in the configuration
file. A command line option "-f" is added to pass the
configuration file location to the application.

Configuration item formats:

SP rule format:
sp <ip_ver> <dir> esp <action> <priority> <src_ip> <dst_ip> \
<proto> <sport> <dport>

SA rule format:
sa <dir> <spi> <cipher_algo> <cipher_key> <auth_algo> <auth_key> \
<mode> <src_ip> <dst_ip>

Routing rule format:
rt <ip_ver> <src_ip> <dst_ip> <port>

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2016-10-04 20:41:09 +02:00
..
esp.c examples/ipsec-secgw: support transport mode 2016-06-21 12:12:09 +02:00
esp.h examples/ipsec-secgw: rework processing loop 2016-06-21 12:07:25 +02:00
ipip.h examples/ipsec-secgw: fix build with gcc 4.5 2016-07-22 11:53:32 +02:00
ipsec-secgw.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
ipsec.c examples/ipsec-secgw: support IPv6 2016-06-21 12:11:27 +02:00
ipsec.h examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
Makefile examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
parser.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
parser.h examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
rt.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
sa.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
sp4.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00
sp6.c examples/ipsec-secgw: support configuration file 2016-10-04 20:41:09 +02:00