summaryrefslogtreecommitdiff
path: root/print-udp.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Zephyr support, from Nickolai Zeldovich <kolya@MIT.EDU>.guy2001-09-091-1/+5
|
* Use the passed in length instead of the IP header's length in thefenner2001-08-201-22/+5
| | | | | pseudo-header checksum, to allow for IPSEC or other encapsulations. Use in_cksum() instead of private versions.
* Move all the "undefine so that the compiler doesn't whine aboutguy2001-06-261-7/+1
| | | | | | | | | | | | | redefinitions" stuff from files that include "nameser.h" to "nameser.h" itself (we used to include <arpa/nameser.h>, over which we had no control so we couldn't do that, but we now have our own "nameser.h"). Add T_OPT to the list of things we undefine, and undefine T_UNSPEC iff T_UNSPEC is defined, not iff NOERROR is defined. Replace the include of <arpa/nameser.h> in "print-rx.c" with an include of "nameser.h", and "#if 0" it out pending a determination of whether it's necessary (why would AFS's RX care about the internals of DNS packets?) or not.
* indentitojun2001-06-251-5/+3
|
* Remove #if 0 sectionsfenner2001-06-151-7/+1
| | | | | | | | Finish converting over to having the caller print the IP address (except for UDP, TCP and SCTP). This consists mostly of removing places where the IP address is printed, both in the big "case" in ip_print() and in the individual printers. Also fix a couple of spacing bugs.
* avoid trigraphitojun2001-03-171-3/+3
|
* Fix the spacing of the UDP checksum reporting.fenner2001-02-201-6/+6
|
* BIND9 lwres dissector.itojun2001-01-291-5/+8
|
* 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/+5
| | | | from: jinmei@kame.net
* The packets inside IPTalk are just LLAP packets, so call the routine toguy2000-10-301-2/+2
| | | | print them "llap_print()" (as per NetBSD), not "iptalk_print()".
* Patch from Daniel Hagerty <hag@ai.mit.edu>, submitted with NetBSD PRguy2000-10-301-2/+2
| | | | | | #4141, to dissect raw Appletalk-atop-Ethernet packets correctly, i.e. not as if they were IPTalk packets. (A very similar patch was submitted for Debian bug #67642.)
* Remove some includes of <sys/socket.h>, and add includes ofguy2000-10-101-2/+1
| | | | <netinet/in.h> to declare "ntoh[sl]" and "hton[sl]".
* 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?
* RADIUS support, from Alfredo Andres Omella (aandres@mfom.es).guy2000-10-061-1/+10
|
* "timed" dissector, from Ben Smithurst.guy2000-10-061-1/+4
|
* include string.h for memcpy/memset.itojun2000-10-031-1/+2
| | | | | on some architecutrees, sizeof(void *) > sizeof(int). don't try to cast pointer to int to check alignment issues.
* 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
* 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-3/+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.
* Print the right value when -v'ing RTP.fenner2000-08-031-2/+2
| | | | Obtained from: Steve Casner <casner@acm.org>
* udp header checksum. from netbsd.itojun2000-08-011-1/+121
|
* (udp_print): sanity check that the length in the udp header is atassar2000-07-221-1/+8
| | | | least 8 to avoid printing garbage
* Include our own "nameser.h", rather than the system's <arpa/nameser.h>,guy2000-07-141-8/+8
| | | | | | | | | | | | | to get NAMESERVER_PORT defined. <arpa/nameser.h> defines T_UNSPEC; that causes collisions on Solaris (and probably at least some other OSes) with stuff included by <rpc/rpc.h>, generating noise when compiling. Move the include of "nameser.h" near the includes of other protocol-defining header files in tcpdump; this also moves it below the include of <rpc/rpc.h>, so we can then move the #undefs of NOERROR and T_UNSPEC below most includes and still have it before the include of "nameser.h", squelching the compiler complaints.
* cast result from ntohl() with u_int32_t, some platforms still mistakinglyitojun2000-04-271-9/+9
| | | | | | use u_long for it. use u_int{16,32}_t. ECN support improvement (from net/openbsd).
* use u_int{16,32}_t, not u_{short,int}.itojun2000-04-271-19/+19
| | | | delint
* add cisco NetFlow support from OpenBSD.itojun2000-04-271-1/+10
|
* * print-rt6.c: make IPv6 routing header printing work with new 2292bisitojun1999-12-221-3/+3
| | | | | | | | | | | 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 IP src and dst even when udp is truncated.fenner1999-11-231-3/+6
|
* Enhanced PIMv1 support.fenner1999-11-221-1/+4
| | | | Cisco Auto-RP support.
* patches from Andrew Tridgell <tridge@linuxcare.com> to add decoding of SMB ↵assar1999-11-211-1/+9
| | | | packets
* fix compilation.itojun1999-11-211-2/+2
| | | | | - print-udp.c: rename of nfsv2.h -> nfs.h - print-{null,sl}.c: ipv6_print -> ip6_print
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* add Ken Hornstein's patches from ↵assar1999-11-171-1/+11
| | | | /afs/transarc.com/public/afs-contrib/tools/tcpdump to add decoding of rx (the RPC-layer used in AFS3) and the AFS3 RPCs also
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-16/+75
| | | | | | | 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-1/+10
| | | | AH/ESP printing.
* patches to help build on Linux 2.2linux22mcr1999-10-171-3/+12
|
* Initial revisionmcr1999-10-071-0/+448