linux-cp: lcp fib fixes
Some possible side effects for multicast routes appears to be in lcp_router_table_add_or_lock. so ff00/8 route will be processed for ospf purposes the right way Ignore IPv6 kernel routes Skip adding auto routes into FIB Type: fix Signed-off-by: Vladimir Ratnikov <vratnikov@netgate.com> Change-Id: I35f73d629a7fffca7f7d4547adc2549b72c2048f
This commit is contained in:

committed by
Matthew Smith

parent
fe6d8a3706
commit
53f8a272a6
@ -941,10 +941,12 @@ lcp_router_route_add (struct rtnl_route *rr)
|
|||||||
lcp_router_route_mk_prefix (rr, &pfx);
|
lcp_router_route_mk_prefix (rr, &pfx);
|
||||||
entry_flags = lcp_router_route_mk_entry_flags (rtype, table_id, rproto);
|
entry_flags = lcp_router_route_mk_entry_flags (rtype, table_id, rproto);
|
||||||
|
|
||||||
/* link local IPv6 */
|
nlt = lcp_router_table_add_or_lock (table_id, pfx.fp_proto);
|
||||||
if (FIB_PROTOCOL_IP6 == pfx.fp_proto &&
|
/* Skip any kernel routes and IPv6 LL or multicast routes */
|
||||||
(ip6_address_is_multicast (&pfx.fp_addr.ip6) ||
|
if (rproto == RTPROT_KERNEL ||
|
||||||
ip6_address_is_link_local_unicast (&pfx.fp_addr.ip6)))
|
(FIB_PROTOCOL_IP6 == pfx.fp_proto &&
|
||||||
|
(ip6_address_is_multicast (&pfx.fp_addr.ip6) ||
|
||||||
|
ip6_address_is_link_local_unicast (&pfx.fp_addr.ip6))))
|
||||||
{
|
{
|
||||||
LCP_ROUTER_DBG ("route skip: %d:%U %U", rtnl_route_get_table (rr),
|
LCP_ROUTER_DBG ("route skip: %d:%U %U", rtnl_route_get_table (rr),
|
||||||
format_fib_prefix, &pfx, format_fib_entry_flags,
|
format_fib_prefix, &pfx, format_fib_entry_flags,
|
||||||
@ -968,7 +970,6 @@ lcp_router_route_add (struct rtnl_route *rr)
|
|||||||
|
|
||||||
if (0 != vec_len (np.paths))
|
if (0 != vec_len (np.paths))
|
||||||
{
|
{
|
||||||
nlt = lcp_router_table_add_or_lock (table_id, pfx.fp_proto);
|
|
||||||
if (rtype == RTN_MULTICAST)
|
if (rtype == RTN_MULTICAST)
|
||||||
{
|
{
|
||||||
/* it's not clear to me how linux expresses the RPF paramters
|
/* it's not clear to me how linux expresses the RPF paramters
|
||||||
|
Reference in New Issue
Block a user