"autoreply" flag: autogenerate standard xxx_reply_t messages
[vpp.git] / src / plugins / flowperpkt / flowperpkt.api
index fa878f2..3ff92dc 100644 (file)
@@ -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;
@@ -22,21 +22,19 @@ manual_print define flowperpkt_tx_interface_add_del
 
   /* Enable / disable the feature */
   u8 is_add;
-  u8 which;  /* 0 = ipv4, 1 = l2, 2 = ipv6 (not yet implemented) */
+  u8 which;  /* 0 = ipv4, 1 = l2, 2 = ipv6 */
 
   /* Interface handle */
   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
+autoreply define flowperpkt_params
 {
-  /* From the request */
+  u32 client_index;
   u32 context;
-
-  /* Return value, zero means all OK */
-  i32 retval;
+  u8 record_l2;
+  u8 record_l3;
+  u8 record_l4;
+  u32 active_timer;  /* ~0 is off, 0 is default */
+  u32 passive_timer; /* ~0 is off, 0 is default */
 };