]> git.baikalelectronics.ru Git - kernel.git/commit
erspan: return PACKET_REJECT when the appropriate tunnel is not found
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Mon, 10 Sep 2018 14:19:47 +0000 (22:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Sep 2018 06:50:53 +0000 (23:50 -0700)
commit922ce9c5155c602770050fe0be2f2f24390f6f53
tree0d277fb18f3a66184b6020c04fbc885b71f950fd
parente40315a4d19bbd435ca6ff5f090382b574e2d7b4
erspan: return PACKET_REJECT when the appropriate tunnel is not found

If erspan tunnel hasn't been established, we'd better send icmp port
unreachable message after receive erspan packets.

Fixes: 47b2af5234e3 ("gre: introduce native tunnel support for ERSPAN")
Cc: William Tu <u9012063@gmail.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c