diff options
author | Martin Gálik <magalik@cisco.com> | 2017-04-19 01:12:27 -0700 |
---|---|---|
committer | Martin Gálik <magalik@cisco.com> | 2017-04-26 00:23:22 -0700 |
commit | 6bc8c6493c8e7e1401130f8c9ca34c9b2915a7ad (patch) | |
tree | 3c1a6830f71a3d74315792b2d38bbc37fc8bccfb /src/plugins/snat/snat.api | |
parent | c9fc77c510e042cf9379b427b63dd3f17a23a584 (diff) |
CGNAT: close session API and CLI commands.
Change-Id: I9c8636bd2c4b8da2907e8e4a4f2be1a2c3a8e0bb
Signed-off-by: Martin Gálik <magalik@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.api')
-rw-r--r-- | src/plugins/snat/snat.api | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/plugins/snat/snat.api b/src/plugins/snat/snat.api index 573b6753711..5990eae5a24 100644 --- a/src/plugins/snat/snat.api +++ b/src/plugins/snat/snat.api @@ -527,3 +527,41 @@ define snat_det_get_timeouts_reply { u32 tcp_transitory; u32 icmp; }; + +/** \brief Close CGNAT session by outside address and port + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_ip4 - 1 if address type is IPv4 + @param out_addr - outside IP address + @param out_port - outside port + @param ext_addr - external host address + @param ext_port - external host port +*/ +autoreply define snat_det_close_session_out { + u32 client_index; + u32 context; + u8 is_ip4; + u8 out_addr[16]; + u16 out_port; + u8 ext_addr[16]; + u16 ext_port; +}; + +/** \brief Close CGNAT session by inside address and port + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_ip4 - 1 if address type is IPv4 + @param in_addr - inside IP address + @param in_port - inside port + @param ext_addr - external host address + @param ext_port - external host port +*/ +autoreply define snat_det_close_session_in { + u32 client_index; + u32 context; + u8 is_ip4; + u8 in_addr[16]; + u16 in_port; + u8 ext_addr[16]; + u16 ext_port; +}; |