summaryrefslogtreecommitdiffstats
path: root/src/vnet/fib
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-07-29 11:50:31 -0700
committerNeale Ranns <nranns@cisco.com>2017-07-31 08:21:08 +0000
commit91d341c260c21b231543b29553d28d48b6148120 (patch)
tree5d9094e25309324c81378f6c179eecc2acd59f1e /src/vnet/fib
parent4a7d50ee8d729010f078730f91255191a24a331e (diff)
Fix fib_path encoding (VPP-921)
Change-Id: I4c3b22c333b052d068f1a5977e9d4e38471693d6 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/fib')
-rw-r--r--src/vnet/fib/fib_path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_path.c b/src/vnet/fib/fib_path.c
index a32baf217f9..00a3fa63d44 100644
--- a/src/vnet/fib/fib_path.c
+++ b/src/vnet/fib/fib_path.c
@@ -2163,9 +2163,11 @@ fib_path_encode (fib_node_index_t path_list_index,
case FIB_PATH_TYPE_RECEIVE:
api_rpath->rpath.frp_addr = path->receive.fp_addr;
api_rpath->rpath.frp_sw_if_index = path->receive.fp_interface;
+ api_rpath->dpo = path->fp_dpo;
break;
case FIB_PATH_TYPE_ATTACHED:
api_rpath->rpath.frp_sw_if_index = path->attached.fp_interface;
+ api_rpath->dpo = path->fp_dpo;
break;
case FIB_PATH_TYPE_ATTACHED_NEXT_HOP:
api_rpath->rpath.frp_sw_if_index = path->attached_next_hop.fp_interface;