Thread (32 messages) 32 messages, 5 authors, 2016-09-29

Re: [PATCH v8 1/2] examples/ipsec-secgw: add configuration file support

From: Sergio Gonzalez Monroy <hidden>
Date: 2016-09-23 07:52:37

On 21/09/2016 13:05, Fan Zhang wrote:
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. An 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 <redacted>
---
  doc/guides/rel_notes/release_16_11.rst   |   4 +
  doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +++++++++++++------------------
  examples/ipsec-secgw/Makefile            |   1 +
  examples/ipsec-secgw/ipsec-secgw.c       |  58 ++-
  examples/ipsec-secgw/ipsec.h             |  14 +-
  examples/ipsec-secgw/parser.c            | 599 ++++++++++++++++++++++
  examples/ipsec-secgw/parser.h            | 116 +++++
  examples/ipsec-secgw/rt.c                | 255 ++++------
  examples/ipsec-secgw/sa.c                | 747 +++++++++++++++++----------
  examples/ipsec-secgw/sp4.c               | 538 ++++++++++++--------
  examples/ipsec-secgw/sp6.c               | 539 +++++++++++++-------
  11 files changed, 2397 insertions(+), 1319 deletions(-)
  create mode 100644 examples/ipsec-secgw/parser.c
  create mode 100644 examples/ipsec-secgw/parser.h
Acked-by: Sergio Gonzalez Monroy <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help