aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp/dhcp_api.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-07-25 06:11:58 -0700
committerDamjan Marion <dmarion@me.com>2019-07-26 09:32:56 +0000
commit99536f4b492478bab66ee8c6b0905a940b8db3c9 (patch)
tree8e8142c626629d140a577b7e53db6eeb054a74a4 /src/vnet/dhcp/dhcp_api.c
parent1f5a6063c17e3d775773352e1fba725b09ad84ca (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/dhcp_api.c')
-rw-r--r--src/vnet/dhcp/dhcp_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/dhcp/dhcp_api.c b/src/vnet/dhcp/dhcp_api.c
index d71ffe93c2d..7eb2bf46a06 100644
--- a/src/vnet/dhcp/dhcp_api.c
+++ b/src/vnet/dhcp/dhcp_api.c
@@ -239,8 +239,7 @@ dhcp_client_lease_encode (vl_api_dhcp_lease_t * lease,
(u8 *) & client->domain_server_address[i],
sizeof (ip4_address_t));
- if (NULL != client->l2_rewrite)
- clib_memcpy (&lease->host_mac[0], client->l2_rewrite + 6, 6);
+ clib_memcpy (&lease->host_mac[0], client->client_hardware_address, 6);
}
static void