On Nov 14, 2006, at 12:36 PM, Topher Cyll wrote:
Ah, okay. I tackled this problem under Linux once from C (no Ruby
involved at all). I ended up using some non-posix call, but it wasn't
too bad. I guess I just assumed other OS's wouldn't be too painful
either. =\
Hmm, interesting.
My initial approach was reading the net-tools (Linux) and ifconfig
(BSD) sources: I initially wrote this 6+ months ago, but it was when
I reached for the BSD sources that my head started spinning.
I took the low-ball route, obviously - and it goes without saying
that there are people out there who understand these particular
segments of code, I'm just not one of those people.
--
Erik Hollensbe
[EMAIL PROTECTED]
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby