Re: stop and continue network interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux