Re: stop and continue network interface

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

 



On Thu 2001-06-28 (22:27), Frank Neuber wrote:
> Hi list,
> 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?

Sounds similar to pcmcia cardmanager...
Perhaps you'd have a low-level "big brother" module watching the port
and triggering [un]loading of other modules. 
How do you realize that the plug has been connected?

  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.

remove the outgoing route(s) only ?

S
-- 
 Steffen Grunewald | GFZ | PB 2.2 | Telegrafenberg E3 | D-14473 Potsdam
 » email: steffen(at)gfz-potsdam.de | fax/fon: +49-331-288-1266/-1245 «
 Software is like sex - it's better when it's free. --- Linus Torvalds
-
: 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