diff options
author | Neale Ranns <nranns@cisco.com> | 2019-10-15 15:47:55 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-10-25 17:56:06 +0000 |
commit | 6bcc6a45573f387fa6c1682069da7ee9036cabe2 (patch) | |
tree | 2471089b417624c5eeda998db113edeb5b4b5c95 /src/plugins/dhcp/dhcp4_packet.h | |
parent | d7b306657d205fddd781e982aec5f3c3dc69fa88 (diff) |
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>
Diffstat (limited to 'src/plugins/dhcp/dhcp4_packet.h')
-rw-r--r-- | src/plugins/dhcp/dhcp4_packet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dhcp/dhcp4_packet.h b/src/plugins/dhcp/dhcp4_packet.h index 3076dd9529d..abd60127d6c 100644 --- a/src/plugins/dhcp/dhcp4_packet.h +++ b/src/plugins/dhcp/dhcp4_packet.h @@ -51,6 +51,8 @@ typedef struct dhcp_option_t options[0]; } dhcp_header_t; +extern u8 *format_dhcp_header (u8 * s, va_list * args); + typedef enum { DHCP_PACKET_DISCOVER = 1, @@ -60,6 +62,8 @@ typedef enum DHCP_PACKET_NAK, } dhcp_packet_type_t; +extern u8 *format_dhcp_packet_type (u8 * s, va_list * args); + typedef enum dhcp_packet_option_t_ { DHCP_PACKET_OPTION_MSG_TYPE = 53, |