diff options
author | Florin Coras <fcoras@cisco.com> | 2017-12-16 08:31:06 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-12-21 20:53:31 +0000 |
commit | 79ae2d306269524b9de662dbbf532a04e11b7634 (patch) | |
tree | 70e6a66d1551e31a2e0354221bb1c0b761b1cbdd /src/vnet/ip/ip_api.c | |
parent | 529a425b04751d0590de2f398a20bd36d0e25308 (diff) |
fib: make deag entries urpf extempt
Change-Id: Ie8f6bb4fcd3e4fa269e86a77d2f21c87f372b783
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip_api.c')
-rw-r--r-- | src/vnet/ip/ip_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_api.c b/src/vnet/ip/ip_api.c index fefaccf3fd4..db88d7b0161 100644 --- a/src/vnet/ip/ip_api.c +++ b/src/vnet/ip/ip_api.c @@ -911,6 +911,11 @@ add_del_route_t_handler (u8 is_multipath, path_flags |= FIB_ROUTE_PATH_UDP_ENCAP; path.frp_udp_encap_id = next_hop_id; } + if (path.frp_sw_if_index == ~0 && ip46_address_is_zero (&path.frp_addr) + && path.frp_fib_index != ~0) + { + path_flags |= FIB_ROUTE_PATH_DEAG; + } path.frp_flags = path_flags; |