On Mon, 28 Sep 2015 15:00:46 +0200
Edward Bartolo <edbarx@???> wrote:
> Hi All,
>
> My next coding will be to add support for network interfaces other
> than wlan0 and eth0. Regarding this, I would like to have your ideas
> about how should I go not to minimally disrupt the already existing C
> code that is already working.
Good. An excellent choice!
Be aware that the following command tells you the names of all network
interfaces:
ip link
If you want a list of their addresses, this is accomplished by:
ip addr
Obviously, you'd need a little creative AWK to isolate just the info
you want.
SteveT
Steve Litt
August 2015 featured book: Troubleshooting: Just the Facts
http://www.troubleshooters.com/tjust