summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ANSI and whitespace. No binary change.moritz2006-05-291-7/+5
|
* Check that struct p8022Hdr was completely captured,moritz2006-05-291-34/+12
| | | | | | before accessing it. With some cleanup from canacar@ ok canacar@
* The end pointer to fn_print() could possibly point behind the capturedmoritz2006-05-291-4/+4
| | | | | | packet. So make sure, it uses "snapend" in that case. ok canacar@
* Add proper bounds checks for the CDP and SSDP protocols bymoritz2006-05-291-20/+19
| | | | | | | | grouping all LLCSAP_SNAP handling in one block. Also make sure, that enough of "struct llc" was captured, before accessing it. ok canacar@
* Correct more bounds checks which can lead to crashes.moritz2006-05-281-5/+5
| | | | ok canacar@ deraadt@
* Check that a complete struct llc was captured (not only 3 bytes),moritz2006-05-281-3/+3
| | | | | | because it is accessed later on. ok deraadt@
* fix potential crash when using -v. ok canacar@moritz2006-05-271-1/+2
|
* grok modp3072, ok moritz@hshoexer2006-05-271-1/+2
|
* add $OpenBSD$, prompted by steven@stevesk2006-05-241-0/+2
|
* Please use portable C codederaadt2006-05-241-2/+4
|
* clean an XXX and don't print preceding ',' on first attribute; okstevesk2006-05-231-4/+7
| | | | canacar@
* add VLAN Query Protocol (VQP) dissector; ok canacar@ markus@stevesk2006-05-234-6/+250
|
* Fix size checks for bootp packets. Problem found and initial patchcanacar2006-05-211-5/+5
| | | | from pedro@. ok moritz@
* add a little bit more to -X;jmc2006-05-151-1/+4
|
* better description for -X;jmc2006-05-151-4/+4
| | | | | based on a diff from jean raby; ok deraadt
* Set signal handlers directly after the fork(2), so that we avoidmoritz2006-04-222-11/+28
| | | | | | | situations, where the privileged child dies before the unprivileged parent has set a signal handler for SIGCHLD. ok deraadt@ canacar@
* Remove remaining stuff from state QUIT, adjust some commentsmoritz2006-04-223-11/+10
| | | | and close a fd leak in read_infile(). ok deraadt@
* Add comments to please lint. No code changes. OK deraadtcloder2006-04-214-10/+15
|
* initialize program_name before we privsep, otherwise the child does notderaadt2006-04-171-14/+8
| | | | know our name
* Since moritz@ says, ``this can't happen, because no fmt stringray2006-04-081-4/+3
| | | | | | | passed to fdata() uses a T-value not caught by the switch,'' change to a fatal error. OK jaredy@ and moritz@
* Add default case to prevent uninitialized variable usage, althoughray2006-04-071-2/+5
| | | | | | | | | moritz@ says ``this can't happen, because no fmt string passed to fdata() uses a T-value not caught by the switch.'' From NetBSD from Coverity CID 2491. OK otto@ and moritz@
* better way to print the management address, add support for ipv6 addresses.reyk2006-03-281-2/+21
| | | | ok deraadt@
* it doesn't need full words, shorter outputreyk2006-03-281-10/+10
| | | | suggested by deraadt@
* Add a simple printer for IEEE 802.1AB LLDP, the Link Layer Discoveryreyk2006-03-287-32/+387
| | | | | | | | | Protocol. LLDP is used by some switch vendors as a replacement for the non-free Cizzco Discovery Protocol (CDP) due to some Cisco patentry... ok brad@
* nat, rdr, binat and scrub are valid pf actions to filter oncamield2006-03-261-3/+7
| | | | ok dhartmei
* Simplify error() and warning() a bit. From Alexey Dobriyan.moritz2006-03-132-15/+7
| | | | ok jaredy@ otto@
* print IAPP messages for the old IAPP port 2313.reyk2006-03-101-3/+3
|
* add whitespacereyk2006-03-101-2/+2
|
* check return value of calloc(3)'; From Alexey Dobriyan; ok deraadt@otto2006-02-261-2/+4
|
* Initialize snaplen also when reading a dump file. Fixes problemsotto2006-02-151-8/+7
| | | | | on 64bit archs when processing files with large snaplens, as seen by Alf Schlichting. ok moritz@ canacar@
* Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert2006-01-231-3/+3
|
* Update my e-mail address in the copyright statement, no binary changes.reyk2005-12-182-4/+4
|
* remove extra space in output of router LSA; ok claudio@stevesk2005-12-171-3/+3
|
* Do not use strlcpy if the source string is not NUL terminated andotto2005-12-071-5/+3
| | | | | avoid printing funny chars. Problem spotted by naddy@ whil tcpdumping enc0 with malloc.conf AJ; ok canacar@ on an earlier version.
* Replace a C++ comment with a C comment. No code changes.cloder2005-11-231-3/+3
|
* add printer for IAPP and hostapd(8) messagesreyk2005-11-225-18/+138
| | | | ok canacar@, tested by aanriot@ and others
* use new libpcap-provided datalink_x_to_y functions instead of local copiesdjm2005-11-181-61/+4
| | | | (with different prototypes); ok mpf@
* fix byteorder for "s" and "l" formats; ok henning@ krw@stevesk2005-11-171-4/+4
|
* Do not clobber errno, from Andrey Matveev. ok canacar@otto2005-11-131-4/+4
|
* crank pf_state and pf_src_node byte and packet counters to u_in64_t, sincemcbride2005-11-042-8/+8
| | | | | | we're breaking pfsync compatibility this cycle anyways. Requested by djm@, ok henning@, 'wheee!' deraadt@
* talk about choices when describing -y; from chris.kuethe@gmail.com ok fgschderaadt2005-10-201-1/+8
|
* Simplify some error paths. From Andrey Matveev. ok canacar@otto2005-10-161-11/+6
|
* Add a best effort mpls decoder. From Jason L. Wright.canacar2005-10-085-8/+134
| | | | | | | Since the encapsulated protocol information is not always available in the MPLS tag stack. The decoder attempts to guess the protocol. ok brad@
* Check IP version when decoding v4 and v6 packets.canacar2005-10-082-3/+11
| | | | From Jason Wright via PR-4531.
* KNFmpf2005-10-071-3/+3
|
* Add stp as supported protocol.mpf2005-10-071-5/+21
| | | | | | | | While there remove reference to /etc/protocols for ether proto. Instead enumerate all supported ethernet protocols. OK jmc@ a while ago.
* deploy .An -nosplit; ok jmcjaredy2005-09-301-1/+2
|
* Change DLT earlier. Fixes the loss of promisc mode when a non-defaultcanacar2005-09-291-4/+4
| | | | | DLT is specified. looks sane deraadt@
* Fix another case of inconstitent error handling that was missed in theotto2005-09-271-5/+6
| | | | | previous commit. ok moritz@
* If setting the filter fails, pass the error back;otto2005-09-261-6/+10
| | | | ok deraadt@