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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user