History log of /openbsd-current/usr.sbin/tcpdump/util.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.31 03-Dec-2020 mvs

Kill unused `ch' variable within safeputs routine. Also use putchar(3)
instead of printf(3) to output printable characters.

Pointed by Martin Vahlensieck.

ok gnezdo@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.30 24-Jan-2020 procter

- (void)printf() -> printf(); the cast adds clutter for little value.
- fprintf(stdout, ...) -> printf()
- fputs(x, stdout) -> printf(); for consistency.
fputs is twice as fast on atom x5-Z8300@1.44GHz but Amdahl sees a pure printf
tcpdump only 2% slower than a pure fputs (for constant strings) tcpdump
to /dev/null across a 20MB/~170k packet pcap file.

ok dlg@ for fputs and ok tedu@ krw@ deraadt@ a2k19 for the rest


Revision tags: OPENBSD_6_6_BASE
# 1.29 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.28 26-Jan-2019 procter

fix microsecond output of timestamp deltas (-tttt)


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
# 1.27 16-Nov-2015 mmcc

Remove remaining instances of the register keyword.

ok deraadt@


# 1.26 27-Sep-2015 guenther

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


Revision tags: 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 OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 19-Sep-2008 mpf

Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.23 07-Oct-2007 deraadt

trash $Header goo which is just annoying; 5595


# 1.22 28-Aug-2007 markus

add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.21 22-Apr-2006 moritz

Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@


# 1.20 13-Mar-2006 moritz

Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.19 07-Mar-2005 reyk

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@


Revision tags: OPENBSD_3_6_BASE
# 1.18 28-Jul-2004 markus

add -ttttt (timestamp difference since the first packet); ok thierry


# 1.17 23-Jun-2004 markus

-tttt prints time between packets; ok deraadt


Revision tags: OPENBSD_3_5_BASE
# 1.16 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_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.15 19-Feb-2002 millert

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


# 1.14 06-Nov-2001 deraadt

a bit of snprintf cleaning


Revision tags: OPENBSD_3_0_BASE
# 1.13 02-Oct-2001 deraadt

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability


# 1.12 03-Sep-2001 jakob

print day and month using -ttt flag; <canacar@eee.metu.edu.tr>


Revision tags: OPENBSD_2_9_BASE
# 1.11 05-Mar-2001 jakob

add relts_print, safeputs and safeputchar


Revision tags: OPENBSD_2_8_BASE
# 1.10 31-Oct-2000 deraadt

some buffer care; jakob


# 1.9 03-Oct-2000 ho

Add $OpenBSD$. (jakob@ ok)


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.8 16-Sep-1999 brad

bring more inline with tcpdump 3.4


# 1.7 28-Jul-1999 jakob

- Merge some changes from tcpdump 3.4
-a flag; attempt to convert network and broadcast addresses to names
Improved signal handling
Miscellaneous fixes and typos
OSPF MD5 authentication support

- -X flag; emacs-hexl print (including ascii)

- Add ECN bits to TCP and IP headers

- IKE & IPsec (ESP & AH) support

OK deraadt@


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.6 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.5 12-Dec-1996 bitblt

*** empty log message ***


Revision tags: OPENBSD_2_0_BASE
# 1.4 13-Jul-1996 mickey

it is 3.2 now.


# 1.3 10-Jun-1996 deraadt

sync to latest


# 1.2 04-Mar-1996 mickey

Updating to the latest LBL release.
Sun's SKIP support added.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.30 24-Jan-2020 procter

- (void)printf() -> printf(); the cast adds clutter for little value.
- fprintf(stdout, ...) -> printf()
- fputs(x, stdout) -> printf(); for consistency.
fputs is twice as fast on atom x5-Z8300@1.44GHz but Amdahl sees a pure printf
tcpdump only 2% slower than a pure fputs (for constant strings) tcpdump
to /dev/null across a 20MB/~170k packet pcap file.

ok dlg@ for fputs and ok tedu@ krw@ deraadt@ a2k19 for the rest


Revision tags: OPENBSD_6_6_BASE
# 1.29 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.28 26-Jan-2019 procter

fix microsecond output of timestamp deltas (-tttt)


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
# 1.27 16-Nov-2015 mmcc

Remove remaining instances of the register keyword.

ok deraadt@


# 1.26 27-Sep-2015 guenther

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


Revision tags: 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 OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 19-Sep-2008 mpf

Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.23 07-Oct-2007 deraadt

trash $Header goo which is just annoying; 5595


# 1.22 28-Aug-2007 markus

add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.21 22-Apr-2006 moritz

Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@


# 1.20 13-Mar-2006 moritz

Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.19 07-Mar-2005 reyk

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@


Revision tags: OPENBSD_3_6_BASE
# 1.18 28-Jul-2004 markus

add -ttttt (timestamp difference since the first packet); ok thierry


# 1.17 23-Jun-2004 markus

-tttt prints time between packets; ok deraadt


Revision tags: OPENBSD_3_5_BASE
# 1.16 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_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.15 19-Feb-2002 millert

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


# 1.14 06-Nov-2001 deraadt

a bit of snprintf cleaning


Revision tags: OPENBSD_3_0_BASE
# 1.13 02-Oct-2001 deraadt

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability


# 1.12 03-Sep-2001 jakob

print day and month using -ttt flag; <canacar@eee.metu.edu.tr>


Revision tags: OPENBSD_2_9_BASE
# 1.11 05-Mar-2001 jakob

add relts_print, safeputs and safeputchar


Revision tags: OPENBSD_2_8_BASE
# 1.10 31-Oct-2000 deraadt

some buffer care; jakob


# 1.9 03-Oct-2000 ho

Add $OpenBSD$. (jakob@ ok)


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.8 16-Sep-1999 brad

bring more inline with tcpdump 3.4


# 1.7 28-Jul-1999 jakob

- Merge some changes from tcpdump 3.4
-a flag; attempt to convert network and broadcast addresses to names
Improved signal handling
Miscellaneous fixes and typos
OSPF MD5 authentication support

- -X flag; emacs-hexl print (including ascii)

- Add ECN bits to TCP and IP headers

- IKE & IPsec (ESP & AH) support

OK deraadt@


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.6 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.5 12-Dec-1996 bitblt

*** empty log message ***


Revision tags: OPENBSD_2_0_BASE
# 1.4 13-Jul-1996 mickey

it is 3.2 now.


# 1.3 10-Jun-1996 deraadt

sync to latest


# 1.2 04-Mar-1996 mickey

Updating to the latest LBL release.
Sun's SKIP support added.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.29 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.28 26-Jan-2019 procter

fix microsecond output of timestamp deltas (-tttt)


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
# 1.27 16-Nov-2015 mmcc

Remove remaining instances of the register keyword.

ok deraadt@


# 1.26 27-Sep-2015 guenther

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


Revision tags: 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 OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 19-Sep-2008 mpf

Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.23 07-Oct-2007 deraadt

trash $Header goo which is just annoying; 5595


# 1.22 28-Aug-2007 markus

add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.21 22-Apr-2006 moritz

Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@


# 1.20 13-Mar-2006 moritz

Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.19 07-Mar-2005 reyk

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@


Revision tags: OPENBSD_3_6_BASE
# 1.18 28-Jul-2004 markus

add -ttttt (timestamp difference since the first packet); ok thierry


# 1.17 23-Jun-2004 markus

-tttt prints time between packets; ok deraadt


Revision tags: OPENBSD_3_5_BASE
# 1.16 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_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.15 19-Feb-2002 millert

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


# 1.14 06-Nov-2001 deraadt

a bit of snprintf cleaning


Revision tags: OPENBSD_3_0_BASE
# 1.13 02-Oct-2001 deraadt

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability


# 1.12 03-Sep-2001 jakob

print day and month using -ttt flag; <canacar@eee.metu.edu.tr>


Revision tags: OPENBSD_2_9_BASE
# 1.11 05-Mar-2001 jakob

add relts_print, safeputs and safeputchar


Revision tags: OPENBSD_2_8_BASE
# 1.10 31-Oct-2000 deraadt

some buffer care; jakob


# 1.9 03-Oct-2000 ho

Add $OpenBSD$. (jakob@ ok)


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.8 16-Sep-1999 brad

bring more inline with tcpdump 3.4


# 1.7 28-Jul-1999 jakob

- Merge some changes from tcpdump 3.4
-a flag; attempt to convert network and broadcast addresses to names
Improved signal handling
Miscellaneous fixes and typos
OSPF MD5 authentication support

- -X flag; emacs-hexl print (including ascii)

- Add ECN bits to TCP and IP headers

- IKE & IPsec (ESP & AH) support

OK deraadt@


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.6 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.5 12-Dec-1996 bitblt

*** empty log message ***


Revision tags: OPENBSD_2_0_BASE
# 1.4 13-Jul-1996 mickey

it is 3.2 now.


# 1.3 10-Jun-1996 deraadt

sync to latest


# 1.2 04-Mar-1996 mickey

Updating to the latest LBL release.
Sun's SKIP support added.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.28 26-Jan-2019 procter

fix microsecond output of timestamp deltas (-tttt)


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
# 1.27 16-Nov-2015 mmcc

Remove remaining instances of the register keyword.

ok deraadt@


# 1.26 27-Sep-2015 guenther

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


Revision tags: 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 OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 19-Sep-2008 mpf

Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.23 07-Oct-2007 deraadt

trash $Header goo which is just annoying; 5595


# 1.22 28-Aug-2007 markus

add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.21 22-Apr-2006 moritz

Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@


# 1.20 13-Mar-2006 moritz

Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.19 07-Mar-2005 reyk

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@


Revision tags: OPENBSD_3_6_BASE
# 1.18 28-Jul-2004 markus

add -ttttt (timestamp difference since the first packet); ok thierry


# 1.17 23-Jun-2004 markus

-tttt prints time between packets; ok deraadt


Revision tags: OPENBSD_3_5_BASE
# 1.16 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_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.15 19-Feb-2002 millert

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


# 1.14 06-Nov-2001 deraadt

a bit of snprintf cleaning


Revision tags: OPENBSD_3_0_BASE
# 1.13 02-Oct-2001 deraadt

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability


# 1.12 03-Sep-2001 jakob

print day and month using -ttt flag; <canacar@eee.metu.edu.tr>


Revision tags: OPENBSD_2_9_BASE
# 1.11 05-Mar-2001 jakob

add relts_print, safeputs and safeputchar


Revision tags: OPENBSD_2_8_BASE
# 1.10 31-Oct-2000 deraadt

some buffer care; jakob


# 1.9 03-Oct-2000 ho

Add $OpenBSD$. (jakob@ ok)


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.8 16-Sep-1999 brad

bring more inline with tcpdump 3.4


# 1.7 28-Jul-1999 jakob

- Merge some changes from tcpdump 3.4
-a flag; attempt to convert network and broadcast addresses to names
Improved signal handling
Miscellaneous fixes and typos
OSPF MD5 authentication support

- -X flag; emacs-hexl print (including ascii)

- Add ECN bits to TCP and IP headers

- IKE & IPsec (ESP & AH) support

OK deraadt@


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.6 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.5 12-Dec-1996 bitblt

*** empty log message ***


Revision tags: OPENBSD_2_0_BASE
# 1.4 13-Jul-1996 mickey

it is 3.2 now.


# 1.3 10-Jun-1996 deraadt

sync to latest


# 1.2 04-Mar-1996 mickey

Updating to the latest LBL release.
Sun's SKIP support added.


# 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.27 16-Nov-2015 mmcc

Remove remaining instances of the register keyword.

ok deraadt@


# 1.26 27-Sep-2015 guenther

lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)


Revision tags: 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 OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.25 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.24 19-Sep-2008 mpf

Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@


Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.23 07-Oct-2007 deraadt

trash $Header goo which is just annoying; 5595


# 1.22 28-Aug-2007 markus

add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.21 22-Apr-2006 moritz

Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@


# 1.20 13-Mar-2006 moritz

Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@


Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.19 07-Mar-2005 reyk

add a printer for 802.11 and for additional radiotap headers,
use -y IEEE802_11 or IEEE802_11_RADIO if supported by the driver.

ok canacar@


Revision tags: OPENBSD_3_6_BASE
# 1.18 28-Jul-2004 markus

add -ttttt (timestamp difference since the first packet); ok thierry


# 1.17 23-Jun-2004 markus

-tttt prints time between packets; ok deraadt


Revision tags: OPENBSD_3_5_BASE
# 1.16 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_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.15 19-Feb-2002 millert

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


# 1.14 06-Nov-2001 deraadt

a bit of snprintf cleaning


Revision tags: OPENBSD_3_0_BASE
# 1.13 02-Oct-2001 deraadt

change timeval to bpf_timeval; 32 bit in size, permitting much greater portability


# 1.12 03-Sep-2001 jakob

print day and month using -ttt flag; <canacar@eee.metu.edu.tr>


Revision tags: OPENBSD_2_9_BASE
# 1.11 05-Mar-2001 jakob

add relts_print, safeputs and safeputchar


Revision tags: OPENBSD_2_8_BASE
# 1.10 31-Oct-2000 deraadt

some buffer care; jakob


# 1.9 03-Oct-2000 ho

Add $OpenBSD$. (jakob@ ok)


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE
# 1.8 16-Sep-1999 brad

bring more inline with tcpdump 3.4


# 1.7 28-Jul-1999 jakob

- Merge some changes from tcpdump 3.4
-a flag; attempt to convert network and broadcast addresses to names
Improved signal handling
Miscellaneous fixes and typos
OSPF MD5 authentication support

- -X flag; emacs-hexl print (including ascii)

- Add ECN bits to TCP and IP headers

- IKE & IPsec (ESP & AH) support

OK deraadt@


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.6 25-Jul-1997 mickey

#if __STDC__ --> #ifdef __STDC__


Revision tags: OPENBSD_2_1_BASE
# 1.5 12-Dec-1996 bitblt

*** empty log message ***


Revision tags: OPENBSD_2_0_BASE
# 1.4 13-Jul-1996 mickey

it is 3.2 now.


# 1.3 10-Jun-1996 deraadt

sync to latest


# 1.2 04-Mar-1996 mickey

Updating to the latest LBL release.
Sun's SKIP support added.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision