summaryrefslogtreecommitdiffstats
path: root/plugins/snat-plugin/snat/snat.api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-06-26 10:42:08 -0400
committerKeith Burns <alagalah@gmail.com>2016-07-01 18:20:13 +0000
commit20c02cb133cf7b8a0570b83acf927d5a0d601a36 (patch)
treec5358223dab1b0be982fd0f29d8414868393247f /plugins/snat-plugin/snat/snat.api
parentb8dca74c232d6f177479d644dc3359b82772ea9e (diff)
Simple ip4 NAT plugin
Change-Id: Iffe77bf2a05ced41474540ff54a842101aad7c41 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'plugins/snat-plugin/snat/snat.api')
-rw-r--r--plugins/snat-plugin/snat/snat.api25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/snat-plugin/snat/snat.api b/plugins/snat-plugin/snat/snat.api
new file mode 100644
index 00000000000..0c5f4373f87
--- /dev/null
+++ b/plugins/snat-plugin/snat/snat.api
@@ -0,0 +1,25 @@
+define snat_add_address_range {
+ u32 client_index;
+ u32 context;
+ u8 is_ip4;
+ u8 first_ip_address[16];
+ u8 last_ip_address[16];
+};
+
+define snat_add_address_range_reply {
+ u32 context;
+ i32 retval;
+};
+
+define snat_interface_add_del_feature {
+ u32 client_index;
+ u32 context;
+ u8 is_add;
+ u8 is_inside;
+ u32 sw_if_index;
+};
+
+define snat_interface_add_del_feature_reply {
+ u32 context;
+ i32 retval;
+};