X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fcnat%2Fcnat_types.c;h=837f40082c305034d2f13cc77f56ce3067a098e0;hb=3fd77f7dea1ac91c5b4c9ede69b992a4e2243153;hp=74c1c24389f852eb77e03a44f521b3387076f53b;hpb=8786a4cd4a62f2817da7060afd8523857f504912;p=vpp.git diff --git a/src/plugins/cnat/cnat_types.c b/src/plugins/cnat/cnat_types.c index 74c1c24389f..837f40082c3 100644 --- a/src/plugins/cnat/cnat_types.c +++ b/src/plugins/cnat/cnat_types.c @@ -181,6 +181,7 @@ cnat_config (vlib_main_t * vm, unformat_input_t * input) cm->translation_hash_buckets = CNAT_DEFAULT_TRANSLATION_BUCKETS; cm->snat_hash_memory = CNAT_DEFAULT_SNAT_MEMORY; cm->snat_hash_buckets = CNAT_DEFAULT_SNAT_BUCKETS; + cm->snat_if_map_length = CNAT_DEFAULT_SNAT_IF_MAP_LEN; cm->scanner_timeout = CNAT_DEFAULT_SCANNER_TIMEOUT; cm->session_max_age = CNAT_DEFAULT_SESSION_MAX_AGE; cm->tcp_max_age = CNAT_DEFAULT_TCP_MAX_AGE; @@ -204,6 +205,8 @@ cnat_config (vlib_main_t * vm, unformat_input_t * input) ; else if (unformat (input, "snat-db-buckets %u", &cm->snat_hash_buckets)) ; + else if (unformat (input, "snat-if-map-len %u", &cm->snat_if_map_length)) + ; else if (unformat (input, "snat-db-memory %U", unformat_memory_size, &cm->snat_hash_memory)) ;