Kyle R . Burton on Fri, 21 Dec 2001 01:10:29 +0100 |
> I had a hell of a time figuring out how to query the local > interfaces list portably, but you can see what I finally came > up with in tcptraceroute-1.3beta[1] for the getinterfaces() > function. Be warned, though, the code is far from elegant... > > -mct > > [1] http://michael.toren.net/code/tcptraceroute/beta/ Oddly enough I asked in a Perl forum, and they pointed me at IO::Interface. After reading Lincoln's code, I've now got this: http://www.bgw.org/projects/c/all_if.c Actualy, your example code is much cleaner than Lincoln's (partly because yours is not part of an XS module, partly because it's clearer). Thanks for that code, it will help me greatly. Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mortis@voicenet.com http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|