aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dhcp/dhcp.api
diff options
context:
space:
mode:
authorOle Troan <otroan@employees.org>2023-10-19 09:05:38 +0200
committerDamjan Marion <dmarion@0xa5.net>2023-11-16 15:38:51 +0000
commitf3be34e4433bb86509044290fa3cced543697a31 (patch)
treeecfc225dedd77a801e2bc69bfdca39287884dc7c /src/plugins/dhcp/dhcp.api
parent4b89013081851f5e71162244d9e052eac5a98f3d (diff)
dhcp: api to enable client detect on interface
DHCPv4 aka BOOTP is somewhat awkward. A DHCP client on an interface must receive DHCP packets to the broadcast address or to a unicast address. Apparently before it's been assigned to itself. Add this new API to allow external DHCP clients enable the DHCP client detect feature per interface. Type: improvement Change-Id: If55aac03f25a045496be483940e4f5e7e18885b9 Signed-off-by: Ole Troan <otroan@employees.org>
Diffstat (limited to 'src/plugins/dhcp/dhcp.api')
-rw-r--r--src/plugins/dhcp/dhcp.api9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/dhcp/dhcp.api b/src/plugins/dhcp/dhcp.api
index 4611d5fadd8..7f559128353 100644
--- a/src/plugins/dhcp/dhcp.api
+++ b/src/plugins/dhcp/dhcp.api
@@ -278,6 +278,15 @@ define dhcp_proxy_details
vl_api_dhcp_server_t servers[count];
};
+autoreply define dhcp_client_detect_enable_disable
+{
+ u32 client_index;
+ u32 context;
+
+ vl_api_interface_index_t sw_if_index;
+ bool enable;
+};
+
/** \brief Set DHCPv6 DUID-LL
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request