VPP-45 Fix crash when GRE packet received on new i/f 21/1021/2
authorChris Luke <chrisy@flirble.org>
Fri, 6 May 2016 15:51:54 +0000 (11:51 -0400)
committerDave Barach <openvpp@barachs.net>
Sat, 7 May 2016 13:01:23 +0000 (13:01 +0000)
commit716490069ed21c23f51b928a35d3f6ba9e3e7de9
tree1602c022ed36edf06cdad31e6b6324ebea7409f9
parent30aff24e10610923d419c8f905e545f2c31d9c8c
VPP-45 Fix crash when GRE packet received on new i/f

If a GRE tunnel is created, no other interface added and the GRE tunnel
is not set "up" then a crash occurs on the first packet for this tunnel
because fib_index_by_sw_if_index[] does not yet have a mapping to the fib
the new interface is in. The code to set this is missing from
gre/interface.c

Change-Id: I567ad74a2af3ea5afe4a40ed39a1d4395642f77c
Signed-off-by: Chris Luke <chrisy@flirble.org>
vnet/vnet/gre/interface.c