diff options
author | Guillaume Nault <gnault@redhat.com> | 2024-04-10 15:14:29 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-12 04:52:11 +0200 |
commit | 5618603f5d063c8d769d2e64cd440f787567fd13 (patch) | |
tree | 3e07607c9c2f1130d10b5bdb10f5c68b2d1746c0 /include/net/route.h | |
parent | tcp: add support for SO_PEEK_OFF socket option (diff) | |
download | linux-5618603f5d063c8d769d2e64cd440f787567fd13.tar.xz linux-5618603f5d063c8d769d2e64cd440f787567fd13.zip |
ipv4: Remove RTO_ONLINK.
RTO_ONLINK was a flag used in ->flowi4_tos that allowed to alter the
scope of an IPv4 route lookup. Setting this flag was equivalent to
specifying RT_SCOPE_LINK in ->flowi4_scope.
With commit ec20b2830093 ("ipv4: Set scope explicitly in
ip_route_output()."), the last users of RTO_ONLINK have been removed.
Therefore, we can now drop the code that checked this bit and stop
modifying ->flowi4_scope in ip_route_output_key_hash().
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/57de760565cab55df7b129f523530ac6475865b2.1712754146.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 315a8acee6c6..630d1ef6868a 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -35,8 +35,6 @@ #include <linux/cache.h> #include <linux/security.h> -#define RTO_ONLINK 0x01 - static inline __u8 ip_sock_rt_scope(const struct sock *sk) { if (sock_flag(sk, SOCK_LOCALROUTE)) |