God, I hate people who reply to their own posts shortly after
posting.. ;o)
Short story: I went through the net-tools source for ifconfig
and pretty much every file in there, stealing code here and
there, and didn't get anywhere after several hours. The lib/*.c
files are interdependant on the main applications that get built,
so I kept having to add more and more stuff to my code, and I
gave up. I scanned my huge info.txt file and after a while I
found:
File: libc.info, Node: Interface Naming, Next: Local Namespace,
Prev: Socket\ Addresses, Up: Sockets
Interface Naming
================
I used this information to get the interface info I wanted. It
works fantastic. Now why couldn't I have found this 6 months ago
after frantically searching docs, and tonnes of source?
Big fat duh! If anyone else is curious as to how it's done, drop
me a line requesting the code. It is very easy and small code.
Surprisingly so.
Take care,
TTYL
--
Mike A. Harris Linux advocate
Computer Consultant GNU advocate
Capslock Consulting Open Source advocate
Want to try a new high performance web server? Try Caudium!
http://caudium.org http://caudium.sourceforge.net
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list