nat: fix unknown proto translation out2in_ed 18/26018/4
authorAlexander Chernavin <achernavin@netgate.com>
Thu, 19 Mar 2020 15:17:52 +0000 (11:17 -0400)
committerMatthew Smith <mgsmith@netgate.com>
Tue, 31 Mar 2020 19:57:54 +0000 (19:57 +0000)
commit8c18f85d325d9c10c8ba695e51925a21f173fbb8
tree9c15d068b7f606ea38ea15c2ba8ca65b00e087e3
parent5cee0bca5d0f01d3f26e90dee79780382e843d04
nat: fix unknown proto translation out2in_ed

An unknown proto packet can be processed as UDP with destination port
rewriting which breaks the original packet.

With this commit, stop processing unknown proto packets after
nat44_ed_out2in_unknown_proto() execution.

Type: fix

Change-Id: Iea93faf3c282f542d5ee7120c15e1027c1e4abc9
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
src/plugins/nat/out2in_ed.c