From: "Stian Skjelstad" <stian@nixia.no>
To: netdev@vger.kernel.org
Subject: Is this intended design, or a bug? Missing event for gateway being deleted
Date: Fri, 6 Apr 2012 22:04:36 +0200 [thread overview]
Message-ID: <b057c62fb42411fe0142037567ffaadb.squirrel@nlc.no> (raw)
I'm sorry if this has been discussed before, but my google searches didn't
give me any good hints so:
I'm using rtnetlink for a project and I noticed a non-consistent behavior.
When I tear down (the last) ip address, the default gateway is removed,
but it is not announced on the netlink socket. This can also be verified
using "ip monitor". This is tested with linux kernel version 3.2.6 on ARM.
# ip monitor &
# ip addr add 10.0.0.2/8 dev eth0
2: eth0 inet 10.0.0.2/8 scope global eth0
local 10.0.0.2 dev eth0 table local proto kernel scope host src 10.0.0.2
10.0.0.0/8 dev eth0 proto kernel scope link src 10.0.0.2
broadcast 10.0.0.0 dev eth0 table local proto kernel scope link src
10.0.0.2
broadcast 10.255.255.255 dev eth0 table local proto kernel scope link
src 10.0.0.2
# ip route add via 10.0.1.22
default via 10.0.1.2 dev eth0
# ip addr del 10.0.0.2/8 dev eth0
Deleted 2: eth0 inet 10.0.0.2/8 scope global eth0
Deleted 10.0.0.0/8 dev eth0 proto kernel scope link src 10.0.0.2
Deleted broadcast 10.255.255.255 dev eth0 table local proto kernel
scope link src 10.0.0.2
Deleted broadcast 10.0.0.0 dev eth0 table local proto kernel scope link
src 10.0.0.2
Deleted local 10.0.0.2 dev eth0 table local proto kernel scope host
src 10.0.0.2
(No Deleted default via line here)
Stian Skjelstad
reply other threads:[~2012-04-06 20:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b057c62fb42411fe0142037567ffaadb.squirrel@nlc.no \
--to=stian@nixia.no \
--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