nat: Fix ICMP bypass session creation 77/29277/3
authorVladimir Isaev <visaev@netgate.com>
Wed, 7 Oct 2020 11:55:11 +0000 (14:55 +0300)
committerMatthew Smith <mgsmith@netgate.com>
Wed, 14 Oct 2020 14:11:19 +0000 (14:11 +0000)
commit238d3844b210ff09d9092dd3f5d78cde8b7de1aa
tree7a5bba9abf6621299e59ee2aa50f7c84cffc7b08
parent41b5ed63c232f754d28cff56304d9efab6b15147
nat: Fix ICMP bypass session creation

After get_icmp_o2i_ed_key() bihash key may include
IP protocol and addresses from inner ICMP packet.

It is OK for session lookup, but we should not create
a session on ICMP error message receiving.

Type: fix

Signed-off-by: Vladimir Isaev <visaev@netgate.com>
Change-Id: Ic93272ebe90d2288a975265439f9e079eb28936a
src/plugins/nat/out2in_ed.c