From 99536f4b492478bab66ee8c6b0905a940b8db3c9 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 25 Jul 2019 06:11:58 -0700 Subject: dhcp: send unicast and broadcast packets via the IP adjacency Type: feature this means DHCP packets are subject to the IP features configured on the interface - the unicast packets already were sent throught the adj - added UT for DHCP client sending a unicast renewal Change-Id: Id50db0b71822f44bf7cb639a524195cdc9873526 Signed-off-by: Neale Ranns --- src/vnet/dhcp/client.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/vnet/dhcp/client.h') diff --git a/src/vnet/dhcp/client.h b/src/vnet/dhcp/client.h index 2b5341d76ad..a79d6e59715 100644 --- a/src/vnet/dhcp/client.h +++ b/src/vnet/dhcp/client.h @@ -71,8 +71,6 @@ typedef struct dhcp_client_t_ /* Requested data (option 55) */ u8 *option_55_data; - u8 *l2_rewrite; - /* hostname and software client identifiers */ u8 *hostname; u8 *client_identifier; /* software version, e.g. vpe 1.0 */ @@ -87,6 +85,11 @@ typedef struct dhcp_client_t_ u8 client_hardware_address[6]; u8 client_detect_feature_enabled; + /* the unicast adjacency for the DHCP server */ + adj_index_t ai_ucast; + /* the broadcast adjacency on the link */ + adj_index_t ai_bcast; + dhcp_event_cb_t event_callback; } dhcp_client_t; -- cgit 1.2.3-korg