Fix ip6-rewrite drops when no feature is configured 96/2496/2
authorAkshayaNadahalli <anadahal@cisco.com>
Thu, 25 Aug 2016 08:55:28 +0000 (10:55 +0200)
committerDave Barach <openvpp@barachs.net>
Thu, 25 Aug 2016 12:26:19 +0000 (12:26 +0000)
commit082b39dc6764c883bdda647c610065b506d4ba2d
tree441573e1a68ddd65c5a6181bab5c0d3a2db2c5db
parent8d281b36e5124e61201a12c90fde1dfceab39fce
Fix ip6-rewrite drops when no feature is configured

In ip6_rewrite_inline(), only in dual loop next0 and next1 are set to IP6_REWRITE_NEXT_DROP and never updated unless there is an o/p feature configured on it. So any packets processed under dual loop are dropped.
Single loop works fine as next0 is updated correctly.
Fix is to update next node from adjacency under dual packet loop processing.

Change-Id: I902fcc84ed307464d92499f9d37137af660b592c
Signed-off-by: AkshayaNadahalli <anadahal@cisco.com>
vnet/vnet/ip/ip6_forward.c