[Click] cable check

Bart Braem bart.braem at ua.ac.be
Fri Feb 22 07:18:55 EST 2008


On Friday 22 February 2008 12:43:06 pieter wuytens wrote:
> is there a way to check if the cable is present in an eth0 if i plug out
> the cable then click should detect this and switch to an other interface
> eth1. how should i do this? i tried it with a ping and when the ping loses
> packages then switch but this is really slow. so i hope there is a way to
> do this faster in click

You could script something with mii-tool, that's the linux tool to check for 
presence of a cable. But that's not Click of course.

Regards,
Bart
-- 
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Sciences
University of Antwerp
Campus Middelheim, G3.30
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.32.91
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be/bart.braem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part.
Url : https://pdos.csail.mit.edu/pipermail/click/attachments/20080222/34e9984a/attachment.pgp 


More information about the click mailing list