Commit Graph

383 Commits

Author SHA1 Message Date
itojun
a547c0ebd8 add a function to decode CR payload. 2000-09-23 04:43:42 +00:00
itojun
8b78a0b7a4 repair ID payload protocol # decoding. we shouln't check DOI,
and 0 means ANY (not IPPROTO_IP).
2000-09-22 20:35:34 +00:00
guy
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.)
2000-09-19 14:57:27 +00:00
guy
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).
2000-09-19 04:01:25 +00:00
guy
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.

Call "ipx_print()" for PPP_IPX (and ETHERTYPE_IPX, along the lines of
what we do for IP) packets.
2000-09-18 05:23:31 +00:00
guy
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.
2000-09-18 05:11:43 +00:00
guy
4ab25244f4 There's no longer a rule to make "force", so don't make "depend" depend
on "force".
2000-09-18 05:05:36 +00:00
guy
829b241fc4 Give it an RCS ID. 2000-09-18 04:40:46 +00:00
guy
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.
2000-09-17 04:13:13 +00:00
guy
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.
2000-09-09 07:06:17 +00:00
itojun
c25493a5b5 typo. query/reply mixup. from jinmei@kame.net 2000-08-30 14:28:44 +00:00
itojun
2ccbd10907 icmp6 nodeinfo printing; "node addresses" have TTL field with addresses.
repair boundary check, avoid overrun.
2000-08-29 16:04:55 +00:00
guy
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.
2000-08-22 08:05:33 +00:00
guy
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.
2000-08-22 08:03:03 +00:00
guy
5f20b5ceb6 Copy the explanation of "print-cip.c" from the Linux ATM patch whence
"print-cip.c" came.

Add "print-token.c".
2000-08-19 02:07:30 +00:00
itojun
8e045dcd49 be careful about buffer overrun. previous version made no checks. 2000-08-18 08:20:10 +00:00
itojun
6772b53805 style pedant. buffer length check cleanup will be next. 2000-08-18 07:53:35 +00:00
itojun
89170d3c1f forgot my name 2000-08-18 07:45:41 +00:00
itojun
421fc7d893 * improved PPP/L2TP/PPPoE decoder.
From: Motonori Shindo <mshindo@mshindo.net>
2000-08-18 07:45:24 +00:00
itojun
1d0f632354 more detailed output in ppp/pppoe/l2tp.
From: Motonori Shindo <mshindo@mshindo.net>
2000-08-18 07:44:45 +00:00
fenner
1c332d9947 Set frpcnt to the right value.
Submitted by:	Ravi Puvvala <ravi@iprg.nokia.com>
2000-08-17 18:38:24 +00:00
fenner
5b7f4d2150 Print the right value when -v'ing RTP.
Obtained from: Steve Casner <casner@acm.org>
2000-08-03 22:21:19 +00:00
guy
4b440ad855 To translate NFS error statuses to strings, use "tok2str()" and a table,
rather than using "pcap_strerror()", as

	1) not all NFS error statuses are UNIX errno values;

	2) even those that are UNIX errno values aren't necessarily
	   errno values for the system on which you're running tcpdump.
2000-08-03 18:52:24 +00:00
itojun
f99f9eef51 typo in ni query/reply. ICMP6_NI_SUCESS -> SUCCESS 2000-08-03 14:25:57 +00:00
itojun
ce1974036f tcp/udp pseudo header checksum 2000-08-01 20:29:26 +00:00
itojun
cb4e517e9a udp header checksum. from netbsd. 2000-08-01 17:36:49 +00:00
itojun
0aa3de7fa3 do not use ip_p for getting protocol # in tcp_cksum. we may have AH/ESP. 2000-08-01 17:35:05 +00:00
itojun
edde6f560a tcp checksum. requested from darren reed. code from netbsd. 2000-08-01 17:28:09 +00:00
itojun
06cd36d1c9 correct spacing. 2000-07-31 02:47:27 +00:00
assar
4bfc434ed7 use a more liberal regular expression when looking for matching libpcap 2000-07-30 10:53:20 +00:00
assar
bf8e70b0c1 use common names for directories
use INSTALL_PROGRAM/INSTALL_DATA
do not install tcpdump mode 550
2000-07-30 05:57:09 +00:00
assar
7d9a820fd1 add <ctype.h> 2000-07-30 05:56:11 +00:00
assar
86f858ef54 (token_if_print): remove unused variable 2000-07-30 05:55:44 +00:00
guy
1bc55e74a4 Fix the names in the entries in the credits for Alexey Kuznetsov and
Alfredo Andres.

Change my address to my mail-forwarding address; "any problem in
computer science can be solved by adding a layer of indirection".
2000-07-30 05:27:46 +00:00
assar
5a79e16fad try fetch names from CVS logs and adding here 2000-07-29 10:16:23 +00:00
assar
9a73b4a784 replace non-existing TRUNC with standard TCHECK2 2000-07-29 09:20:26 +00:00
guy
674fea664d Changes from Kevin Steves to print, in an RST segment, the payload as
text, as per RFC 1122:

	4.2.2.12  RST Segment: RFC-793 Section 3.4

	   A TCP SHOULD allow a received RST segment to include data.

	   DISCUSSION
		It has been suggested that a RST segment could contain
		ASCII text that encoded and explained the cause of the
		RST.  No standard has yet been established for such
		data.

as some TCP implementations (e.g., HP-UX 11.0) do that.

Clean up the code that prints the payload of non-RST segments.
2000-07-29 09:06:23 +00:00
assar
8fda1c6d19 print the RX ack packets 2000-07-29 08:10:05 +00:00
assar
d171e52e94 s/nfstype/nfs_type/ to avoid conflict with system header files 2000-07-29 08:05:04 +00:00
assar
c3da12efe5 replace bzero with memset 2000-07-29 08:03:05 +00:00
assar
1bdce8fba3 (ip6_print): fix flipped arguments to memcpy. From Rafal Maszkowski
<rzm@icm.edu.pl>
2000-07-29 07:53:28 +00:00
assar
ed19831eeb print more types, from Gert Doering <gert@greenie.muc.de> 2000-07-29 07:27:54 +00:00
assar
b39af80fe3 (install): install everything
(uninstall): add
(force): remove
2000-07-29 06:51:24 +00:00
assar
1a70cc2bfd update:
- gcc pointer
- configure and make install instructions
- some versions
- list of files
2000-07-29 06:50:51 +00:00
assar
d38c366e0b print more data with `-v'. From Kevin Steves <stevesk@sweden.hp.com> 2000-07-29 06:22:17 +00:00
assar
30ddfa532e print IP length. From Kevin Steves <stevesk@sweden.hp.com> 2000-07-29 06:06:27 +00:00
guy
cff875676c Fix a typo. 2000-07-25 06:23:05 +00:00
guy
1b05fbbdc9 Add documentation for Token Ring.
Change some font choices to match the conventions used historically in
this man page (use boldface for literal strings, italics for variables,
and italics for "tcpdump" when it refers to the name of the program).
2000-07-25 06:09:32 +00:00
guy
277dc1f0ec Add a token-ring link-layer dissector, made by merging the FreeBSD and
NetBSD ones; use it for DLT_IEEE802, which in many OSes is used for
token ring.
2000-07-25 05:28:11 +00:00
assar
2f3d1f335a (udp_print): sanity check that the length in the udp header is at
least 8 to avoid printing garbage
2000-07-22 23:58:01 +00:00