summaryrefslogtreecommitdiffstats
path: root/src/vnet/dhcp
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-08-07 00:05:59 -0400
committerOle Trøan <otroan@employees.org>2019-08-20 13:35:21 +0000
commite71748291171e53158e2d36d8f413fed1a137013 (patch)
tree2cd4c20efd3fd75e3e180ae39fd2ab400c406d75 /src/vnet/dhcp
parent630ab5846bceddf8d663e9f488a2dc0378949827 (diff)
vppapigen: remove support for legacy typedefs
vppapigen has remapped legacy to typedefs behind the scenes for some time now. - update .api files to use new style typedefs. - issue error on 'typeonly define' in .api files - remove unneeded macros redefining vl_noop_handler Type: refactor Change-Id: I7a8c4a6dafacee6a131f95cd0e9b03a8c60dea8b Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet/dhcp')
-rw-r--r--src/vnet/dhcp/dhcp.api12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vnet/dhcp/dhcp.api b/src/vnet/dhcp/dhcp.api
index 6db9033a7f4..c84b3639103 100644
--- a/src/vnet/dhcp/dhcp.api
+++ b/src/vnet/dhcp/dhcp.api
@@ -75,7 +75,7 @@ autoreply define dhcp_proxy_set_vss
@param dscp - DSCP value set in IP packets sent by the client
@param pid - sender's pid
*/
-typeonly define dhcp_client
+typedef dhcp_client
{
u32 sw_if_index;
u8 hostname[64];
@@ -103,7 +103,7 @@ autoreply define dhcp_client_config
/** \brief Struct representing domain server
@param address - IP address
*/
-typeonly manual_print manual_endian define domain_server
+typedef domain_server
{
u8 address[16];
};
@@ -117,7 +117,7 @@ typeonly manual_print manual_endian define domain_server
@param router_address - Router IP address
@param host_mac - Host MAC address
*/
-typeonly define dhcp_lease
+typedef dhcp_lease
{
u32 sw_if_index;
u8 state;
@@ -177,7 +177,7 @@ define dhcp_proxy_dump
u8 is_ip6;
};
-typeonly manual_print manual_endian define dhcp_server
+typedef dhcp_server
{
u32 server_vrf_id;
u8 dhcp_server[16];
@@ -228,7 +228,7 @@ autoreply define dhcp6_clients_enable_disable
@param valid_time - valid lifetime
@param preferred_time - preferred lifetime
*/
-typeonly define dhcp6_address_info
+typedef dhcp6_address_info
{
u8 address[16];
u32 valid_time;
@@ -241,7 +241,7 @@ typeonly define dhcp6_address_info
@param valid_time - valid lifetime
@param preferred_time - preferred lifetime
*/
-typeonly define dhcp6_pd_prefix_info
+typedef dhcp6_pd_prefix_info
{
u8 prefix[16];
u8 prefix_length;