ONE-8: Fix adj signature issues 59/1059/2
authorFlorin Coras <[email protected]>
Tue, 10 May 2016 18:01:44 +0000 (20:01 +0200)
committerDave Barach <[email protected]>
Wed, 11 May 2016 11:03:20 +0000 (11:03 +0000)
commitbd92de551f7cd5d57fc401b0eb83dd7170069f45
tree44451dfa1a61942b7663816e81d2a036d04b1b5d
parent215104e67f3574e9a54684c1ed628b4690f47979
ONE-8: Fix adj signature issues

When inserting routes into ip4/6 fibs, we first added a dummy adjacency
and afterwards manually updated its rewrite header to enable src/dst
forwarding. The downside to this is that the adj signature is changed
and therefore when deleting a route the adjacency signature is not
removed from adj_index_by_signature hash resulting in crash if the same
adjacency is re-inserted.

This patch avoids the issue by enforcing the insertion of 'complete'
adjacencies thereby obviating the need to update the rewrite header.

Change-Id: Ib43bfe72a65e2cf9ef7685a99596eb1d7723e543
Signed-off-by: Florin Coras <[email protected]>
vnet/vnet/lisp-gpe/interface.c
vnet/vnet/lisp-gpe/ip_forward.c