[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100819213314.GA26135@auslistsprd01.us.dell.com>
Date: Thu, 19 Aug 2010 16:33:14 -0500
From: Matt Domsch <Matt_Domsch@...l.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: Narendra_K@...l.com, netdev@...r.kernel.org, Charles_Rose@...l.com,
Jordan_Hargrave@...l.com
Subject: Re: [PATCH] Add firmware label support to iproute2
On Wed, Aug 18, 2010 at 02:41:24PM -0700, Stephen Hemminger wrote:
> The netdev_alias_to_kernelname should only happen after normal lookup failed.
Stephen, can you enlighten me as to the "right" way to do interface
name lookups? While I can still find examples of parsing
/proc/net/dev, or globbing /sys/class/net/*, I expect these aren't the
preferred method anymore. Your own iproute2 suite uses RTM_GETLINK
netlink calls, though for the seeming simple case of "give me a list of all
interfaces", your path through there is far more capable (and
complex) than I would hope to need.
Please advise.
> Also how does ifindex to name mapping work?
libnetdevname does not use ifindex at all at present.
Thanks,
Matt
--
Matt Domsch
Technology Strategist
Dell | Office of the CTO
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists