tech-net archive

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

Re: Interface type



On Wed, 10 Sep 2008, Martin Husemann wrote:

On Wed, Sep 10, 2008 at 04:46:53PM +0100, Roy Marples wrote:
The order I want is basically
loopback > PPP > tunnel -> wired -> wireless

Working out if it's a tunnel is the missing step in my code!

A tunnel is a point to point interface too, why do you want to tell them
apart?

You can tell wired from wireless by looking at the media type
(think "ifconfig $if | grep media:")

Or look at the check in wiconfig.

http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/wiconfig/wiconfig.c.diff?r1=1.39&r2=1.40&f=h

--
Stephen



Home | Main Index | Thread Index | Old Index