diff options
Diffstat (limited to 'src/plugins/nat/pnat/pnat.c')
-rw-r--r-- | src/plugins/nat/pnat/pnat.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/nat/pnat/pnat.c b/src/plugins/nat/pnat/pnat.c index 7f02ec4b2f8..547b063f286 100644 --- a/src/plugins/nat/pnat/pnat.c +++ b/src/plugins/nat/pnat/pnat.c @@ -110,9 +110,15 @@ static clib_error_t *pnat_enable_interface(u32 sw_if_index, if (input) { /* TODO: Make shallow virtual reassembly configurable */ - ip4_sv_reass_enable_disable_with_refcnt(sw_if_index, 1); + if (ip4_sv_reass_enable_disable_with_refcnt(sw_if_index, 1) != 0) + return clib_error_return(0, "PNAT SVR enable failed on %u", + sw_if_index); + } else { - ip4_sv_reass_output_enable_disable_with_refcnt(sw_if_index, 1); + if (ip4_sv_reass_output_enable_disable_with_refcnt(sw_if_index, + 1) != 0) + return clib_error_return(0, "PNAT SVR enable failed on %u", + sw_if_index); } interface->lookup_mask[attachment] = mask; |