From: Helio Fujimoto <fujima@cyclades.com>
To: linux-kernel@vger.kernel.org
Subject: Removing the route when Ethernet link goes down
Date: Mon, 4 Nov 2002 12:56:12 -0500 [thread overview]
Message-ID: <02110412561200.01022@fujima> (raw)
In-Reply-To: <200203191005.g2JA5Oq31884@Port.imtp.ilyichevsk.odessa.ua>
Please answer this e-mail with copy to me, for I am not subscribed to the
list.
I am debugging an Ethernet driver in the kernel 2.4.17, which is able to
recognize when the Ethernet link is up or down. When the link is up, I am
setting the bit IFF_RUNNING to the dev->flag parameter, and when it is down
this bit is reset. Besides this, I am calling the routines netif_carrier_on
and netif_carrier_off, respectively. This makes the interface status change
(when I call ifconfig eth0).
However, the routing table doesn't change when link goes up or down, though
they do change when I set the interface up and down. I couldn't find out what
I could do to make the Ethernet driver work in this way, so that the routes
to the Ethernet link would appear only if the interface was up and running.
Do you have an easy (or maybe difficult) way to do this? Any routine, any
magic?
Thanks in advance,
Helio Fujimoto.
next prev parent reply other threads:[~2002-11-04 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-19 14:04 lk maintainers Denis Vlasenko
2002-11-04 17:56 ` Helio Fujimoto [this message]
2002-11-04 16:18 ` Removing the route when Ethernet link goes down Richard B. Johnson
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=02110412561200.01022@fujima \
--to=fujima@cyclades.com \
--cc=linux-kernel@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).