Commit Graph

  • f685a42c3d Pull the "linux-include" versions of "slip.h" and "slcompress.h" up to the top-level directory, remove from them all stuff not needed by tcpdump, include them rather than the system's header files, and get rid of assorted unnecessary include files. guy 2000-10-09 01:53:19 +0000
  • 46f6e51d59 Get rid of unnecessary includes, and use tcpdump's "ip.h" and "udp.h" rather than the OS's <netinet/ip.h> and <netinet/udp.h>. guy 2000-10-08 08:48:48 +0000
  • f4f269aecb regen itojun 2000-10-07 05:59:49 +0000
  • 01ebeb4600 no need to check struct defs in netinet/icmp6.h itojun 2000-10-07 05:58:06 +0000
  • ce132b307b put stripped-down version of ip6.h and icmp6.h into tcpdump tree. ip6.h is almost normal RFC2292 header. icmp6.h has couple of extensions (not covered by RFC2292), like MLD, ICMPv6 nodeinfo, and router renumber. itojun 2000-10-07 05:53:09 +0000
  • 8f5ebe04d0 regen itojun 2000-10-07 05:49:00 +0000
  • c43ed203fe no need for ENABLE_IPV6 itojun 2000-10-07 05:47:44 +0000
  • 572684c348 no need to define ENABLE_IPV6, we use INET6 itojun 2000-10-07 05:47:31 +0000
  • e7eb00b756 no need to include ip6.h itojun 2000-10-07 05:46:21 +0000
  • e4a2efd60a no need to include ip6.h itojun 2000-10-07 05:33:25 +0000
  • 88633a8337 repair 1-byte buffer overrun itojun 2000-10-07 05:20:24 +0000
  • 92ca94f40f Revert rev 1.9, since Guy has a better way. fenner 2000-10-06 17:21:39 +0000
  • b0385536d7 move ah/esp struct declratiaon into separate header (ah.h and esp.h). they are from KAME. itojun 2000-10-06 11:32:17 +0000
  • 90a3f90f3e RADIUS support, from Alfredo Andres Omella (aandres@mfom.es). guy 2000-10-06 06:49:20 +0000
  • 3b1019f08e unused variable itojun 2000-10-06 06:18:35 +0000
  • 406f61ca54 Remove erroneous semicolon from "for()" clause; patch from Michael T. Stolarchuk. guy 2000-10-06 05:54:50 +0000
  • 0e40e56ff0 "timed" dissector, from Ben Smithurst. guy 2000-10-06 05:35:36 +0000
  • 412fcb315a Squelch a compiler warning. guy 2000-10-06 04:25:59 +0000
  • e11ed169b1 Get rid of some includes of <net/route.h>, and empty declarations of "struct mbuf" and "struct rtentry" - they shouldn't be necessary (and weren't on the platforms on which I tested, both with GCC and the native compiler if it isn't GCC). guy 2000-10-06 04:23:10 +0000
  • b67cb8951c We no longer include <netinet/ip.h>, so we don't need to work around Digital UNIX using "ip_vhl" rather than "ip_v" and "ip_hl" bitfields if __STDC__ is defined (we have our own "ip.h", and we don't use bitfields in it). guy 2000-10-06 04:19:21 +0000
  • 535dd007b3 some sprintf fixes, from kris@freebsd.org (patches@tcpdump.org #89) pedant. itojun 2000-10-05 04:10:00 +0000
  • 0189b8381d fix range check for ipcomp negotiation. From: mshindo@mshindo.net itojun 2000-10-04 22:37:29 +0000
  • 9941ef6f9b Regenerate to reflect changes in revs 1.122 and 1.123 of configure.in fenner 2000-10-04 17:00:20 +0000
  • 282ea8eca3 Unbreak autoheader (was broken by rev. 1.123 of configure.in) fenner 2000-10-04 16:59:04 +0000
  • a1a84157b8 sync with kame header. remove unofficial number (V42bis compression for IPComp). itojun 2000-10-04 03:00:29 +0000
  • 80b6305708 add AES and SHA2-* itojun 2000-10-04 02:54:40 +0000
  • 4dcccc8aba Use "u_int8_t", "u_int16_t", and "u_int32_t" rather than "u_char", "u_short", and "u_int". guy 2000-10-03 09:30:37 +0000
  • 2030f51199 C bitfields are no longer being used to extract bit fields from the IP and TCP headers, so there's no need to stuff the byte-order stuff into these header files. guy 2000-10-03 09:17:40 +0000
  • 5bad3420c9 Bitfield layout in memory is not specified by the ANSI C spec; don't use C bitfields to specify the layout of a DNS request or response header, use shifts and masks to extract the bitfields. guy 2000-10-03 09:13:25 +0000
  • 9a5a2739b1 don't try to chase unaligned pointer. XXX memcpy() can be optimized in wacky way. not sure if the use of safememcpy() is enough... itojun 2000-10-03 05:16:38 +0000
  • febfc92d3f include string.h for memcpy/memset. on some architecutrees, sizeof(void *) > sizeof(int). don't try to cast pointer to int to check alignment issues. itojun 2000-10-03 04:19:07 +0000
  • 9d45fb750b fix mistake in bitfield conversion itojun 2000-10-03 03:14:46 +0000
  • 864dbc54ee regen itojun 2000-10-03 03:00:08 +0000
  • b1b643aa50 workaround check of inet_{ntop,pton} for bsdi4. itojun 2000-10-03 02:59:53 +0000
  • 061c146d5d typo. from jinmei@kame.net itojun 2000-10-03 02:55:39 +0000
  • fb75d3cd5a always use u_intXX_t for protocol format declaration. char/short/int may not come with exact size. while at it, correct signedness of ip/udp header field. nuke most of the use of bitfield. TODO: bitfield in namser.h itojun 2000-10-03 02:54:54 +0000
  • cdaba7de64 do not use integer bitfield when we care about the resulting member size. u_int x:4, y:4; will occupy sizeof(int) on some platforms, while it occupy 1 byte on some platforms. use macro to decode th_off. itojun 2000-10-03 02:26:53 +0000
  • 64b4695379 typo in comment. from jinmei@kame.net itojun 2000-10-03 02:19:04 +0000
  • bbb665b76f grab upper layer protocol by chasing extension header chain. from jinmei@kame.net itojun 2000-10-03 02:17:50 +0000
  • fb4b2d5994 Include "interface.h" so that we check the definition of "bxxp_print()" against its declaration in "interface.h". guy 2000-09-30 08:37:44 +0000
  • 674302314e BXXP support, from Richard Sharpe <sharpe@ns.aus.com>. guy 2000-09-30 03:35:55 +0000
  • 7fb68b0c2d more packed attributes, to avoid confusion on alignment-picky arch (need more tests) itojun 2000-09-29 20:42:34 +0000
  • 879ed4b76e regen itojun 2000-09-29 20:38:54 +0000
  • 7f771a11e4 remove rc5 support. - presense of rc5.h does not correctly identify availability of rc5 library (neither AC_CHECK_FUNCS), - we don't advocate it, - and its use is very rare. itojun 2000-09-29 20:37:27 +0000
  • 8fed70e6bd Get "udp.h" from the tcpdump source tree, not from a system header file. guy 2000-09-29 05:46:11 +0000
  • 5bca6d30f4 Don't use "long" in structures that represent packet layouts - "long" isn't necessarily 32 bits. guy 2000-09-29 05:33:48 +0000
  • 6de29a0314 Declare bitfields as "u_int", not "u_char"; ANSI C doesn't guarantee that bitfields other than "int" or "unsigned int" are allowed, some compilers warn about them, and, given that the declaration of a bit field says how many bits it is wide, declaring them "u_char" doesn't have any advantage (other than making it a bit clearer, when reading the header, that the bitfields in question are part of a single byte). guy 2000-09-29 05:05:47 +0000
  • cf53dc05f1 Get rid of includes of <netinet/in_systm.h>, and replace "n_short", "n_long", and "n_time", defined in that file, with other types. guy 2000-09-29 04:58:33 +0000
  • 0e59c1e8d3 need udp.h for handling port unreach itojun 2000-09-28 11:27:35 +0000
  • 8b67f77134 Get rid of unneeded includes of <net/if.h>. guy 2000-09-28 06:42:55 +0000
  • 6b33165a8f Fix the code to handle the Password Authentication Protocol Authenticate-Ack and Authenticate-Nak packets to do a length check based on "msg_len", which we set in that case, rather than "passwd_len", which we don't. Thanks and a tip of the Hatlo Hat to some non-GCC compiler - I forget which one - that noticed that we were using a variable which we hadn't necessarily set. guy 2000-09-24 08:08:56 +0000
  • 09a08a47f6 Make a buffer a "u_char" buffer, to avoid the warning some compilers give when a "u_char *" is assigned a pointer to the first element of that buffer. guy 2000-09-24 07:59:35 +0000
  • b3dd87de7e tcpdump requires a C compiler that supports prototypes, as they're used throughout it; get rid of the use of the "__P()" macro, as, at least on some platforms with some compilers, that macro doesn't expand to its argument, causing the functions not to be declared with function prototypes, which then causes the compiler to warn about the prototype declaration and the function definition disagreeing. guy 2000-09-24 07:50:35 +0000
  • c922e6e0b8 "getname()" takes a "u_char *" as an argument; cast arguments to it to "u_char *", rather than "char *", to avoid warnings on some compilers. guy 2000-09-24 07:48:19 +0000
  • 82a146e7f9 In "pppoe_print()", in the loop for processing tags, "tag_type" merely has to be set to a non-zero value at the beginning of the loop; setting it to -1 causes some compilers to warn that -1 doesn't fit in an unsigned short, so set it to 0xffff instead. guy 2000-09-24 07:46:05 +0000
  • 50c77d8419 Define some functions as "static", to match the declarations of those functions as static earlier in the file; some compilers warn about that. guy 2000-09-24 07:44:33 +0000
  • 37543fd5b1 Cast an string constant argument to "u_char *", to avoid warnings from some compilers. guy 2000-09-24 07:43:26 +0000
  • 6f8f2af2fb Get rid of some includes that aren't needed; the include of <net/if.h>, on at least some platforms, drags in <net/if_arp.h>, which may declare some of the structures for ARP packet layouts, and may do so in a fashion that conflicts with the declarations here. guy 2000-09-24 07:42:31 +0000
  • ae1c61d25e Get rid of some "__attribute__ ((packed))"s that I missed. guy 2000-09-24 07:40:45 +0000
  • 536f512583 Add an "ip.h" header, to declare the IP stuff needed by dissectors, and have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. guy 2000-09-23 08:54:24 +0000
  • 7b50febe28 Add "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff needed by dissectors, and have dissectors include them rather than <netinet/udp.h>, <netinet/udp_var.h>, or <netinet/tcp.h>, if they actually need that stuff. guy 2000-09-23 08:26:30 +0000
  • e894092542 Add definitions of Ethernet types from "linux-includes/netinet/if_ether.h" to "ethertype.h". guy 2000-09-23 08:03:27 +0000
  • a547c0ebd8 add a function to decode CR payload. itojun 2000-09-23 04:43:42 +0000
  • 8b78a0b7a4 repair ID payload protocol # decoding. we shouln't check DOI, and 0 means ANY (not IPPROTO_IP). itojun 2000-09-22 20:35:34 +0000
  • 81f8a310d5 When making directories into which to install files in "make install", change the directory mode to 755 after making the directory, so that the directory is publicly readable and searchable even if the user doing the "make install" has a umask that takes away public read and search permissions. (I think that's been a problem at least once - somebody had trouble configuring and building Ethereal, probably because "/usr/local/include/net" wasn't publicly readable and searchable, and my suspicion is that somebody did "make install-incl" or "make install" of libpcap when their umask was 027.) guy 2000-09-19 14:57:27 +0000
  • 9c1c90781a The current "config.guess" may give different Alpha processors different names, e.g. "alphaev56", rather than just "alpha", so, in "AC_LBL_UNALIGNED_ACCESS", we should check for "alpha*", rather than "alpha", in our test for platforms we *know* shouldn't do unaligned accesses (Digital^H^H^H^H^H^H^HTru64 UNIX, by default, may just catch the alignment trap, complain on the console, and then simulate the unaligned access, but that's slow - and, in one test, didn't appear to prevent all the faults from unaligned accesses). guy 2000-09-19 04:01:25 +0000
  • 67fb8aedc6 In "ppp_protoname()", get rid of the "#ifdef PPP_xxx" around PPP_xxx types defined in "ppp.h" (as we know they're defined), and add PPP_VJC and PPP_VJNC. guy 2000-09-18 05:23:31 +0000
  • 6bd49d02af Add support for NetBSD DLT_PPP_SERIAL (PPP in HDLC-like framing, as per 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. guy 2000-09-18 05:11:43 +0000
  • 4ab25244f4 There's no longer a rule to make "force", so don't make "depend" depend on "force". guy 2000-09-18 05:05:36 +0000
  • 829b241fc4 Give it an RCS ID. guy 2000-09-18 04:40:46 +0000
  • e556f2501b Use the new PCAP_ENCAP_ codes rather than the corresponding DLT_ codes; also use those DLT_ codes that older libpcaps may have used directly rather than mapped to PCAP_ENCAP_ codes, if they're defined. guy 2000-09-17 04:13:13 +0000
  • 4291b4708b Expand the comment before the "#if 0"ed out code to dump the address and control fields of a PPP frame, to indicate what I've found from trolling through the FreeBSD and NetBSD PPP code. guy 2000-09-09 07:06:17 +0000
  • c25493a5b5 typo. query/reply mixup. from jinmei@kame.net itojun 2000-08-30 14:28:44 +0000
  • 2ccbd10907 icmp6 nodeinfo printing; "node addresses" have TTL field with addresses. repair boundary check, avoid overrun. itojun 2000-08-29 16:04:55 +0000
  • a424d22953 I finally realized that the credits were in alphabetical order by full name, first name first; put the new entries in the right place. guy 2000-08-22 08:05:33 +0000
  • 590d3c8e5c Give credit to Larry Lile, who did the FreeBSD Token Ring support in tcpdump, and Onno van der Linden, who did the NetBSD Token Ring support in tcpdump, as our Token Ring support is a merger of those two. guy 2000-08-22 08:03:03 +0000
  • 5f20b5ceb6 Copy the explanation of "print-cip.c" from the Linux ATM patch whence "print-cip.c" came. guy 2000-08-19 02:07:30 +0000
  • 8e045dcd49 be careful about buffer overrun. previous version made no checks. itojun 2000-08-18 08:20:10 +0000
  • 6772b53805 style pedant. buffer length check cleanup will be next. itojun 2000-08-18 07:53:35 +0000
  • 89170d3c1f forgot my name itojun 2000-08-18 07:45:41 +0000
  • 421fc7d893 * improved PPP/L2TP/PPPoE decoder. From: Motonori Shindo <mshindo@mshindo.net> itojun 2000-08-18 07:45:24 +0000
  • 1d0f632354 more detailed output in ppp/pppoe/l2tp. From: Motonori Shindo <mshindo@mshindo.net> itojun 2000-08-18 07:44:45 +0000
  • 1c332d9947 Set frpcnt to the right value. fenner 2000-08-17 18:38:24 +0000
  • 5b7f4d2150 Print the right value when -v'ing RTP. fenner 2000-08-03 22:21:19 +0000
  • 4b440ad855 To translate NFS error statuses to strings, use "tok2str()" and a table, rather than using "pcap_strerror()", as guy 2000-08-03 18:52:24 +0000
  • f99f9eef51 typo in ni query/reply. ICMP6_NI_SUCESS -> SUCCESS itojun 2000-08-03 14:25:57 +0000
  • ce1974036f tcp/udp pseudo header checksum itojun 2000-08-01 20:29:26 +0000
  • cb4e517e9a udp header checksum. from netbsd. itojun 2000-08-01 17:36:49 +0000
  • 0aa3de7fa3 do not use ip_p for getting protocol # in tcp_cksum. we may have AH/ESP. itojun 2000-08-01 17:35:05 +0000
  • edde6f560a tcp checksum. requested from darren reed. code from netbsd. itojun 2000-08-01 17:28:09 +0000
  • 06cd36d1c9 correct spacing. itojun 2000-07-31 02:47:27 +0000
  • 4bfc434ed7 use a more liberal regular expression when looking for matching libpcap assar 2000-07-30 10:53:20 +0000
  • bf8e70b0c1 use common names for directories use INSTALL_PROGRAM/INSTALL_DATA do not install tcpdump mode 550 assar 2000-07-30 05:57:09 +0000
  • 7d9a820fd1 add <ctype.h> assar 2000-07-30 05:56:11 +0000
  • 86f858ef54 (token_if_print): remove unused variable assar 2000-07-30 05:55:44 +0000
  • 1bc55e74a4 Fix the names in the entries in the credits for Alexey Kuznetsov and Alfredo Andres. guy 2000-07-30 05:27:46 +0000
  • 5a79e16fad try fetch names from CVS logs and adding here assar 2000-07-29 10:16:23 +0000
  • 9a73b4a784 replace non-existing TRUNC with standard TCHECK2 assar 2000-07-29 09:20:26 +0000
  • 674fea664d Changes from Kevin Steves to print, in an RST segment, the payload as text, as per RFC 1122: guy 2000-07-29 09:06:23 +0000
  • 8fda1c6d19 print the RX ack packets assar 2000-07-29 08:10:05 +0000