diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2024-08-09 16:54:06 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-15 18:56:14 -0700 |
commit | de67763cbdbba8149eeb5d45ad0c6834f7c7b352 (patch) | |
tree | 348c5b7f60ffd113075462112e6a3aa92fd417a0 /net/ipv4 | |
parent | 100465a91a900699db9c64fb55063affd15c4362 (diff) | |
download | lwn-de67763cbdbba8149eeb5d45ad0c6834f7c7b352.tar.gz lwn-de67763cbdbba8149eeb5d45ad0c6834f7c7b352.zip |
ip: Move INFINITY_LIFE_TIME to addrconf.h.
INFINITY_LIFE_TIME is the common value used in IPv4 and IPv6 but defined
in both .c files.
Also, 0xffffffff used in addrconf_timeout_fixup() is INFINITY_LIFE_TIME.
Let's move INFINITY_LIFE_TIME's definition to addrconf.h
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20240809235406.50187-6-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/devinet.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index b5d2a9fd46c7..61be85154dd1 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -703,8 +703,6 @@ errout: return err; } -#define INFINITY_LIFE_TIME 0xFFFFFFFF - static void check_lifetime(struct work_struct *work) { unsigned long now, next, next_sec, next_sched; |