diff options
author | Jon Loeliger <jdl@netgate.com> | 2018-12-06 11:49:17 -0600 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-12-11 06:32:21 +0000 |
commit | 5a2e278a09726be627b8310e03f0522d60aafedf (patch) | |
tree | 52f570d386d8cd4593f30ba4d33c5558396a4ae6 /src/plugins/map/map.h | |
parent | 193c47d900bfbc15e4e46ede7c25ecf1ca95b898 (diff) |
MAP: Add API support for setting parameters.
Change-Id: Ic67073e1f2ebe54bee5cb96a951eb92a28b1de06
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/plugins/map/map.h')
-rw-r--r-- | src/plugins/map/map.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/map/map.h b/src/plugins/map/map.h index 0d4270d5806..21baf73678a 100644 --- a/src/plugins/map/map.h +++ b/src/plugins/map/map.h @@ -25,6 +25,13 @@ #define MAP_SKIP_IP6_LOOKUP 1 +#define MAP_ERR_GOOD 0 +#define MAP_ERR_BAD_POOL_SIZE -1 +#define MAP_ERR_BAD_HT_RATIO -2 +#define MAP_ERR_BAD_LIFETIME -3 +#define MAP_ERR_BAD_BUFFERS -4 +#define MAP_ERR_BAD_BUFFERS_TOO_LARGE -5 + int map_create_domain (ip4_address_t * ip4_prefix, u8 ip4_prefix_len, ip6_address_t * ip6_prefix, u8 ip6_prefix_len, ip6_address_t * ip6_src, u8 ip6_src_len, @@ -35,6 +42,17 @@ int map_add_del_psid (u32 map_domain_index, u16 psid, ip6_address_t * tep, u8 is_add); u8 *format_map_trace (u8 * s, va_list * args); +int map_param_set_fragmentation (bool inner, bool ignore_df); +int map_param_set_icmp (ip4_address_t * ip4_err_relay_src); +int map_param_set_icmp6 (u8 enable_unreachable); +void map_pre_resolve (ip4_address_t * ip4, ip6_address_t * ip6, int is_del); +int map_param_set_reassembly (bool is_ipv6, u16 lifetime_ms, + u16 pool_size, u32 buffers, f64 ht_ratio, + u32 * reass, u32 * packets); +int map_param_set_security_check (bool enable, bool fragments); +int map_param_set_traffic_class (bool copy, u8 tc); + + typedef enum { MAP_DOMAIN_PREFIX = 1 << 0, |