[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting local IP addresses from emacs

From: Robert Pluim
Subject: Re: Getting local IP addresses from emacs
Date: Fri, 08 Nov 2019 22:22:32 +0100

>>>>> On Fri, 08 Nov 2019 21:39:04 +0100, Lars Ingebrigtsen <address@hidden> 
>>>>> said:

    Lars> Robert Pluim <address@hidden> writes:
    >> I was thinking of reworking 'network-interface-list' to use
    >> 'getifaddrs' instead of the ioctls it does now, which would get all
    >> the interfaces, and (optionally) return the netmask/broadcast
    >> info.

    Lars> Sounds like a good idea to me.

    >> The only issue there is that the returned interface names would
    >> no longer be unique.

    Lars> Under what circumstances wouldn't the names be unique?

You get one entry per address, but the name is always that of the
underlying interface, so on your typical IPv4/v6 dual stack machine
you get stuff like:

 ("lo0" .
  [0 0 0 0 0 0 0 1 0])
 ("lo0" .
  [127 0 0 1 0])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]