From: Ben Greear <greearb@candelatech.com>
To: John Reynolds <JReynolds@datacore.uk.com>
Cc: netdev@vger.kernel.org
Subject: Re: Hi,
Date: Fri, 25 Oct 2013 22:04:08 -0700 [thread overview]
Message-ID: <526B4D48.4070608@candelatech.com> (raw)
In-Reply-To: <526B4FEC020000B100033DCD@mailhost1.datacore.uk.com>
On 10/25/2013 09:15 PM, John Reynolds wrote:
> Hi,
> Is there a userspace API that can be used to determine if a network interface is a 802.1Q interface, and what its vlan id and parent interface is. it appears that SOICGIFPFLAGS is not supported and netdev_priv() is only available to drivers, or do I have to resort to parsing the /proc/net/* files ?
>
> regards
The netlink API has it. You can use the 'ip' tool and parse it's text output,
though of course that is not an overly stable API.
I think the old VLAN ioctls are still in the kernel as well, so you can
use those like the 'vconfig' tool does.
http://www.candelatech.com/~greear/vlan.html
Please note that 'ip' is the way of the future and I have little interest
in actually supporting vconfig.
Thanks,
Ben
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2013-10-26 5:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-26 4:15 Hi, John Reynolds
2013-10-26 5:04 ` Ben Greear [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-31 9:16 Hi! pcrs1
2015-12-11 19:43 Hi! Mr Guiya
2015-11-20 14:52 Hi , Stephane Hamelet
2012-12-06 17:18 Hi! Marketing Commucation
2012-03-12 12:44 Hi, horia.geanta
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=526B4D48.4070608@candelatech.com \
--to=greearb@candelatech.com \
--cc=JReynolds@datacore.uk.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox