dhcp: fix crash on unicast renewal send 38/22738/7
authorNeale Ranns <nranns@cisco.com>
Tue, 15 Oct 2019 15:47:55 +0000 (15:47 +0000)
committerNeale Ranns <nranns@cisco.com>
Fri, 25 Oct 2019 17:56:06 +0000 (17:56 +0000)
commit6bcc6a45573f387fa6c1682069da7ee9036cabe2
tree2471089b417624c5eeda998db113edeb5b4b5c95
parentd7b306657d205fddd781e982aec5f3c3dc69fa88
dhcp: fix crash on unicast renewal send

Type: fix

- when the addresses were learnt a copy of the client was sent to the
main thread, this meant the unicast adjacecny was saved on the copy
not on the original.
- Add logging.
- Improve the proxy-node that hands the clint packets so the DHCP
packets are traced.
 - allow a renewal to configure new address data

Change-Id: I6ab0afcccbc4a1cdefdd1b8beeda8fc7ba20ec1f
Signed-off-by: Neale Ranns <nranns@cisco.com>
12 files changed:
src/plugins/dhcp/CMakeLists.txt
src/plugins/dhcp/client.c
src/plugins/dhcp/client.h
src/plugins/dhcp/dhcp.api
src/plugins/dhcp/dhcp4_packet.c [new file with mode: 0644]
src/plugins/dhcp/dhcp4_packet.h
src/plugins/dhcp/dhcp4_proxy_error.def
src/plugins/dhcp/dhcp4_proxy_node.c
src/plugins/dhcp/dhcp_api.c
src/plugins/dhcp/test/test_dhcp.py
src/vlibmemory/api.h
src/vnet/ip/ip4_punt_drop.c