aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/flowperpkt/flowperpkt.api
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2017-03-08 13:05:49 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-08 16:36:53 +0000
commitbb152882fbdeb730d47a08a77287c30b74b92407 (patch)
tree5bff55345e724501aac10277a484c8f9bcd6e43c /src/plugins/flowperpkt/flowperpkt.api
parent24537ca721371408e2e2b6e2663b7c43a43ecac3 (diff)
FLOWPERPKT: New API definition in preparation for stateful flows.
Change-Id: If9c4a5da06daf78000ea8637b95048f19b5019d0 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/flowperpkt/flowperpkt.api')
-rw-r--r--src/plugins/flowperpkt/flowperpkt.api19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/plugins/flowperpkt/flowperpkt.api b/src/plugins/flowperpkt/flowperpkt.api
index fa878f21ed3..1cf62c5401d 100644
--- a/src/plugins/flowperpkt/flowperpkt.api
+++ b/src/plugins/flowperpkt/flowperpkt.api
@@ -22,7 +22,7 @@ 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;
@@ -40,3 +40,20 @@ define flowperpkt_tx_interface_add_del_reply
/* Return value, zero means all OK */
i32 retval;
};
+
+define flowperpkt_params
+{
+ u32 client_index;
+ u32 context;
+ 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 */
+};
+
+define flowperpkt_params_reply
+{
+ u32 context;
+ i32 retval;
+};