From: Ben Greear <greearb@candelatech.com>
To: NetDev <netdev@vger.kernel.org>
Subject: Add/Delete IPv6 addresses and netlink
Date: Mon, 16 Jun 2008 18:33:36 -0700 [thread overview]
Message-ID: <48571470.7010307@candelatech.com> (raw)
I am not sure this is a bug, but it is at least making my life difficult
in user-space.
This is with 2.6.25.4 kernel plus some of my own hackings not directly
related
to ipv6.
First:
You can get a state where you never get a netlink address add message, but
you do get the delete message. Eth0 has no link, by the way, but it
does not
seem to matter in this particular case:
ip -6 addr flush eth0
ip link set dev eth0 down
ip -6 addr add 2000::8:2/112 scope global dev eth0
ip -6 addr flush eth0
I would much prefer to have a netlink message when the address is added,
regardless of
whether it is tentative or not. A new message could be sent when it
changes state to/from tentative.
As it is, there is no way to verify that an IP address was actually
added by listening to netlink
messages if the address stays tentative.
Second:
NOTE: I cannot reproduce this problem on FC8's 2.6.24.7-92.fc8 kernel
on a different
machine. It may just be something lame about my development
environment, the different
hardware, or perhaps some issue with the newer lkml kernel.
I am not sure whether I am just confused about how all of this is
supposed to work or not, but the
following commands will leave the global address in tentative state:
ip link set eth1 down; ip -6 addr flush dev eth1;
ip -6 addr add 2000::9:2/112 scope global dev eth1
ip link set eth1 up
# Wait 10+ seconds
ip -6 addr show dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
inet6 2000::9:2/112 scope global tentative
valid_lft forever preferred_lft forever
inet6 fe80::203:2dff:fe0c:d022/64 scope link
valid_lft forever preferred_lft forever
If you add the global addr while the device is already up, however, then
it will not be in
tentative state.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next reply other threads:[~2008-06-17 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 1:33 Ben Greear [this message]
2008-06-17 12:18 ` Add/Delete IPv6 addresses and netlink Thomas Graf
2008-06-17 15:47 ` Ben Greear
2008-06-21 5:25 ` Ben Greear
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=48571470.7010307@candelatech.com \
--to=greearb@candelatech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.