History log of /netbsd-src/lib/libc/net/getifaddrs.c (Results 1 – 16 of 16)
Revision Date Author Comments
# 45b7bd08 21-Sep-2016 roy <roy@NetBSD.org>

Add ifa_addrflags to ifaddrs.


# c5e820ca 13-Mar-2012 christos <christos@NetBSD.org>

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values t

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@

show more ...


# 90a7a07b 04-Feb-2011 matt <matt@NetBSD.org>

Use RT_ROUNDUP instead of a private copy since that's what the kernel uses.
(t_getaddrinfo passes for both i386 (compat_netbsd32) and amd64 with this
change).


# 2ddc760f 05-Nov-2010 pooka <pooka@NetBSD.org>

Need getifaddrs() for the rump client since it executes sysctl(2)


# 46db29bc 27-Apr-2009 dyoung <dyoung@NetBSD.org>

Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data. In ifconfig(8), do not try to suppress
du

Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data. In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage. The storage is not leaked.

show more ...


# eac83fd0 06-Dec-2007 dyoung <dyoung@NetBSD.org>

Use __arraycount().


# 0cb9a973 09-Aug-2002 itojun <itojun@NetBSD.org>

lint clean


# cb4277ff 09-Aug-2002 itojun <itojun@NetBSD.org>

unifdef for auditability.


# cba884a1 20-Aug-2001 itojun <itojun@NetBSD.org>

cope with sa_len < sizeof(struct sockaddr).
From: Patrik Lindergren <patrik@datacom.nu>
sync with kame


# a976c8e3 04-Jan-2001 lukem <lukem@NetBSD.org>

sprinkle _DIAGASSERT() around


# bcab9b66 27-Oct-2000 itojun <itojun@NetBSD.org>

define HAVE_IFM_ADDRS for non-bsdi. sync with kame


# b0c8c0de 06-Jul-2000 christos <christos@NetBSD.org>

- avoid non portable casts
- cast arguments to avoid promotion warnings


# 72eddcac 24-Apr-2000 itojun <itojun@NetBSD.org>

add __RCSID().


# c6bf4b09 24-Apr-2000 itojun <itojun@NetBSD.org>

supply weak alias for IPv6-related library additions. sorry to be late.


# 4b9363d8 23-Feb-2000 itojun <itojun@NetBSD.org>

add freeifaddrs(), which reclaims region allocated by getifaddrs().
in sync with kame and bsdi.


# 6037c786 23-Feb-2000 itojun <itojun@NetBSD.org>

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally,

add getifaddrs(3) from bsdi4, as mentioned in tech-net (in SIOCGIFCONF
related thread).
this will save future apps from complexity of SIOCGIFCONF.

getifaddrs(3) does not use SIOCGIFCONF internally, it uses sysctl.

show more ...