linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
@ 2003-08-28 21:21 Bryan O'Sullivan
  2003-08-28 21:35 ` Jeff Garzik
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Bryan O'Sullivan @ 2003-08-28 21:21 UTC (permalink / raw)
  To: linux-kernel, netdev

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/

	<b


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:21 [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out Bryan O'Sullivan
@ 2003-08-28 21:35 ` Jeff Garzik
  2003-08-28 21:46 ` Christoph Hellwig
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Jeff Garzik @ 2003-08-28 21:35 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: linux-kernel, netdev

Bryan O'Sullivan wrote:
> 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/


Does it make use of the link status notification stuff in 2.6.x?  ;-)

	Jeff




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:21 [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out Bryan O'Sullivan
  2003-08-28 21:35 ` Jeff Garzik
@ 2003-08-28 21:46 ` Christoph Hellwig
  2003-08-28 21:50   ` Bryan O'Sullivan
  2003-08-28 21:54 ` J.A. Magallon
  2003-08-29  0:34 ` Aaron Lehmann
  3 siblings, 1 reply; 13+ messages in thread
From: Christoph Hellwig @ 2003-08-28 21:46 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: linux-kernel, netdev

On Thu, Aug 28, 2003 at 02:21:52PM -0700, Bryan O'Sullivan wrote:
> 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.

What's the difference to / advantage over ifplugd?


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:46 ` Christoph Hellwig
@ 2003-08-28 21:50   ` Bryan O'Sullivan
  0 siblings, 0 replies; 13+ messages in thread
From: Bryan O'Sullivan @ 2003-08-28 21:50 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel, netdev

On Thu, 2003-08-28 at 14:46, Christoph Hellwig wrote:

> What's the difference to / advantage over ifplugd?

They're about the same, but I didn't know of the existence of ifplugd
until just now.

	<b


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:21 [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out Bryan O'Sullivan
  2003-08-28 21:35 ` Jeff Garzik
  2003-08-28 21:46 ` Christoph Hellwig
@ 2003-08-28 21:54 ` J.A. Magallon
  2003-08-28 22:34   ` Jeff Garzik
  2003-08-29  0:34 ` Aaron Lehmann
  3 siblings, 1 reply; 13+ messages in thread
From: J.A. Magallon @ 2003-08-28 21:54 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: linux-kernel, netdev


On 08.28, Bryan O'Sullivan wrote:
> 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/

:(

-- 
J.A. Magallon <jamagallon@able.es>      \                 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))

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:54 ` J.A. Magallon
@ 2003-08-28 22:34   ` Jeff Garzik
  2003-08-28 22:45     ` J.A. Magallon
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff Garzik @ 2003-08-28 22:34 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Bryan O'Sullivan, linux-kernel, netdev

J.A. Magallon wrote:
> On 08.28, Bryan O'Sullivan wrote:
> 
>>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...

	Jeff




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 22:34   ` Jeff Garzik
@ 2003-08-28 22:45     ` J.A. Magallon
  2003-08-28 22:49       ` Bryan O'Sullivan
  2003-09-03  8:42       ` Stefan Rompf
  0 siblings, 2 replies; 13+ messages in thread
From: J.A. Magallon @ 2003-08-28 22:45 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: J.A. Magallon, Bryan O'Sullivan, linux-kernel, netdev


On 08.29, Jeff Garzik wrote:
> J.A. Magallon wrote:
> > On 08.28, Bryan O'Sullivan wrote:
> > 
> >>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 <jamagallon@able.es>      \                 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))

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 22:45     ` J.A. Magallon
@ 2003-08-28 22:49       ` Bryan O'Sullivan
  2003-09-03  8:42       ` Stefan Rompf
  1 sibling, 0 replies; 13+ messages in thread
From: Bryan O'Sullivan @ 2003-08-28 22:49 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Jeff Garzik, linux-kernel, netdev

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 21:21 [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out Bryan O'Sullivan
                   ` (2 preceding siblings ...)
  2003-08-28 21:54 ` J.A. Magallon
@ 2003-08-29  0:34 ` Aaron Lehmann
  2003-08-29  2:11   ` David T Hollis
  3 siblings, 1 reply; 13+ messages in thread
From: Aaron Lehmann @ 2003-08-29  0:34 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: linux-kernel, netdev

On Thu, Aug 28, 2003 at 02:21:52PM -0700, Bryan O'Sullivan wrote:
> 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/

Thank you, thank you, thank you. I was just thinking today how
annoying it is that whenever I boot up my laptop, dhclient runs and tries
to get an IP address on the ethernet interface until it's ^C'd. Since
I often use the Ethernet interface this is not a bad default, but dhclient
can't even realize on its own that there's no cable plugged in.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-29  0:34 ` Aaron Lehmann
@ 2003-08-29  2:11   ` David T Hollis
  2003-08-29  8:25     ` Måns Rullgård
  2003-08-29 17:43     ` Bryan O'Sullivan
  0 siblings, 2 replies; 13+ messages in thread
From: David T Hollis @ 2003-08-29  2:11 UTC (permalink / raw)
  To: Aaron Lehmann; +Cc: Bryan O'Sullivan, linux-kernel, netdev

Aaron Lehmann wrote:

>On Thu, Aug 28, 2003 at 02:21:52PM -0700, Bryan O'Sullivan wrote:
>  
>
>>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/
>>    
>>
>
>Thank you, thank you, thank you. I was just thinking today how
>annoying it is that whenever I boot up my laptop, dhclient runs and tries
>to get an IP address on the ethernet interface until it's ^C'd. Since
>I often use the Ethernet interface this is not a bad default, but dhclient
>can't even realize on its own that there's no cable plugged in.
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>  
>
Hmm, that seems to raise the question - why doesn't dhclient just handle 
that?  On a DHCP interface, it's running anyway.  if it paid attention 
to link status, it would know when to re-request an IP.  If you are 
statically assigned, you don't really care anyway.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-29  2:11   ` David T Hollis
@ 2003-08-29  8:25     ` Måns Rullgård
  2003-08-29 17:43     ` Bryan O'Sullivan
  1 sibling, 0 replies; 13+ messages in thread
From: Måns Rullgård @ 2003-08-29  8:25 UTC (permalink / raw)
  To: linux-kernel

David T Hollis <dhollis@davehollis.com> writes:

>>Thank you, thank you, thank you. I was just thinking today how
>>annoying it is that whenever I boot up my laptop, dhclient runs and tries
>>to get an IP address on the ethernet interface until it's ^C'd. Since
>>I often use the Ethernet interface this is not a bad default, but dhclient
>>can't even realize on its own that there's no cable plugged in.
> 
> Hmm, that seems to raise the question - why doesn't dhclient just
> handle that?  On a DHCP interface, it's running anyway.  if it paid
> attention to link status, it would know when to re-request an IP.  If
> you are statically assigned, you don't really care anyway.

Well, sometimes it's better to not have the interface configured UP
when there's no cable connected.  It avoids some very long timeouts
when some program tries to connect to something.  It's better to just
get a host unreachable error immediately.

-- 
Måns Rullgård
mru@users.sf.net


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-29  2:11   ` David T Hollis
  2003-08-29  8:25     ` Måns Rullgård
@ 2003-08-29 17:43     ` Bryan O'Sullivan
  1 sibling, 0 replies; 13+ messages in thread
From: Bryan O'Sullivan @ 2003-08-29 17:43 UTC (permalink / raw)
  To: David T Hollis; +Cc: Aaron Lehmann, linux-kernel, netdev

On Thu, 2003-08-28 at 19:11, David T Hollis wrote:

> Hmm, that seems to raise the question - why doesn't dhclient just handle 
> that?

Because it has as little knowledge of how the OS works as possible. 
It's intended to run on all kinds of Unix platforms, not just Linux.

> On a DHCP interface, it's running anyway.  if it paid attention 
> to link status, it would know when to re-request an IP.

There are no cross-platform standards for this kind of thing, so they'd
need modules for Linux, FreeBSD, Solaris, AIX, etc., etc.  I'm sure
they'd be happy to accept patches.

	<b


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out
  2003-08-28 22:45     ` J.A. Magallon
  2003-08-28 22:49       ` Bryan O'Sullivan
@ 2003-09-03  8:42       ` Stefan Rompf
  1 sibling, 0 replies; 13+ messages in thread
From: Stefan Rompf @ 2003-09-03  8:42 UTC (permalink / raw)
  To: linux-kernel, netdev

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.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-09-03  8:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-28 21:21 [ANNOUNCE] netplug, a daemon that handles network cables getting plugged in and out Bryan O'Sullivan
2003-08-28 21:35 ` Jeff Garzik
2003-08-28 21:46 ` Christoph Hellwig
2003-08-28 21:50   ` Bryan O'Sullivan
2003-08-28 21:54 ` J.A. Magallon
2003-08-28 22:34   ` Jeff Garzik
2003-08-28 22:45     ` J.A. Magallon
2003-08-28 22:49       ` Bryan O'Sullivan
2003-09-03  8:42       ` Stefan Rompf
2003-08-29  0:34 ` Aaron Lehmann
2003-08-29  2:11   ` David T Hollis
2003-08-29  8:25     ` Måns Rullgård
2003-08-29 17:43     ` Bryan O'Sullivan

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).