[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-net
Subject: Re: stop and continue network interface
From: Peter =?iso-8859-1?Q?W=E4chtler?= <pwaechtler () loewe-komp ! de>
Date: 2001-06-29 8:18:16
[Download RAW message or body]
Frank Neuber wrote:
>
> I write a kernel module that control all network interfaces via
> an hardware plug on the parallel port. If the plug is connected to
> the parallel port then (after a few seconds) the network interface
> should stop. If th plug is disconnected then the network interface should
> comes up with the same configuration. In other words, it should be the
> same behaviour to the network as an diconnected cable on the NIC while
> the plug is connected.
>
> What is the right layer/function to realize this? It should be independent
> from the hardware. Should I block the transmit and receive functions
> in the networking layer? Or is there a simple way to do this.
>
Well, the network is configured from user space - so I would stop
the network from user space. I would write a daemon that observes
the parport and calls a script like "rcroute stop;rcnetwork stop"
and "rcnetwork start;rcroute start"
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic