Need help on how to list network interface

Discussion in 'Mac Programming' started by billdavid, Nov 23, 2011.

  1. billdavid macrumors newbie

    Joined:
    Nov 23, 2011
    #1
    I want to list all network interfaces with names and IPs of my MacBook. And then I find https://github.com/ajrisi/lsif. With a little change, I can build and run it successfully on my Mac OS 10.6.8. But the result is a little strange. I can list only 127.0.0.1 and my wireless network en1 although I have plugged in a wire cable while command 'ifconfig -a inet" can list my cable connection successfully.
    While on another machine, lsif can list my cable connection.
    Does anybody have any idea on what's the problem?

    Thanks,
    Bill
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2

Share This Page