diff options
author | Ole Trøan <otroan@employees.org> | 2018-12-21 06:33:36 +0000 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-21 07:48:39 +0000 |
commit | e21463d87979a49720bf1eb1744f01261ffea620 (patch) | |
tree | d5c9773a3c3547cb7af7ee11fa4d2c0215d1e9d9 /src/plugins/gbp/gbp_api.c | |
parent | 78cc4b0797a983d5d31b9127fea9c2b72ed081d7 (diff) |
Revert "Build issue after https://gerrit.fd.io/r/#/c/16508/."
This reverts commit 57f170bdf9967e3f8ea6e937a70c7f86187f95a2.
Change-Id: I1cab5be8b04ac881b712e67fd72ed202657fedf4
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_api.c')
-rw-r--r-- | src/plugins/gbp/gbp_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/gbp/gbp_api.c b/src/plugins/gbp/gbp_api.c index 567c7d80459..74355d1c033 100644 --- a/src/plugins/gbp/gbp_api.c +++ b/src/plugins/gbp/gbp_api.c @@ -154,7 +154,7 @@ vl_api_gbp_endpoint_add_t_handler (vl_api_gbp_endpoint_add_t * mp) ip_address_decode (&mp->endpoint.ips[ii], &ips[ii]); } } - mac_address_decode ((const u8 *) &mp->endpoint.mac, &mac); + mac_address_decode (mp->endpoint.mac, &mac); if (GBP_ENDPOINT_FLAG_REMOTE & gef) { @@ -260,7 +260,7 @@ gbp_endpoint_send_details (index_t gei, void *args) mp->endpoint.flags = gbp_endpoint_flags_encode (gef->gef_flags); mp->handle = htonl (gei); mp->age = vlib_time_now (vlib_get_main ()) - ge->ge_last_time; - mac_address_encode (&ge->ge_key.gek_mac, (u8 *) & mp->endpoint.mac); + mac_address_encode (&ge->ge_key.gek_mac, mp->endpoint.mac); vec_foreach_index (ii, ge->ge_key.gek_ips) { @@ -821,7 +821,7 @@ gbp_next_hop_decode (const vl_api_gbp_next_hop_t * in, index_t * gnhi) return (VNET_API_ERROR_NO_SUCH_FIB); ip_address_decode (&in->ip, &ip); - mac_address_decode ((const u8 *) &in->mac, &mac); + mac_address_decode (in->mac, &mac); *gnhi = gbp_next_hop_alloc (&ip, grd, &mac, gbd); |