nat: fixed return values of enable/disable call 95/37695/5
authorFilip Varga <filipvarga89@gmail.com>
Wed, 23 Nov 2022 18:47:56 +0000 (10:47 -0800)
committerMatthew Smith <mgsmith@netgate.com>
Fri, 9 Dec 2022 18:24:08 +0000 (18:24 +0000)
commit36c7e7cb34ba611e020be9f7ad4a93f9e6a8496d
treec372c8bef2ebef51d952802becf5ef2f5c14f2bc
parentc62ddb61a5963102bc9fed2f3cfc567d38caf741
nat: fixed return values of enable/disable call

NAT44 enable/disable return status was used
instead of appropriate VNET_API_ERROR_ code.

Type: fix
Signed-off-by: Filip Varga <filipvarga89@gmail.com>
Change-Id: If944866bf3061afdc91284c0ad475135e529bdc4
src/plugins/nat/nat44-ed/nat44_ed.c
src/plugins/nat/nat44-ei/nat44_ei.c
src/plugins/nat/nat44-ei/nat44_ei_api.c
src/vnet/error.h