Lines Matching refs:scope
1575 static int nexthop_check_scope(struct nh_info *nhi, u8 scope,
1578 if (scope == RT_SCOPE_HOST && nhi->fib_nhc.nhc_gw_family) {
1580 "Route with host scope can not have a gateway");
1584 if (nhi->fib_nhc.nhc_flags & RTNH_F_ONLINK && scope >= RT_SCOPE_LINK) {
1596 int fib_check_nexthop(struct nexthop *nh, u8 scope,
1612 if (scope == RT_SCOPE_HOST) {
1613 NL_SET_ERR_MSG(extack, "Route with host scope can not have multiple nexthops");
1618 /* all nexthops in a group have the same scope */
1620 err = nexthop_check_scope(nhi, scope, extack);
1628 err = nexthop_check_scope(nhi, scope, extack);