2001-10-23 05:54:33

by Krzysztof Halasa

[permalink] [raw]
Subject: (WAN) network device status

Hi,

I remember a discussion about net_dev->flags and carrier loss etc
detection. Did the things change? I mean, do we currently have a way
for network device driver to report (to the rest of kernel, to the
userland) that the link is down? It would include DCD (carrier) loss,
Ethernet link down, IrDA/USB disconnects etc.

I think the kernel should deactivate respective routing table entries
as well when a link goes down.
--
Krzysztof Halasa
Network Administrator


2001-10-23 06:10:34

by Jeff Garzik

[permalink] [raw]
Subject: Re: (WAN) network device status

Krzysztof Halasa wrote:
> I remember a discussion about net_dev->flags and carrier loss etc
> detection. Did the things change? I mean, do we currently have a way
> for network device driver to report (to the rest of kernel, to the
> userland) that the link is down? It would include DCD (carrier) loss,
> Ethernet link down, IrDA/USB disconnects etc.

We have netif_carrier_{on,off}, and longer term netlink should
proactively deliver link up/down messages.

Jeff


--
Jeff Garzik | Only so many songs can be sung
Building 1024 | with two lips, two lungs, and one tongue.
MandrakeSoft | - nomeansno

2001-10-23 16:38:17

by Telford002

[permalink] [raw]
Subject: Re: (WAN) network device status

In a message dated 10/23/01 1:59:03 AM Eastern Daylight Time, [email protected]
writes:

> I remember a discussion about net_dev->flags and carrier loss etc
> detection. Did the things change? I mean, do we currently have a way
> for network device driver to report (to the rest of kernel, to the
> userland) that the link is down? It would include DCD (carrier) loss,
> Ethernet link down, IrDA/USB disconnects etc.
>
> I think the kernel should deactivate respective routing table entries
> as well when a link goes down.

Not if the link can be redialed or reconnected implicitly or on-demand
in some way.

Joachim Martillo