aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/map/map.h
diff options
context:
space:
mode:
authorJon Loeliger <jdl@netgate.com>2018-12-17 13:43:52 -0600
committerOle Trøan <otroan@employees.org>2018-12-19 14:27:00 +0000
commitf34597fc86c64d054073bf614761beea020c2244 (patch)
tree1dc65fc3c3d5e0e235eb0fb3b98524ebf6db6f0f /src/plugins/map/map.h
parentc6cb18b29d50d522d54b04587b13becc8363ec5c (diff)
MAP: Add API support for MAP input feature.
Change-Id: I336919a1d3a9d1b404e375a30575cce5e5335137 Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/map/map.h')
-rw-r--r--src/plugins/map/map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/map/map.h b/src/plugins/map/map.h
index 21baf73678a..5b8aef4e872 100644
--- a/src/plugins/map/map.h
+++ b/src/plugins/map/map.h
@@ -40,6 +40,8 @@ int map_create_domain (ip4_address_t * ip4_prefix, u8 ip4_prefix_len,
int map_delete_domain (u32 map_domain_index);
int map_add_del_psid (u32 map_domain_index, u16 psid, ip6_address_t * tep,
u8 is_add);
+int map_if_enable_disable (bool is_enable, u32 sw_if_index,
+ bool is_translation);
u8 *format_map_trace (u8 * s, va_list * args);
int map_param_set_fragmentation (bool inner, bool ignore_df);
@@ -51,6 +53,7 @@ int map_param_set_reassembly (bool is_ipv6, u16 lifetime_ms,
u32 * reass, u32 * packets);
int map_param_set_security_check (bool enable, bool fragments);
int map_param_set_traffic_class (bool copy, u8 tc);
+int map_param_set_tcp (u16 tcp_mss);
typedef enum
@@ -265,6 +268,8 @@ typedef struct {
bool sec_check_frag; /* Inbound security check for (subsequent) fragments */
bool icmp6_enabled; /* Send destination unreachable for security check failure */
+ u16 tcp_mss; /* TCP MSS clamp value */
+
/* ICMPv6 -> ICMPv4 relay parameters */
ip4_address_t icmp4_src_address;
vlib_simple_counter_main_t icmp_relayed;