[OE-core] about the qemu net interface name

Phil Blundell philb at gnu.org
Fri Nov 4 11:31:56 UTC 2011


On Fri, 2011-11-04 at 17:58 +0800, Ni Qingliang wrote:
> I have checked the version of ifconfig, it blongs to package
> "net-tools".
> 
> only the latest version 1.60.20110819cvs-1 have the ":" after Interface
> name. In this version, the output format of ifconfig has changed.

Parsing the output of ifconfig isn't a very good way to get a list of
devices (not least because ifconfig isn't guaranteed to be available).
It would be better to read /proc/net/dev directly since this file is
intended to be machine-readable.

p.






More information about the Openembedded-core mailing list