in reply to Using ioctl()

Sometimes it is just easier to do it in C Inline C lets you get data back to perl easily. Re: MAC Address of An Interface in one of my ioctl inline C examples. There are a few others I posted here to change an interfaces IP....

cheers

tachyon

Replies are listed 'Best First'.
Re^2: Using ioctl()
by chriswalsh (Initiate) on Oct 09, 2004 at 13:21 UTC
    Thanks tachyon,

    Maybe I should do it in c so...

    For the record, I'm trying to get NIC speed and Duplex mode. Machines can be one of (Linux|SunOS|AIX|HP-UX)...

    I need to go away now and beat my forehead off the keyboard for another while...

    C.

      Have a look at mii-tool Google for mii-tool to find the source code which is failrly short. Here is a good page on ioctl for reference.

      cheers

      tachyon