diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-06-08 05:24:28 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-06-09 07:30:14 +0000 |
commit | 732036d677b84aa8eaea45f8059783e827622b77 (patch) | |
tree | bac6a6fccc1ae8500d5d3f54dbede362d0402459 /src/plugins/snat/snat.c | |
parent | ef2a5bf0a31c9c0a94f9f497cb6353f46073e6ec (diff) |
NAT64: ICMP error support
Added ICMP error messages translation.
Added check for multi thread (not supported yet, so init failed).
Added API definition for custom NAT64 refix.
Change-Id: Ice2f04631af63e594aecc09087a1cf59f3b676fb
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.c')
-rw-r--r-- | src/plugins/snat/snat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/snat/snat.c b/src/plugins/snat/snat.c index e95abf27bd8..351f8dc7e12 100644 --- a/src/plugins/snat/snat.c +++ b/src/plugins/snat/snat.c @@ -725,7 +725,7 @@ snat_ip4_add_del_interface_address_cb (ip4_main_t * im, static clib_error_t * snat_init (vlib_main_t * vm) { snat_main_t * sm = &snat_main; - clib_error_t * error = 0; + clib_error_t * error = 0, * error_nat64 = 0; ip4_main_t * im = &ip4_main; ip_lookup_main_t * lm = &im->lookup_main; uword *p; @@ -782,7 +782,9 @@ static clib_error_t * snat_init (vlib_main_t * vm) /* Init IPFIX logging */ snat_ipfix_logging_init(vm); - error = nat64_init(vm); + error_nat64 = nat64_init(vm); + if (error_nat64) + clib_warning("NAT64 init failed: %U", format_clib_error, error_nat64); return error; } |