Lines Matching full:scope
98 .scope = RT_SCOPE_NOWHERE,
102 .scope = RT_SCOPE_UNIVERSE,
106 .scope = RT_SCOPE_HOST,
110 .scope = RT_SCOPE_LINK,
114 .scope = RT_SCOPE_LINK,
118 .scope = RT_SCOPE_UNIVERSE,
122 .scope = RT_SCOPE_UNIVERSE,
126 .scope = RT_SCOPE_UNIVERSE,
130 .scope = RT_SCOPE_UNIVERSE,
134 .scope = RT_SCOPE_UNIVERSE,
138 .scope = RT_SCOPE_NOWHERE,
142 .scope = RT_SCOPE_NOWHERE,
326 static unsigned int fib_info_hashfn_1(int init_val, u8 protocol, u8 scope, in fib_info_hashfn_1() argument
331 val ^= (protocol << 8) | scope; in fib_info_hashfn_1()
1039 * Every prefix is assigned a "scope" value: "host" is local address,
1045 * where gw must have narrower scope. This recursion stops
1046 * when gw has LOCAL scope or if "nexthop" is declared ONLINK,
1056 * {universe prefix} -> (gw, oif) [scope link]
1058 * |-> {link prefix} -> (gw, oif) [scope local]
1063 u8 scope, struct netlink_ext_ack *extack) in fib_check_nh_v4_gw() argument
1072 if (scope >= RT_SCOPE_LINK) { in fib_check_nh_v4_gw()
1073 NL_SET_ERR_MSG(extack, "Nexthop has invalid scope"); in fib_check_nh_v4_gw()
1102 .flowi4_scope = scope + 1, in fib_check_nh_v4_gw()
1139 nh->fib_nh_scope = res.scope; in fib_check_nh_v4_gw()
1191 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, in fib_check_nh() argument
1197 err = fib_check_nh_v4_gw(net, nh, table, scope, extack); in fib_check_nh()
1289 unsigned char scope) in fib_info_update_nhc_saddr() argument
1294 return inet_select_addr(nhc->nhc_dev, 0, scope); in fib_info_update_nhc_saddr()
1297 nh->nh_saddr = inet_select_addr(nh->fib_nh_dev, nh->fib_nh_gw4, scope); in fib_info_update_nhc_saddr()
1359 if (fib_props[cfg->fc_type].scope > cfg->fc_scope) { in fib_create_info()
1360 NL_SET_ERR_MSG(extack, "Invalid scope"); in fib_create_info()
1484 NL_SET_ERR_MSG(extack, "Invalid scope"); in fib_create_info()
1498 "Route with host scope can not have multiple nexthops"); in fib_create_info()
1503 "Route with host scope can not have a gateway"); in fib_create_info()
1936 * NETDEV_CHANGE 0 LINKDOWN Carrier OFF, not for scope host
1937 * NETDEV_DOWN 0 LINKDOWN|DEAD Link down, not for scope host
1946 int scope = RT_SCOPE_NOWHERE; in fib_sync_down_dev() local
1953 scope = -1; in fib_sync_down_dev()
1968 nexthop_nh->fib_nh_scope != scope) { in fib_sync_down_dev()
2042 if (next_fi->fib_scope != res->scope || in fib_select_default()