From: Elias Rudberg Date: Fri, 4 Dec 2020 18:32:55 +0000 (+0100) Subject: nat: avoid hairpinning infinite loop problem X-Git-Tag: v21.06-rc0~49 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9b8cb5082471dd670066b8ba2872ffbcc35a87f8;hp=9b8cb5082471dd670066b8ba2872ffbcc35a87f8;p=vpp.git nat: avoid hairpinning infinite loop problem Fix in nat44 hairpinning code to check if anything was actually changed in the snat_hairpinning() routine, and return 0 if nothing changed. This helps avoid an infinite loop repeating the three nodes nat44-hairpinning-->ip4-lookup-->ip4-local in case there was no change. Also add a corresponding test case. Type: fix Signed-off-by: Elias Rudberg Change-Id: I95f48476bd002ac4c6789afe504681f1963e5d38 Signed-off-by: Elias Rudberg ---