History log of /src/lib/libc/net/getifaddrs.c |
Revision | | Date | Author | Comments |
1.16 |
| 21-Sep-2016 |
roy | Add ifa_addrflags to ifaddrs.
|
1.15 |
| 13-Mar-2012 |
christos | branches: 1.15.14; 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@
|
1.14 |
| 04-Feb-2011 |
matt | branches: 1.14.4; 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).
|
1.13 |
| 05-Nov-2010 |
pooka | branches: 1.13.2; Need getifaddrs() for the rump client since it executes sysctl(2)
|
1.12 |
| 27-Apr-2009 |
dyoung | 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.
|
1.11 |
| 06-Dec-2007 |
dyoung | branches: 1.11.12; 1.11.16; 1.11.20; Use __arraycount().
|
1.10 |
| 09-Aug-2002 |
itojun | branches: 1.10.22; lint clean
|
1.9 |
| 09-Aug-2002 |
itojun | unifdef for auditability.
|
1.8 |
| 20-Aug-2001 |
itojun | cope with sa_len < sizeof(struct sockaddr). From: Patrik Lindergren <patrik@datacom.nu> sync with kame
|
1.7 |
| 04-Jan-2001 |
lukem | branches: 1.7.2; sprinkle _DIAGASSERT() around
|
1.6 |
| 27-Oct-2000 |
itojun | define HAVE_IFM_ADDRS for non-bsdi. sync with kame
|
1.5 |
| 06-Jul-2000 |
christos | - avoid non portable casts - cast arguments to avoid promotion warnings
|
1.4 |
| 24-Apr-2000 |
itojun | add __RCSID().
|
1.3 |
| 24-Apr-2000 |
itojun | supply weak alias for IPv6-related library additions. sorry to be late.
|
1.2 |
| 23-Feb-2000 |
itojun | add freeifaddrs(), which reclaims region allocated by getifaddrs(). in sync with kame and bsdi.
|
1.1 |
| 23-Feb-2000 |
itojun | 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.
|
1.7.2.2 |
| 13-Aug-2002 |
nathanw | Catch up to -current.
|
1.7.2.1 |
| 08-Oct-2001 |
nathanw | Catch up to -current.
|
1.10.22.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.11.20.3 |
| 13-May-2010 |
matt | Decode the routing message using the new RT_ROUNDUP alignment restrictions.
|
1.11.20.2 |
| 11-May-2010 |
matt | Use RT_ROUNDUP which will always do the right thing for alignment now.
|
1.11.20.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
1.11.16.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.11.12.1 |
| 03-May-2009 |
bouyer | Pull up following revision(s) (requested by dyoung in ticket #730): sbin/ifconfig/af_link.c: revisions 1.4 - 1.6 sbin/ifconfig/util.h: revision 1.7 sbin/ifconfig/util.c: revisions 1.10, 1.11 lib/libc/net/getifaddrs.c: revision 1.12 lib/libc/net/getifaddrs.3: revision 1.10 sbin/ifconfig/ifconfig.c: revisions 1.216 - 1.218 Fix indentation: change spaces to tabs. Use getnameinfo(3) to render a human-readable link-layer address in the 'address: ' line, just as we do in the 'link xx:xx:...:xx' line. There's no use casting a socket address to sockaddr_dl, only to cast it back to sockaddr, so don't do it. Cosmetic: add some whitespace for my ease of reading. To make sure that we always print the active link-layer address in the 'address: ' field, don't treat the first address as the active address, but search the link-layer addresses for the ones flagged IFLR_ACTIVE, and print those. Extract a subroutine, print_link_addresses(), for printing link-layer addresses. For non-AF_LINK ifaddrs, ifa_data is NULL. AFAICT, this has always been so. Say so in the documentation. 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.
|
1.13.2.1 |
| 08-Feb-2011 |
bouyer | Sync with HEAD
|
1.14.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.15.14.1 |
| 04-Nov-2016 |
pgoyette | Sync with HEAD
|