Lines Matching refs:scope
687 static int nexthop_check_scope(struct nh_info *nhi, u8 scope,
690 if (scope == RT_SCOPE_HOST && nhi->fib_nhc.nhc_gw_family) {
692 "Route with host scope can not have a gateway");
696 if (nhi->fib_nhc.nhc_flags & RTNH_F_ONLINK && scope >= RT_SCOPE_LINK) {
708 int fib_check_nexthop(struct nexthop *nh, u8 scope,
724 if (scope == RT_SCOPE_HOST) {
725 NL_SET_ERR_MSG(extack, "Route with host scope can not have multiple nexthops");
730 /* all nexthops in a group have the same scope */
732 err = nexthop_check_scope(nhi, scope, extack);
740 err = nexthop_check_scope(nhi, scope, extack);