History log of /openbsd-current/usr.sbin/tcpdump/pfctl_osfp.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.16 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_6_5_BASE
# 1.15 08-Nov-2018 brynet

Close the fingerprints file in the child after it has been loaded.

I missed this part in my previous commit.


# 1.14 08-Nov-2018 brynet

Hoist opening pf.os(5) fingerprints '-o' earlier so that it doesn't
need to be unveiled at runtime in the monitor process.

Cleanup the unused internal privsep "getlines" code, we now explictly
fdpass the OS fingerprints file instead.

ok mestre@ kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 28-May-2017 akfaew

Reduce differences between the two pfctl_osfp.c files.

Apply three commits from pfctl/pfctl_osfp.c

OK bluhm@


# 1.12 28-May-2017 akfaew

Catch up with pfctl/pfctl_osfp.c, no binary change.

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 05-Dec-2015 mmcc

Remove two sets of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MSIZE, or
delete <sys/param.h> if now possible
ok guenther


# 1.9 14-Aug-2014 mpi

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 22-Dec-2013 deraadt

ctype cleanups, now that the kernel has u_char strings (that is the
easy road, otherwise this would be a righteous mess)
ok florian


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 18-Oct-2010 deraadt

Revert non-compatible and undocumented bullshit commited by 3 developers
who decided to just do it on their own. henning, mcbride, jsing -- shame
on you -- if you had shown this diff to just 1 other network developer,
the astounding mistake in it would have been noticed. Start practicing
inclusionary development instead of going alone.
ok claudio


# 1.6 17-Oct-2010 jsing

Add quirks support to operating system fingerprinting. tcpdump part
by mcbride@.

ok mcbride@ henning@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.5 16-Jun-2008 david

use correct struct when checking DF or INET6, ok frantzen@ months ago
forgotten in one of my trees


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.4 13-Dec-2006 itojun

IPv6 passive OS fingerprinting.
reuses IPv4 signature file (assuming that TCP code is shared among IPv4/v6).
mcbride ok.


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.3 17-Feb-2005 aaron

Fix indentation as to not mislead the code reader. No functional change.


# 1.2 19-Dec-2004 deraadt

use strchr instead of index


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.1 28-Jan-2004 canacar

privilege separated tcpdump, joint work with otto@

tested by avsm@ vincent@ dhartmei@ markus@ hshoexer@ and others
go for it deraadt@


# 1.15 08-Nov-2018 brynet

Close the fingerprints file in the child after it has been loaded.

I missed this part in my previous commit.


# 1.14 08-Nov-2018 brynet

Hoist opening pf.os(5) fingerprints '-o' earlier so that it doesn't
need to be unveiled at runtime in the monitor process.

Cleanup the unused internal privsep "getlines" code, we now explictly
fdpass the OS fingerprints file instead.

ok mestre@ kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.13 28-May-2017 akfaew

Reduce differences between the two pfctl_osfp.c files.

Apply three commits from pfctl/pfctl_osfp.c

OK bluhm@


# 1.12 28-May-2017 akfaew

Catch up with pfctl/pfctl_osfp.c, no binary change.

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 05-Dec-2015 mmcc

Remove two sets of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MSIZE, or
delete <sys/param.h> if now possible
ok guenther


# 1.9 14-Aug-2014 mpi

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 22-Dec-2013 deraadt

ctype cleanups, now that the kernel has u_char strings (that is the
easy road, otherwise this would be a righteous mess)
ok florian


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 18-Oct-2010 deraadt

Revert non-compatible and undocumented bullshit commited by 3 developers
who decided to just do it on their own. henning, mcbride, jsing -- shame
on you -- if you had shown this diff to just 1 other network developer,
the astounding mistake in it would have been noticed. Start practicing
inclusionary development instead of going alone.
ok claudio


# 1.6 17-Oct-2010 jsing

Add quirks support to operating system fingerprinting. tcpdump part
by mcbride@.

ok mcbride@ henning@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.5 16-Jun-2008 david

use correct struct when checking DF or INET6, ok frantzen@ months ago
forgotten in one of my trees


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.4 13-Dec-2006 itojun

IPv6 passive OS fingerprinting.
reuses IPv4 signature file (assuming that TCP code is shared among IPv4/v6).
mcbride ok.


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.3 17-Feb-2005 aaron

Fix indentation as to not mislead the code reader. No functional change.


# 1.2 19-Dec-2004 deraadt

use strchr instead of index


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.1 28-Jan-2004 canacar

privilege separated tcpdump, joint work with otto@

tested by avsm@ vincent@ dhartmei@ markus@ hshoexer@ and others
go for it deraadt@


Revision tags: OPENBSD_6_2_BASE
# 1.13 28-May-2017 akfaew

Reduce differences between the two pfctl_osfp.c files.

Apply three commits from pfctl/pfctl_osfp.c

OK bluhm@


# 1.12 28-May-2017 akfaew

Catch up with pfctl/pfctl_osfp.c, no binary change.

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 05-Dec-2015 mmcc

Remove two sets of NULL-checks before free().


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MSIZE, or
delete <sys/param.h> if now possible
ok guenther


# 1.9 14-Aug-2014 mpi

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.8 22-Dec-2013 deraadt

ctype cleanups, now that the kernel has u_char strings (that is the
easy road, otherwise this would be a righteous mess)
ok florian


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.7 18-Oct-2010 deraadt

Revert non-compatible and undocumented bullshit commited by 3 developers
who decided to just do it on their own. henning, mcbride, jsing -- shame
on you -- if you had shown this diff to just 1 other network developer,
the astounding mistake in it would have been noticed. Start practicing
inclusionary development instead of going alone.
ok claudio


# 1.6 17-Oct-2010 jsing

Add quirks support to operating system fingerprinting. tcpdump part
by mcbride@.

ok mcbride@ henning@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.5 16-Jun-2008 david

use correct struct when checking DF or INET6, ok frantzen@ months ago
forgotten in one of my trees


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.4 13-Dec-2006 itojun

IPv6 passive OS fingerprinting.
reuses IPv4 signature file (assuming that TCP code is shared among IPv4/v6).
mcbride ok.


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.3 17-Feb-2005 aaron

Fix indentation as to not mislead the code reader. No functional change.


# 1.2 19-Dec-2004 deraadt

use strchr instead of index


Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.1 28-Jan-2004 canacar

privilege separated tcpdump, joint work with otto@

tested by avsm@ vincent@ dhartmei@ markus@ hshoexer@ and others
go for it deraadt@