History log of /openbsd-current/lib/libpcap/inet.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.27 05-Apr-2024 deraadt

ANSI functions; ok tb


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.26 01-Dec-2021 deraadt

we do not need 'struct mbuf; struct rtentry;' to satisfy some ancient unix
variant that made a header file mistake.
ok jsg


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.25 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


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
# 1.24 22-Dec-2015 mmcc

remove NULL-checks before free()


# 1.23 17-Nov-2015 mmcc

Remove register keyword.

ok deraadt@


# 1.22 17-Nov-2015 mmcc

memory.h -> string.h

ok deraadt@


# 1.21 24-Oct-2015 mmcc

Cast ctype function arguments to unsigned char.

ok guenther@


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

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


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE 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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 26-Mar-2006 djm

add remaining tcpdump.org libpcap 0.9 APIs, most notably
pcap_setdirection() (which depends on the kernel-side bpf changes
committed yesterday); ok canacar@


Revision tags: OPENBSD_3_9_BASE
# 1.18 25-Nov-2005 krw

Fix syntax error (missing ')') in #ifdef'ed out code. Spotted by lint.

ok deraadt@


# 1.17 18-Nov-2005 djm

pull in the good bits of libpcap-0.9.4's API without the cross-platform
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a

nb. this will break tcpdump unless it updated too


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.16 27-Jan-2004 tedu

remove $Header, it was messing up cvs for me. ok deraadt@


# 1.15 21-Jan-2004 jfb

Replace some strncpy() calls with strlcpy()

tested by jose@, ok canacar@ and otto@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.14 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.13 26-Apr-2000 jakob

sync with libpcap v0.5
add support for INET6 (kame)


# 1.12 13-Apr-2000 itojun

use getifaddrs, to avoid copmlicated align constraint in SIOCGIFCONF.


Revision tags: OPENBSD_2_6_BASE
# 1.11 20-Jul-1999 deraadt

changes brought in from v0.4; started by brad, more by me, being tested by mts


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.10 27-Aug-1998 mickey

fix premature free() calling


# 1.9 14-Aug-1998 deraadt

realloc repair


# 1.8 14-Jul-1998 deraadt

buf oflows


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.7 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.6 24-Jan-1997 deraadt

SIOCGIFCONF nicely


Revision tags: OPENBSD_2_0_BASE
# 1.5 19-Jul-1996 deraadt

eschew use of HAVE_SOCKADDR_SA_LEN for now


# 1.4 12-Jul-1996 mickey

bring it to the latest 0.2 LBL release.


# 1.3 10-Jun-1996 deraadt

merge to latest libpcap


# 1.2 04-Mar-1996 mickey

Update to the latest LBL release.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.26 01-Dec-2021 deraadt

we do not need 'struct mbuf; struct rtentry;' to satisfy some ancient unix
variant that made a header file mistake.
ok jsg


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.25 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


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
# 1.24 22-Dec-2015 mmcc

remove NULL-checks before free()


# 1.23 17-Nov-2015 mmcc

Remove register keyword.

ok deraadt@


# 1.22 17-Nov-2015 mmcc

memory.h -> string.h

ok deraadt@


# 1.21 24-Oct-2015 mmcc

Cast ctype function arguments to unsigned char.

ok guenther@


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

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


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE 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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 26-Mar-2006 djm

add remaining tcpdump.org libpcap 0.9 APIs, most notably
pcap_setdirection() (which depends on the kernel-side bpf changes
committed yesterday); ok canacar@


Revision tags: OPENBSD_3_9_BASE
# 1.18 25-Nov-2005 krw

Fix syntax error (missing ')') in #ifdef'ed out code. Spotted by lint.

ok deraadt@


# 1.17 18-Nov-2005 djm

pull in the good bits of libpcap-0.9.4's API without the cross-platform
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a

nb. this will break tcpdump unless it updated too


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.16 27-Jan-2004 tedu

remove $Header, it was messing up cvs for me. ok deraadt@


# 1.15 21-Jan-2004 jfb

Replace some strncpy() calls with strlcpy()

tested by jose@, ok canacar@ and otto@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.14 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.13 26-Apr-2000 jakob

sync with libpcap v0.5
add support for INET6 (kame)


# 1.12 13-Apr-2000 itojun

use getifaddrs, to avoid copmlicated align constraint in SIOCGIFCONF.


Revision tags: OPENBSD_2_6_BASE
# 1.11 20-Jul-1999 deraadt

changes brought in from v0.4; started by brad, more by me, being tested by mts


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.10 27-Aug-1998 mickey

fix premature free() calling


# 1.9 14-Aug-1998 deraadt

realloc repair


# 1.8 14-Jul-1998 deraadt

buf oflows


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.7 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.6 24-Jan-1997 deraadt

SIOCGIFCONF nicely


Revision tags: OPENBSD_2_0_BASE
# 1.5 19-Jul-1996 deraadt

eschew use of HAVE_SOCKADDR_SA_LEN for now


