From: Ben Greear <greearb@candelatech.com>
To: netdev@vger.kernel.org, md@Linux.IT
Subject: Re: VLAN subinterfaces, bridges and udev
Date: Mon, 01 May 2006 09:02:04 -0700 [thread overview]
Message-ID: <445630FC.3030300@candelatech.com> (raw)
In-Reply-To: <20060430142929.GA8901@wonderland.linux.it>
Marco d'Itri wrote:
> [Please Cc me, I am not subscribed to netdev.]
>
> Can I rely on the presence of the $DEVPATH/driver symlink (e.g.
> /sys/class/net/eth0/driver) to check if a network interface is a "real"
> device insteaf of a VLAN or a bridge?
To distinguish I use a VLAN specific IOCTL (GET_VLAN_REALDEV_NAME_CMD).
If that IOCTL has no error, then it is a VLAN.
I don't know if there is a similar trick for bridges.
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2006-05-01 16:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-30 14:29 VLAN subinterfaces, bridges and udev Marco d'Itri
2006-05-01 16:02 ` Ben Greear [this message]
2006-05-01 19:43 ` Marco d'Itri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=445630FC.3030300@candelatech.com \
--to=greearb@candelatech.com \
--cc=md@Linux.IT \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.