nat: fix incorrect using about sw_if_index in nat44-ed static mapping v2 api.

Type: fix

Signed-off-by: Huawei LI <lihuawei_zzu@163.com>
Change-Id: I2a96ab0dafe4db796704341c325c43a6960be312
This commit is contained in:
Huawei LI
2022-12-03 11:30:49 +08:00
committed by Ole Tr�an
parent f1b97bf1d9
commit aff4d320f0

View File

@ -590,7 +590,7 @@ static void
}
sw_if_index = clib_net_to_host_u32 (mp->external_sw_if_index);
if (sw_if_index)
if (sw_if_index != ~0)
{
flags |= NAT_SM_FLAG_SWITCH_ADDRESS;
}