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,
328 static unsigned int fib_info_hashfn_1(int init_val, u8 protocol, u8 scope, in fib_info_hashfn_1() argument
333 val ^= (protocol << 8) | scope; in fib_info_hashfn_1()
1040 * Every prefix is assigned a "scope" value: "host" is local address,
1046 * where gw must have narrower scope. This recursion stops
1047 * when gw has LOCAL scope or if "nexthop" is declared ONLINK,
1057 * {universe prefix} -> (gw, oif) [scope link]
1059 * |-> {link prefix} -> (gw, oif) [scope local]
1064 u8 scope, struct netlink_ext_ack *extack) in fib_check_nh_v4_gw() argument
1073 if (scope >= RT_SCOPE_LINK) { in fib_check_nh_v4_gw()
1074 NL_SET_ERR_MSG(extack, "Nexthop has invalid scope"); in fib_check_nh_v4_gw()
1103 .flowi4_scope = scope + 1, in fib_check_nh_v4_gw()
1140 nh->fib_nh_scope = res.scope; in fib_check_nh_v4_gw()
1192 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, in fib_check_nh() argument
1198 err = fib_check_nh_v4_gw(net, nh, table, scope, extack); in fib_check_nh()
1290 unsigned char scope) in fib_info_update_nhc_saddr() argument
1295 return inet_select_addr(nhc->nhc_dev, 0, scope); in fib_info_update_nhc_saddr()
1298 nh->nh_saddr = inet_select_addr(nh->fib_nh_dev, nh->fib_nh_gw4, scope); in fib_info_update_nhc_saddr()
1360 if (fib_props[cfg->fc_type].scope > cfg->fc_scope) { in fib_create_info()
1361 NL_SET_ERR_MSG(extack, "Invalid scope"); in fib_create_info()
1485 NL_SET_ERR_MSG(extack, "Invalid scope"); in fib_create_info()
1499 "Route with host scope can not have multiple nexthops"); in fib_create_info()
1504 "Route with host scope can not have a gateway"); in fib_create_info()
1933 * NETDEV_CHANGE 0 LINKDOWN Carrier OFF, not for scope host
1934 * NETDEV_DOWN 0 LINKDOWN|DEAD Link down, not for scope host
1943 int scope = RT_SCOPE_NOWHERE; in fib_sync_down_dev() local
1950 scope = -1; in fib_sync_down_dev()
1965 nexthop_nh->fib_nh_scope != scope) { in fib_sync_down_dev()
2039 if (next_fi->fib_scope != res->scope || in fib_select_default()