Consolidate DHCP v4 and V6 implementation. No functional change intended 70/5470/1
authorNeale Ranns <nranns@cisco.com>
Thu, 16 Feb 2017 11:38:59 +0000 (03:38 -0800)
committerNeale Ranns <nranns@cisco.com>
Thu, 16 Feb 2017 12:01:06 +0000 (04:01 -0800)
commit2dd6852d8109e39d15a5c60f7ba58f1abcf9e455
treea63089809ea20b2ed69c26c211d7e2f2454e3e5b
parentc8c5335e3a1d1ba7ec1248b0ecbf00cc74ea57bb
Consolidate DHCP v4 and V6 implementation. No functional change intended

The DHCP proxy and VSS information maintained by VPP is the same for v4 and v6, so we can manage this state using the same code.
Packet handling is cleary different, so this is kept separate.

Change-Id: I10f10cc1f7f19debcd4c4b099c6de64e56bb0c69
Signed-off-by: Neale Ranns <nranns@cisco.com>
16 files changed:
src/vnet.am
src/vnet/dhcp/client.c
src/vnet/dhcp/client.h
src/vnet/dhcp/dhcp4_packet.h [moved from src/vnet/dhcp/packet.h with 93% similarity]
src/vnet/dhcp/dhcp4_proxy_error.def [moved from src/vnet/dhcp/proxy_error.def with 99% similarity]
src/vnet/dhcp/dhcp4_proxy_node.c [moved from src/vnet/dhcp/proxy_node.c with 74% similarity]
src/vnet/dhcp/dhcp6_packet.h [moved from src/vnet/dhcpv6/packet.h with 97% similarity]
src/vnet/dhcp/dhcp6_proxy_error.def [moved from src/vnet/dhcpv6/proxy_error.def with 100% similarity]
src/vnet/dhcp/dhcp6_proxy_node.c [moved from src/vnet/dhcpv6/proxy_node.c with 69% similarity]
src/vnet/dhcp/dhcp_api.c
src/vnet/dhcp/dhcp_proxy.c [new file with mode: 0644]
src/vnet/dhcp/dhcp_proxy.h [new file with mode: 0644]
src/vnet/dhcp/proxy.h [deleted file]
src/vnet/dhcpv6/proxy.h [deleted file]
src/vpp/api/custom_dump.c
test/test_dhcp.py