History log of /openbsd-current/lib/libc/net/getifaddrs.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 29-Nov-2021 deraadt

A few sys/param.h annotations lacked ALIGNBYTES


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.13 14-Sep-2015 guenther

Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal
calls go direct and all the symbols are weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 20-Mar-2013 deraadt

Use a realloc() loop around the sysctl() for NET_RT_IFLIST, in case an
interface is added at just the right... wrong moment.
ok millert dlg


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.10 24-Nov-2008 claudio

Correctly jump over routing headers and calculate the size of the if_data
struct in the if_msghdr instead of using sizeof() blindly. This allows us
to grow if_data without causing issues for the getifaddrs() users.
OK deraadt@ (who needs this for some cool upcomming stuff)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.9 09-Aug-2002 itojun

remove obsolete comment, no SIOCGIFCONF path any more


# 1.8 09-Aug-2002 itojun

unifdef for auditability.


Revision tags: OPENBSD_3_1_BASE
# 1.7 02-Jan-2002 deraadt

label abort() from inside library as ILLEGAL


Revision tags: OPENBSD_3_0_BASE
# 1.6 20-Aug-2001 itojun

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


# 1.5 04-Jul-2001 deraadt

fix unused code path; karls@inet.no


# 1.4 27-Jun-2001 lebel

use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.


Revision tags: OPENBSD_2_9_BASE
# 1.3 24-Nov-2000 itojun

ifm_data is avilable on {net,open,free}bsd. sync with kame.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.2 23-Feb-2000 itojun

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


# 1.1 23-Feb-2000 itojun

add getifaddrs(3), from bsdi4.
this will help future apps from complexity of SIOCGIFCONF.
NOTE: getifaddrs(3) uses sysctl interface, not SIOCGIFCONF.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.13 14-Sep-2015 guenther

Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal
calls go direct and all the symbols are weak


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.12 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.11 20-Mar-2013 deraadt

Use a realloc() loop around the sysctl() for NET_RT_IFLIST, in case an
interface is added at just the right... wrong moment.
ok millert dlg


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.10 24-Nov-2008 claudio

Correctly jump over routing headers and calculate the size of the if_data
struct in the if_msghdr instead of using sizeof() blindly. This allows us
to grow if_data without causing issues for the getifaddrs() users.
OK deraadt@ (who needs this for some cool upcomming stuff)


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.9 09-Aug-2002 itojun

remove obsolete comment, no SIOCGIFCONF path any more


# 1.8 09-Aug-2002 itojun

unifdef for auditability.


Revision tags: OPENBSD_3_1_BASE
# 1.7 02-Jan-2002 deraadt

label abort() from inside library as ILLEGAL


Revision tags: OPENBSD_3_0_BASE
# 1.6 20-Aug-2001 itojun

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


# 1.5 04-Jul-2001 deraadt

fix unused code path; karls@inet.no


# 1.4 27-Jun-2001 lebel

use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.


Revision tags: OPENBSD_2_9_BASE
# 1.3 24-Nov-2000 itojun

ifm_data is avilable on {net,open,free}bsd. sync with kame.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.2 23-Feb-2000 itojun

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


# 1.1 23-Feb-2000 itojun

add getifaddrs(3), from bsdi4.
this will help future apps from complexity of SIOCGIFCONF.
NOTE: getifaddrs(3) uses sysctl interface, not SIOCGIFCONF.