# 1.4 12-Jul-1996 mickey

bring it to the latest 0.2 LBL release.


# 1.3 10-Jun-1996 deraadt

merge to latest libpcap


# 1.2 04-Mar-1996 mickey

Update to the latest LBL release.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.25 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


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
# 1.24 22-Dec-2015 mmcc

remove NULL-checks before free()


# 1.23 17-Nov-2015 mmcc

Remove register keyword.

ok deraadt@


# 1.22 17-Nov-2015 mmcc

memory.h -> string.h

ok deraadt@


# 1.21 24-Oct-2015 mmcc

Cast ctype function arguments to unsigned char.

ok guenther@


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

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


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE 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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 26-Mar-2006 djm

add remaining tcpdump.org libpcap 0.9 APIs, most notably
pcap_setdirection() (which depends on the kernel-side bpf changes
committed yesterday); ok canacar@


Revision tags: OPENBSD_3_9_BASE
# 1.18 25-Nov-2005 krw

Fix syntax error (missing ')') in #ifdef'ed out code. Spotted by lint.

ok deraadt@


# 1.17 18-Nov-2005 djm

pull in the good bits of libpcap-0.9.4's API without the cross-platform
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a

nb. this will break tcpdump unless it updated too


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.16 27-Jan-2004 tedu

remove $Header, it was messing up cvs for me. ok deraadt@


# 1.15 21-Jan-2004 jfb

Replace some strncpy() calls with strlcpy()

tested by jose@, ok canacar@ and otto@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.14 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.13 26-Apr-2000 jakob

sync with libpcap v0.5
add support for INET6 (kame)


# 1.12 13-Apr-2000 itojun

use getifaddrs, to avoid copmlicated align constraint in SIOCGIFCONF.


Revision tags: OPENBSD_2_6_BASE
# 1.11 20-Jul-1999 deraadt

changes brought in from v0.4; started by brad, more by me, being tested by mts


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.10 27-Aug-1998 mickey

fix premature free() calling


# 1.9 14-Aug-1998 deraadt

realloc repair


# 1.8 14-Jul-1998 deraadt

buf oflows


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.7 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.6 24-Jan-1997 deraadt

SIOCGIFCONF nicely


Revision tags: OPENBSD_2_0_BASE
# 1.5 19-Jul-1996 deraadt

eschew use of HAVE_SOCKADDR_SA_LEN for now


# 1.4 12-Jul-1996 mickey

bring it to the latest 0.2 LBL release.


# 1.3 10-Jun-1996 deraadt

merge to latest libpcap


# 1.2 04-Mar-1996 mickey

Update to the latest LBL release.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.24 22-Dec-2015 mmcc

remove NULL-checks before free()


# 1.23 17-Nov-2015 mmcc

Remove register keyword.

ok deraadt@


# 1.22 17-Nov-2015 mmcc

memory.h -> string.h

ok deraadt@


# 1.21 24-Oct-2015 mmcc

Cast ctype function arguments to unsigned char.

ok guenther@


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

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


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE 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 OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.19 26-Mar-2006 djm

add remaining tcpdump.org libpcap 0.9 APIs, most notably
pcap_setdirection() (which depends on the kernel-side bpf changes
committed yesterday); ok canacar@


Revision tags: OPENBSD_3_9_BASE
# 1.18 25-Nov-2005 krw

Fix syntax error (missing ')') in #ifdef'ed out code. Spotted by lint.

ok deraadt@


# 1.17 18-Nov-2005 djm

pull in the good bits of libpcap-0.9.4's API without the cross-platform
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a

nb. this will break tcpdump unless it updated too


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.16 27-Jan-2004 tedu

remove $Header, it was messing up cvs for me. ok deraadt@


# 1.15 21-Jan-2004 jfb

Replace some strncpy() calls with strlcpy()

tested by jose@, ok canacar@ and otto@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.14 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.13 26-Apr-2000 jakob

sync with libpcap v0.5
add support for INET6 (kame)


# 1.12 13-Apr-2000 itojun

use getifaddrs, to avoid copmlicated align constraint in SIOCGIFCONF.


Revision tags: OPENBSD_2_6_BASE
# 1.11 20-Jul-1999 deraadt

changes brought in from v0.4; started by brad, more by me, being tested by mts


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.10 27-Aug-1998 mickey

fix premature free() calling


# 1.9 14-Aug-1998 deraadt

realloc repair


# 1.8 14-Jul-1998 deraadt

buf oflows


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.7 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.6 24-Jan-1997 deraadt

SIOCGIFCONF nicely


Revision tags: OPENBSD_2_0_BASE
# 1.5 19-Jul-1996 deraadt

eschew use of HAVE_SOCKADDR_SA_LEN for now


# 1.4 12-Jul-1996 mickey

bring it to the latest 0.2 LBL release.


# 1.3 10-Jun-1996 deraadt

merge to latest libpcap


# 1.2 04-Mar-1996 mickey

Update to the latest LBL release.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision