aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/flowperpkt/flowperpkt.api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-04-24 10:46:54 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-04-25 16:18:42 +0000
commit11b8dbf78af49d270a0e72abe7dea73eec30d85f (patch)
tree5c9c513483f5c468efcb64b82c03c32733dc3a77 /src/plugins/flowperpkt/flowperpkt.api
parent45d3496f3d86ee1a930ce0ffd6ca3d1730355eb8 (diff)
"autoreply" flag: autogenerate standard xxx_reply_t messages
Change-Id: I72298aaae7d172082ece3a8edea4217c11b28d79 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/flowperpkt/flowperpkt.api')
-rw-r--r--src/plugins/flowperpkt/flowperpkt.api23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/plugins/flowperpkt/flowperpkt.api b/src/plugins/flowperpkt/flowperpkt.api
index 1cf62c5401d..3ff92dca05f 100644
--- a/src/plugins/flowperpkt/flowperpkt.api
+++ b/src/plugins/flowperpkt/flowperpkt.api
@@ -12,7 +12,7 @@
@param is_ipv6 - if non-zero the address is ipv6, else ipv4
@param sw_if_index - index of the interface
*/
-manual_print define flowperpkt_tx_interface_add_del
+autoreply manual_print define flowperpkt_tx_interface_add_del
{
/* Client identifier, set from api_main.my_client_index */
u32 client_index;
@@ -28,20 +28,7 @@ manual_print define flowperpkt_tx_interface_add_del
u32 sw_if_index;
};
-/** \brief Reply to enable/disable per-packet IPFIX recording messages
- @param context - returned sender context, to match reply w/ request
- @param retval - return code
-*/
-define flowperpkt_tx_interface_add_del_reply
-{
- /* From the request */
- u32 context;
-
- /* Return value, zero means all OK */
- i32 retval;
-};
-
-define flowperpkt_params
+autoreply define flowperpkt_params
{
u32 client_index;
u32 context;
@@ -51,9 +38,3 @@ define flowperpkt_params
u32 active_timer; /* ~0 is off, 0 is default */
u32 passive_timer; /* ~0 is off, 0 is default */
};
-
-define flowperpkt_params_reply
-{
- u32 context;
- i32 retval;
-};