diff options
author | 2023-08-31 09:48:45 +0200 | |
---|---|---|
committer | 2023-09-04 17:05:48 +0000 | |
commit | 8af78b8e360f12ffb9e347868a6e820bee618b81 (patch) | |
tree | eca07b5a911ca30c9862105f856777464f1c68e9 /src/plugins/arping/arping.api | |
parent | 34850e01876005422ba9523df5ae0400964e1c91 (diff) |
arping: api to return responder mac address
The new arping_acd call includes the responders mac address in the reply.
Enabling a client doing address conflict detection to identify if it
is itself that is replying or that it is another host uses the IP
address.
Type: feature
Change-Id: Ia4bab2af1086f06ed71ba42e2e07368d4e330a27
Signed-off-by: Ole Troan <otroan@employees.org>
Diffstat (limited to 'src/plugins/arping/arping.api')
-rw-r--r-- | src/plugins/arping/arping.api | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/arping/arping.api b/src/plugins/arping/arping.api index f797b8cf3aa..9ec01a9b55d 100644 --- a/src/plugins/arping/arping.api +++ b/src/plugins/arping/arping.api @@ -18,6 +18,7 @@ option version = "1.0.0"; import "vnet/interface_types.api"; import "vnet/ip/ip_types.api"; +import "vnet/ethernet/ethernet_types.api"; /** \brief @param client_index - opaque cookie to identify the sender @@ -55,6 +56,28 @@ define arping_reply }; /* + * Address Conflict Detection + */ +define arping_acd +{ + u32 client_index; + u32 context; + vl_api_address_t address; + vl_api_interface_index_t sw_if_index; + bool is_garp; + u32 repeat [default=1]; + f64 interval [default=1.0]; +}; + +define arping_acd_reply +{ + u32 context; + i32 retval; + u32 reply_count; + vl_api_mac_address_t mac_address; +}; + +/* * Local Variables: * eval: (c-set-style "gnu") * End: |