Added initial support for NDP (IPv6) 59/69859/8
authorXavier Simonart <xavier.simonart@intel.com>
Mon, 11 May 2020 19:00:33 +0000 (21:00 +0200)
committerXavier Simonart <xavier.simonart@intel.com>
Fri, 29 May 2020 21:45:09 +0000 (23:45 +0200)
commitc871c361f9d69a93429ae385e7dbf21a46aa6857
tree957ec8a53d2cd0a9b5676e163c22e8a3ae8f6f3e
parent7c4601f23c526b14a67674782b303663dfaa95af
Added initial support for NDP (IPv6)

Following messages are now handled by PROX
- router_solicitation
- neighbour_solicitation
- router_advertisement
- neighbour_advertisement

The following parameters are supported (through the PROX config file)
- sub mode=ndp
This will enable handling of router and neighbour solicitation
and advertisement.
- local ipv6=xxxx:xxxx:xxxxx:xxxx:xxxx:xxxx:xxxx:xxxx
This will configure the local IPv6 address of the port.
This parameter is optional. If not specified, the local IPv6
will be calculated from the EUI.
- global ipv6=xxxx:xxxx:xxxxx:xxxx:xxxx:xxxx:xxxx:xxxx
This will configure the global IPv6 address of the port.
This parameter is optional. If not specified, the global IPv6
will be calculated from the EUI and the router prefix received
from the router.
- ipv6 router=yes
This will cause the core to behave as an IPv6 router
i.e. it will generate Router Advertisement messages
This is only useful in back to back cases, when no real
IPv6 router is present in the setup.
- router prefix=xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
The router prefix usedin the router advertisement
The prefix will be used by the node to build an IPv6 global
address in cases none were configured.

"Unsollicited NA" parameter has been added within the core/task section.
If set to yes (Unsollicited NA=yes), then an unsollicited neighbour
Advertisement is sent at startup

A same core/task cannot support both l3 and ndp mode.

Those messages will be generated or handled when submode
is set to "ndp":
- neighbour sollicitation
- neighbour advertisement
- router sollicitation
- router advertisement

An example configuration is provided: config/ipv6.cfg in which
port 0 / core 1 plays the role of the generator and port 1 /
core 2 plays the role of the swap.

Change-Id: Id0ab32d384448b4cf767fb4a1c486fc023f4f395
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
33 files changed:
VNFs/DPPD-PROX/Makefile
VNFs/DPPD-PROX/cmd_parser.c
VNFs/DPPD-PROX/commands.c
VNFs/DPPD-PROX/config/ipv6.cfg [new file with mode: 0644]
VNFs/DPPD-PROX/defaults.c
VNFs/DPPD-PROX/defines.h
VNFs/DPPD-PROX/handle_gen.c
VNFs/DPPD-PROX/handle_master.c
VNFs/DPPD-PROX/handle_master.h
VNFs/DPPD-PROX/handle_routing.c
VNFs/DPPD-PROX/handle_swap.c
VNFs/DPPD-PROX/ip6_addr.h
VNFs/DPPD-PROX/lconf.c
VNFs/DPPD-PROX/main.c
VNFs/DPPD-PROX/packet_utils.c
VNFs/DPPD-PROX/packet_utils.h
VNFs/DPPD-PROX/parse_utils.c
VNFs/DPPD-PROX/prox_args.c
VNFs/DPPD-PROX/prox_cfg.h
VNFs/DPPD-PROX/prox_cksum.h
VNFs/DPPD-PROX/prox_compat.c [new file with mode: 0644]
VNFs/DPPD-PROX/prox_compat.h
VNFs/DPPD-PROX/prox_ipv6.c [new file with mode: 0644]
VNFs/DPPD-PROX/prox_ipv6.h [new file with mode: 0644]
VNFs/DPPD-PROX/prox_port_cfg.c
VNFs/DPPD-PROX/prox_shared.c
VNFs/DPPD-PROX/rx_pkt.c
VNFs/DPPD-PROX/rx_pkt.h
VNFs/DPPD-PROX/task_base.h
VNFs/DPPD-PROX/task_init.c
VNFs/DPPD-PROX/task_init.h
VNFs/DPPD-PROX/tx_pkt.c
VNFs/DPPD-PROX/tx_pkt.h