1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-03 06:45:37 -08:00
Commit Graph

31 Commits

Author SHA1 Message Date
mvs
57fd5ed62e 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@
2020-12-03 08:58:52 +00:00
procter
f96bb33f47 - (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
2020-01-24 22:46:36 +00:00
deraadt
df69c215c7 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.
2019-06-28 13:32:41 +00:00
procter
1648765d83 fix microsecond output of timestamp deltas (-tttt) 2019-01-26 00:53:57 +00:00
mmcc
6ad041cbfa Remove remaining instances of the register keyword.
ok deraadt@
2015-11-16 00:16:39 +00:00
guenther
7637b2e319 lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */
(others require more care)
2015-09-27 05:25:00 +00:00
deraadt
043fbe51c1 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
2009-10-27 23:59:19 +00:00
mpf
72ff0ec3ad Merge printb() fix from ifconfig.c -r 1.157:
Don't increment a pointer *before* testing it for NULL.
OK canacar@
2008-09-19 08:52:16 +00:00
deraadt
2068f6866b trash $Header goo which is just annoying; 5595 2007-10-07 16:41:05 +00:00
markus
c28c1087a7 add -I option for printing the interfaces;
ok hshoexer, henning, mcbridge (some time ago)
2007-08-28 12:52:06 +00:00
moritz
598a28e5ba Remove remaining stuff from state QUIT, adjust some comments
and close a fd leak in read_infile(). ok deraadt@
2006-04-22 17:24:33 +00:00
moritz
abc6481969 Simplify error() and warning() a bit. From Alexey Dobriyan.
ok jaredy@ otto@
2006-03-13 19:05:56 +00:00
reyk
12a08440fd 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@
2005-03-07 16:13:38 +00:00
markus
b3b532c432 add -ttttt (timestamp difference since the first packet); ok thierry 2004-07-28 09:37:26 +00:00
markus
d10362c408 -tttt prints time between packets; ok deraadt 2004-06-23 06:12:07 +00:00
canacar
231a0e502b privilege separated tcpdump, joint work with otto@
tested by avsm@ vincent@ dhartmei@ markus@ hshoexer@ and others
go for it deraadt@
2004-01-28 19:44:55 +00:00
millert
e7beb4a7d5 We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. 2002-02-19 19:39:35 +00:00
deraadt
2ac8abef68 a bit of snprintf cleaning 2001-11-06 03:11:40 +00:00
deraadt
eb867ec1df change timeval to bpf_timeval; 32 bit in size, permitting much greater portability 2001-10-02 18:04:35 +00:00
jakob
32cc361770 print day and month using -ttt flag; <canacar@eee.metu.edu.tr> 2001-09-03 13:25:53 +00:00
jakob
3d1358a91f add relts_print, safeputs and safeputchar 2001-03-05 22:34:00 +00:00
deraadt
9854f8fa7e some buffer care; jakob 2000-10-31 16:06:46 +00:00
ho
cf4e9b474f Add $OpenBSD$. (jakob@ ok) 2000-10-03 14:31:54 +00:00
brad
5205045a72 bring more inline with tcpdump 3.4 1999-09-16 20:58:44 +00:00
jakob
da08816c9c - 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@
1999-07-28 20:41:34 +00:00
mickey
8915772626 #if __STDC__ --> #ifdef __STDC__ 1997-07-25 20:12:10 +00:00
bitblt
dc70913641 *** empty log message *** 1996-12-12 16:22:20 +00:00
mickey
c15d59eda0 it is 3.2 now. 1996-07-13 11:01:05 +00:00
deraadt
2be5fe52c8 sync to latest 1996-06-10 07:47:07 +00:00
mickey
0cd0aa1a48 Updating to the latest LBL release.
Sun's SKIP support added.
1996-03-04 15:58:52 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00