Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out

3 messages, 3 authors, 2003-09-03 · open the first message on its own page

Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out

From: J.A. Magallon <hidden>
Date: 2003-08-28 22:46:08

On 08.29, Jeff Garzik wrote:
J.A. Magallon wrote:
quoted
On 08.28, Bryan O'Sullivan wrote:
quoted
Netplug is a daemon that responds to network cables being plugged in or
out by bringing a network interface up or down.  This is extremely
useful for DHCP-managed systems that move around a lot, such as laptops
and systems in cluster environments.

For more details and download instructions, see the netplug homepage:
http://www.red-bean.com/~bos/

I feel sorry, but did you ever knew this existed ?

http://www.stud.uni-hamburg.de/users/lennart/projects/ifplugd/

ifplugd doesn't appear to use netlink.  Did I miss something?

netlink is definitely the preferred way to get link notification.  Maybe 
the two authors can work together to merge the best parts of both...
That would be very nice, but there is still a problem.
Does netlink solve the fact that there are cards (at least in 2.4)
that do not support any detection method:

ne2k-pci
    SIOCETHTOOL failed (Operation not permitted)
    SIOCGMIIPHY failed (Operation not permitted)
    SIOCDEVPRIVATE failed (Operation not supported)

3c59x (3c980-TX)
    SIOCETHTOOL failed (Operation not permitted)
    SIOCGMIIPHY failed (Operation not permitted)
    SIOCDEVPRIVATE: unplugged

3c59x (3c905C-TX/TX-M)
    SIOCETHTOOL failed (Operation not supported)
    SIOCGMIIPHY: link beat detected
    SIOCDEVPRIVATE: link beat detected
 
e100
    SIOCETHTOOL: link beat detected
    SIOCGMIIPHY: link beat detected
    SIOCDEVPRIVATE failed (Operation not supported)

e1000
    SIOCETHTOOL: link beat detected
    SIOCGMIIPHY: link beat detected
    SIOCDEVPRIVATE failed (Operation not supported)

-- 
J.A. Magallon [off-list ref]      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))

Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out

From: Bryan O'Sullivan <hidden>
Date: 2003-08-28 22:49:28

On Thu, 2003-08-28 at 15:45, J.A. Magallon wrote:
That would be very nice, but there is still a problem.
Does netlink solve the fact that there are cards (at least in 2.4)
that do not support any detection method:
netlink doesn't work through the ioctl interface at all.  If a card is
capable of reporting that its flags include IFF_UP or IFF_RUNNING via
the netlink interface, then netplug will work.

	<b

Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out

From: Stefan Rompf <hidden>
Date: 2003-09-03 08:42:57

Hi,
That would be very nice, but there is still a problem.
Does netlink solve the fact that there are cards (at least in 2.4)
that do not support any detection method:
even in 2.6 not all cards support link state via netlink, it requires some 
updates to the driver. Maintainers should take this as a hint to add 
netif_carrier_on()/_off() or mii_check_link()/mii_check_media()-calls ;-).

This does not hurt for 2.4 as these functions are already available there, but 
do not create notifications in the stock kernel.

Stefan
-- 
"doesn't work" is not a magic word to explain everything.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help