summaryrefslogtreecommitdiff
path: root/print-tcp.c
Commit message (Collapse)AuthorAgeFilesLines
...
* indentitojun2001-06-251-2/+2
|
* Move some stuff that tried to make up for system headers from print-tcp.cfenner2001-05-091-40/+1
| | | | | to tcp.h, since don't use the system headers now anyway it was just making up for our own tcp.h.
* PPTP support, from Motonori Shindo <mshindo@mshindo.net>.guy2001-03-091-1/+6
|
* decode DNS over TCPitojun2001-02-031-12/+19
|
* remove extra spaceitojun2001-01-281-2/+1
|
* use safeputchar() instead of cook up on its own.itojun2001-01-281-5/+2
|
* When adding the last byte of an odd number of bytes to a TCP or UDPguy2000-12-231-3/+3
| | | | | | | | | | checksum, fetch it by casting the pointer to "const u_int8_t *" rather than "const char *" - casting it to "const char *" causes it to be sign-extended, perhaps causing 16 1 bits to be added in at the top and, at least on big-endian platforms (where "htons()" does nothing, meaning it won't trim off the extra 16 bits) with signed "char"s (e.g., SPARC), causing the checksum to be computed incorrectly and causing it to incorrectly be reported as bad.
* do not try to compute tcp/udp checksum for fragmented datagram.itojun2000-11-171-4/+4
| | | | from: jinmei@kame.net
* put stripped-down version of ip6.h and icmp6.h into tcpdump tree.itojun2000-10-071-5/+4
| | | | | | | | ip6.h is almost normal RFC2292 header. icmp6.h has couple of extensions (not covered by RFC2292), like MLD, ICMPv6 nodeinfo, and router renumber. XXX how to synchronize with future kame changes?
* always use u_intXX_t for protocol format declaration. char/short/int may notitojun2000-10-031-4/+4
| | | | | | 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
* do not use integer bitfield when we care about the resulting member size.itojun2000-10-031-4/+4
| | | | | 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.
* BXXP support, from Richard Sharpe <sharpe@ns.aus.com>.guy2000-09-301-1/+4
|
* 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-3/+3
| | | | | | | | | | | 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 "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff neededguy2000-09-231-2/+3
| | | | | | | | | 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. Remove all unnecessary includes of <netinet/udp*.h> or <netinet/tcp*.h> files.
* do not use ip_p for getting protocol # in tcp_cksum. we may have AH/ESP.itojun2000-08-011-2/+2
|
* tcp checksum. requested from darren reed. code from netbsd.itojun2000-08-011-1/+118
|
* add <ctype.h>assar2000-07-301-1/+2
|
* Changes from Kevin Steves to print, in an RST segment, the payload asguy2000-07-291-8/+55
| | | | | | | | | | | | | | | | | | 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.
* replace bzero with memsetassar2000-07-291-2/+2
|
* remove non-STDC codeassar2000-07-011-4/+1
|
* support print the NFS-over-TCPassar2000-06-011-2/+28
| | | | From Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
* -Wall -Werror clean. fix uninitialized variables.itojun2000-04-281-6/+9
|
* cast result from ntohl() with u_int32_t, some platforms still mistakinglyitojun2000-04-271-23/+21
| | | | | | use u_long for it. use u_int{16,32}_t. ECN support improvement (from net/openbsd).
* add print-ascii.c and print-telnet.c from netbsd.itojun1999-12-221-3/+9
| | | | | - 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-4/+8
| | | | | | | | | | | 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.
* - Print the IP source and destination if the TCP header is truncated beforefenner1999-11-221-9/+13
| | | | | | | the ports. - Print the TCP port information if the TCP header is truncated after the ports. - Print the sequence number if -vv even if you wouldn't normally.
* patches from Andrew Tridgell <tridge@linuxcare.com> to add decoding of SMB ↵assar1999-11-211-1/+5
| | | | packets
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* handle ECHO and re-do SACK. From kuznet@ms2.inr.ac.ruassar1999-11-211-10/+38
|
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-6/+108
| | | | | | | 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?
* patches to help build on Linux 2.2linux22mcr1999-10-171-3/+3
|
* Initial revisionmcr1999-10-071-0/+363