From: Hangbin Liu <liuhangbin@gmail.com>
To: Sam Edwards <cfsworks@gmail.com>
Cc: netdev@vger.kernel.org
Subject: [IPv6 Question] Should we remove or keep the temporary address if global address removed?
Date: Tue, 5 Nov 2024 11:16:37 +0000 [thread overview]
Message-ID: <Zyn-lUmMbLYO64E_@fedora> (raw)
Hi Sam,
Our QE just find the latest upstream kernel behavior changed for temporary
address. i.e. In the previous time, the kernel will also remove the temporary
address if the related global address deleted. But now the kernel will keep
the temporary there. e.g.
```
# sysctl -w net.ipv6.conf.enp59s0f0np0.use_tempaddr=1
# ip add add 2003::4/64 dev enp59s0f0np0 mngtmpaddr
# ip add show enp59s0f0np0
6: enp59s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff
inet6 2003::d280:ee50:d13e:a1b1/64 scope global temporary dynamic
valid_lft 604793sec preferred_lft 86393sec
inet6 2003::4/64 scope global mngtmpaddr
valid_lft forever preferred_lft forever
# ip add del 2003::4/64 dev enp59s0f0np0 mngtmpaddr
# ip add show enp59s0f0np0
6: enp59s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether b8:59:9f:06:56:6c brd ff:ff:ff:ff:ff:ff
inet6 2003::d7c7:a239:2519:2491/64 scope global temporary dynamic
valid_lft 604782sec preferred_lft 86382sec
```
^^ previously this temporary address will also be removed.
After checking the code, it looks commit 778964f2fdf0 ("ipv6/addrconf: fix
timing bug in tempaddr regen") changes the behavior. I can't find what we should
do when delete the related global address from RFC8981. So I'm not sure
which way we should do. Keep or delete the temporary address.
Do you have any idea?
Thanks
Hangbin
next reply other threads:[~2024-11-05 11:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 11:16 Hangbin Liu [this message]
2024-11-06 0:50 ` [IPv6 Question] Should we remove or keep the temporary address if global address removed? Sam Edwards
2024-11-06 1:39 ` Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zyn-lUmMbLYO64E_@fedora \
--to=liuhangbin@gmail.com \
--cc=cfsworks@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).