summaryrefslogtreecommitdiff
path: root/tcpdump.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add SIGINFO handler from LBLfenner2001-07-041-13/+42
| | | | | The rest of the low-level print-*.c handlers need the infodelay wrapping too.
* exit value field has to be positive. from netbsd (or do we want to return 255?)itojun2001-06-241-2/+2
|
* Add support for NetBSD DLT_PPP_ETHER; adapted from NetBSD changes byguy2001-06-201-1/+4
| | | | | | | | | Martin Husemann <martin@netbsd.org>. Clean up PPPoE dissector - get rid of unused variable, and have it just use its first argument as a pointer to the PPPoE packet (which may also make it work if, for example, you have PPPoE packets wrapped inside VLAN headers).
* Support for LocalTalk hardware, from Uns Lider <unslider@miranda.org>.guy2001-06-181-1/+4
|
* IEEE 802.11 support, from Charlie Lenahan <clenahan@fortresstech.com>.guy2001-06-121-1/+4
|
* Print a warning if pcap_open_live modifies ebuf.fenner2001-04-301-1/+4
|
* ARCNet support, from NetBSD.guy2001-04-171-1/+2
|
* Treat NetBSD's DLT_HDLC as Cisco HDLC, as that's what it is.guy2001-03-111-1/+4
|
* Add support for a new link layer type DLT_LINUX_SLL, for use when doingguy2000-12-211-1/+4
| | | | | | | live captures with a "cooked" (SOCK_DGRAM) rather than a "raw" (SOCK_RAW) PF_PACKET socket; it includes a bunch of the fields from the "struct sockaddr_ll" you get in a "recvfrom()", including the Ethernet protocol field.
* Handle DLT_NULL correctly - the AF_ value is in host byte order, whichguy2000-12-161-1/+4
| | | | | | | | | | | | | | | | | | | | | may not be *our* byte order if we're reading a capture file from another machine; we currently handle that by checking whether it looks like an integer < 65536 or not and, if it's not, byte-swap it. This also lets us handle OpenBSD DLT_LOOP as well - it's like DLT_NULL except that the AF_ value is in *network* byte order. (Old-style Linux loopback captures were also DLT_NULL, but the header had an Ethernet type in it; there have also been captures where the header was a PPP header. For now, we just continue to assume that all DLT_NULL packets are IP, and check the IP version field to decide whether it's IPv4, IPv6, or something else. We may want to consider adopting Ethereal's heuristics, which would at least mean we wouldn't be reporting bogus packet types for old-style Linux loopback captures and those weird PPP - ISDN4BSD? - captures, although the version of libpcap that goes with this version of tcpdump doesn't produce bogus DLT_NULL captures for Linux loopback devices.)
* Allow tcpdump to work with earlier libpcaps.fenner2000-12-091-1/+7
| | | | (Tested with libpcap-0.4 as comes with FreeBSD 3.4)
* Get rid of the PCAP_ENCAP_ values - if an application uses them, thatguy2000-10-121-59/+14
| | | | | | | | | | | | | | | | | | application won't build with any other version of libpcap, which means that a lot of applications won't use them. In addition, "pcap_linktype()" needs to return DLT_ values, so that platforms that build libpcap as a shared library won't break binary compatibility if they update to this version of libpcap. Instead, we map from DLT_ values to LINKTYPE_ values when writing savefiles, and map from LINKTYPE_ values to DLT_ values when reading savefiles, so that savefiles don't have platform-dependent DLT_ values in the header as the link type, they have platform-independent LINKTYPE_ values. This means we don't need to make DLT_ATM_RFC1483, DLT_RAW, etc. have platform-independent values starting at 100 - only the values in the savefile header need to be like that.
* Get rid of includes of <netinet/in_systm.h>, and replace "n_short",guy2000-09-291-2/+1
| | | | "n_long", and "n_time", defined in that file, with other types.
* Add an "ip.h" header, to declare the IP stuff needed by dissectors, andguy2000-09-231-2/+1
| | | | | | | | | | | have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. Put the declarations of the ICMP stuff directly into "print-icmp.c". Remove all unnecessary includes of <netinet/ip*.h> files. Copy the byte-order stuff from "nameser.h" into "tcp.h".
* Add support for NetBSD DLT_PPP_SERIAL (PPP in HDLC-like framing, as perguy2000-09-181-2/+7
| | | | | | | RFC 1662, or Cisco point-to-point with HDLC framing, as per seciont 4.3.1 of RFC 1547; there's always an address and control octet at the beginning of these packets, but they're not necessarily 0xff 0x03), which we map to PCAP_ENCAP_PPP_HDLC.
* Use the new PCAP_ENCAP_ codes rather than the corresponding DLT_ codes;guy2000-09-171-16/+56
| | | | | also use those DLT_ codes that older libpcaps may have used directly rather than mapped to PCAP_ENCAP_ codes, if they're defined.
* Add a token-ring link-layer dissector, made by merging the FreeBSD andguy2000-07-251-2/+2
| | | | | NetBSD ones; use it for DLT_IEEE802, which in many OSes is used for token ring.
* remove gnuc.h and __deadassar2000-07-111-3/+3
|
* (bpf_dump): remove prorotype (now in interface.h)assar2000-06-181-6/+3
| | | | (cleanup): make static
* add `-u'assar2000-06-011-3/+8
| | | | | also check return value from getopt() against -1 and not EOF From Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
* styleitojun2000-04-271-2/+2
|
* add cisco NetFlow support from OpenBSD.itojun2000-04-271-1/+3
|
* make `-s 0' mean try to use the maximum required snaplen. based on aassar2000-04-211-4/+10
| | | | patch from "Gilbert Ramirez Jr." <gram@xiexie.org>
* Alphabetize getopt flag list.fenner2000-01-291-2/+2
|
* s/sprintf/snprintf/.itojun2000-01-171-2/+2
| | | | | there seem to be couple of unsafe use of strcat and strcpy - we should bring in strl{cat,cpy}.
* remove any of references to "ahsecret" (which is never used to date)itojun2000-01-151-11/+1
|
* switch to HAVE_LIBCRYPTOmcr2000-01-151-3/+3
|
* The patch now makes sure that libsmi is only enabledmcr1999-12-291-4/+3
| | | | | if you can actually run a program linked against it. The -enable-libsmi is gone as it should not be needed anymore.
* add print-ascii.c and print-telnet.c from netbsd.itojun1999-12-221-46/+17
| | | | | - add -X option for ascii printing. - telnet command sequences (ff xx xx) will be dumped with -vvv -X.
* * print-rt6.c: make IPv6 routing header printing work with new 2292bisitojun1999-12-221-6/+22
| | | | | | | | | | | API. * print-bgp.c: improve options printing. ugly code exists for unaligned option parsing (need some fix). * const poisoning in SMB decoder. * make dump format back to original. someone may want to add an option to do ascii printing, but keep the default behavior as is for scripts used in many places. * -Wall -Werror clean checks.
* From: Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>mcr1999-12-131-2/+19
| | | | | | | | Here is a new version of the libsmi patch for tcpdump. It provides some bug fixes and some enhancements such as access checking and better range checking. The patch also fixed a few bugs in the print_snmp.c module of tcpdump itself (unrelated to the usage of libsmi).
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* add lane and cip printingassar1999-11-211-1/+7
|
* - enable build outside of the treeitojun1999-10-301-2/+2
| | | | | | | - endian checks (use WORDS_BIGENDIAN) - fallback def for IPPROTO_{AH,ESP} - sa_len issues - do not use bittypes.h, respect AC_LBL_CHECK_TYPES
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-2/+29
| | | | | | | Hope I did not break anything. Portability on IPv4-only node needs checking, I'll do this very soon. (sorry for rather jumbo commit) XXx what is _FAVOR_BSD?
* ASCII patches for tcpdump.mcr1999-10-171-34/+41
| | | | AH/ESP printing.
* patches to help build on Linux 2.2linux22mcr1999-10-171-1/+3
|
* Initial revisionmcr1999-10-071-0/+452