There is this simple python script:
http://coderstalk.blogspot.com/2010/02/create-network-interfaces-list-using.html
Any idea how to fix it so that it runs on OSX? Thanks. Leo
import array
import struct
import socket
import fcntl
SIOCGIFCONF = 0x8912 #define SIOCGIFCONF
On Sun, Feb 26, 2012 at 10:50:27PM +0800, Leo wrote:
> There is this simple python script:
> http://coderstalk.blogspot.com/2010/02/create-network-interfaces-list-using.html
>
> Any idea how to fix it so that it runs on OSX? Thanks. Leo
That script is an excellent example of how not to do things;
On 2012-02-27 08:44 +0800, Nicholas Riley wrote:
> That script is an excellent example of how not to do things; it makes
> assumptions about constant values and structure layout that may not
> hold true on one operating system, much less between operating
> systems.
>
> You are almost certainly bet