Skip to contentSkip to conversation

(WAN) network device status

DISCUSSION Krzysztof Halasa 2 participants 2 messages Oct 23, 2001

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Krzysztof Halasa
Network Administrator
#1 lore raw
Quoted 5 lines · Krzysztof Halasa

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

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