From 024064d0a944495de2bab839f96ebb9d06ecdb90 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 9 Aug 2017 05:35:02 -0700 Subject: PPPoE: use DPO protos in FIB entry path add/remove Change-Id: I6ac10ec0adf179b86f97269bbce2a7fd8796e72a Signed-off-by: Neale Ranns --- src/plugins/pppoe/pppoe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/pppoe/pppoe.c b/src/plugins/pppoe/pppoe.c index 4c63902a751..cb587e2934b 100644 --- a/src/plugins/pppoe/pppoe.c +++ b/src/plugins/pppoe/pppoe.c @@ -291,7 +291,8 @@ int vnet_pppoe_add_del_session /* add reverse route for client ip */ fib_table_entry_path_add (a->decap_fib_index, &pfx, FIB_SOURCE_PLUGIN_HI, FIB_ENTRY_FLAG_NONE, - pfx.fp_proto, &pfx.fp_addr, sw_if_index, ~0, + fib_proto_to_dpo (pfx.fp_proto), + &pfx.fp_addr, sw_if_index, ~0, 1, NULL, FIB_ROUTE_PATH_FLAG_NONE); } @@ -322,7 +323,7 @@ int vnet_pppoe_add_del_session /* delete reverse route for client ip */ fib_table_entry_path_remove (a->decap_fib_index, &pfx, FIB_SOURCE_PLUGIN_HI, - pfx.fp_proto, + fib_proto_to_dpo (pfx.fp_proto), &pfx.fp_addr, sw_if_index, ~0, 1, FIB_ROUTE_PATH_FLAG_NONE); -- cgit 1.2.3-korg