diff options
author | Neale Ranns <nranns@cisco.com> | 2019-07-25 06:11:58 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-07-26 09:32:56 +0000 |
commit | 99536f4b492478bab66ee8c6b0905a940b8db3c9 (patch) | |
tree | 8e8142c626629d140a577b7e53db6eeb054a74a4 /src/vnet/dhcp/client.h | |
parent | 1f5a6063c17e3d775773352e1fba725b09ad84ca (diff) |
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 <nranns@cisco.com>
Diffstat (limited to 'src/vnet/dhcp/client.h')
-rw-r--r-- | src/vnet/dhcp/client.h | 7 |
1 files changed, 5 insertions, 2 deletions
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; |