Lines Matching defs:scope
1350 static int nexthop_check_scope(struct nh_info *nhi, u8 scope,
1353 if (scope == RT_SCOPE_HOST && nhi->fib_nhc.nhc_gw_family) {
1355 "Route with host scope can not have a gateway");
1359 if (nhi->fib_nhc.nhc_flags & RTNH_F_ONLINK && scope >= RT_SCOPE_LINK) {
1371 int fib_check_nexthop(struct nexthop *nh, u8 scope,
1387 if (scope == RT_SCOPE_HOST) {
1388 NL_SET_ERR_MSG(extack, "Route with host scope can not have multiple nexthops");
1393 /* all nexthops in a group have the same scope */
1395 err = nexthop_check_scope(nhi, scope, extack);
1403 err = nexthop_check_scope(nhi, scope, extack);