summaryrefslogtreecommitdiffstats
path: root/src/plugins/ct6/ct6.api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-03-06 11:14:03 -0500
committerFlorin Coras <florin.coras@gmail.com>2019-03-06 17:19:22 +0000
commita55df1081762b4e40698ef7d9196551851be646a (patch)
treeeb1867e1de1fc78d18da9067d04423dfdb199cd1 /src/plugins/ct6/ct6.api
parente275bed64d12009726fcf43943f1684195cd1e5d (diff)
ipv6 connection tracking plugin
A security feature: drop unsolicited global unicast traffic. Change-Id: I421da7d52e08b7acf40c62a1f6e2a6caac349e7e Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/ct6/ct6.api')
-rw-r--r--src/plugins/ct6/ct6.api27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/ct6/ct6.api b/src/plugins/ct6/ct6.api
new file mode 100644
index 00000000000..67af42fd9fe
--- /dev/null
+++ b/src/plugins/ct6/ct6.api
@@ -0,0 +1,27 @@
+
+/* Define a simple enable-disable binary API to control the feature */
+
+define ct6_enable_disable {
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+
+ /* Enable / disable the feature */
+ u8 enable_disable;
+
+ /* Inside or outside interface */
+ u8 is_inside;
+
+ /* Interface handle */
+ u32 sw_if_index;
+};
+
+define ct6_enable_disable_reply {
+ /* From the request */
+ u32 context;
+
+ /* Return value, zero means all OK */
+ i32 retval;
+};