Commit Graph

82083 Commits

Author SHA1 Message Date
Guy Harris 8efdf8a74c Add "acconfig.h" to make the "auto*" stuff happy.
svn path=/trunk/; revision=90
1998-11-15 00:32:01 +00:00
Gilbert Ramirez d773727c23 The Sniffer-reading code in wiretap now decodes the time field for each
packet. The date is still not taken into account, so all the traces appear to
start on Jan 1, 1970. But the time of day is correct, so at least you get good
delta times.

svn path=/trunk/; revision=89
1998-11-13 06:47:37 +00:00
Gilbert Ramirez d744ff6a91 Now that I know where to find the file format of Sniffer trace files, wiretap
now *properly* reads Sniffer files. I now know the field in the file header
which denotes link type.

svn path=/trunk/; revision=88
1998-11-13 05:57:39 +00:00
Gilbert Ramirez 7b91cc8215 More patches from Guy to make wiretap compile better. I definitely
need to learn more about autoconf/automake. :)

svn path=/trunk/; revision=87
1998-11-13 03:21:20 +00:00
Gilbert Ramirez 1f2a75cd8f More patches from Guy, cleaning up warnings when using gcc -Wall.
svn path=/trunk/; revision=86
1998-11-12 23:29:34 +00:00
Gilbert Ramirez c90b202b22 Added a patch to wiretap from Guy Harris to help compile wiretap in
different situations.  I also fixed bootp so that is properly handles
unknown BOOTP options.

svn path=/trunk/; revision=85
1998-11-12 21:39:22 +00:00
Guy Harris 4b2b211cd5 We have to include <sys/types.h>, if we have it, to declare "u_char", as
we no longer include <pcap.h>.

svn path=/trunk/; revision=84
1998-11-12 21:22:47 +00:00
Gilbert Ramirez c0f191e9e0 I added the LANalzyer file format to wiretap. I cleaned up some code in the
wiretap functions to be more generic and therefore allow an easier integration
of more packet-capture file types. I also put in all the GPL copyrights in the
wiretap code.

svn path=/trunk/; revision=83
1998-11-12 06:01:27 +00:00
Gilbert Ramirez fcb4c78a6a A lengthy patch to add the wiretap library. Wiretap is not used by default
because it is still in its infancy, but it can be compiled in optionally.
The library exists in its own subdirectory ethereal/wiretap. This patch also
edits all the packet-*.c files to remove the #include <pcap.h> line which is
unnecessary in these files. In the ethereal code, file.c is the most heavily
modified with #ifdef WITH_WIRETAP lines for the optional library.

svn path=/trunk/; revision=82
1998-11-12 00:06:47 +00:00
Gerald Combs c2eeef9467 * Fix for unsigned overflows on Solaris
svn path=/trunk/; revision=81
1998-11-08 00:05:45 +00:00
Guy Harris 2a79ef840c Get rid of the "N on link, M capture" from the null and raw detail, as
that's now in the frame-level detail display.

svn path=/trunk/; revision=80
1998-11-05 10:23:27 +00:00
Guy Harris 24f375d928 Add in a bunch of #defines for packet types.
Show the packet type as a string, as well as a hex number, in the detail
display.  Show the packet type as a hex number in the summary display if
it's not a packet type we know about.

Don't put the "N on link, M captured" stuff in the PPP detail display,
as that's now in the frame detail display.

Handle IPv6, Appletalk, IPX, and Vines.

svn path=/trunk/; revision=79
1998-11-05 10:16:59 +00:00
Guy Harris d07cba10c1 Add a routine to convert Ethernet packet types to strings.
Use that routine in "ethertype()".

	Have "dissect_arp()" handle hardware addresses that aren't
	6-byte Ethernet addresses and protocol addresses that aren't
	4-byte IPv4 addresses - currently, it just prints the first 16
	hex digits, but it could be made to handle other types specially
	just as it handles 6-byte Ethernet and 4-byte IPv4 addresses.

	Have it decode a more complete set of hardware address types.

svn path=/trunk/; revision=78
1998-11-03 07:45:10 +00:00
Gerald Combs 80787246c0 * Fixes for problems with the preference initialization code (Guy)
svn path=/trunk/; revision=77
1998-10-29 15:59:00 +00:00
Gerald Combs a0fbb64bf9 * Changes to make things easier on people with misplaced or missing pcap
headers.

svn path=/trunk/; revision=76
1998-10-28 21:52:48 +00:00
Gerald Combs 06e5aae0e3 * Added preference file saves and reads.
svn path=/trunk/; revision=75
1998-10-28 21:38:11 +00:00
Gerald Combs 3b9dda5d6b * Aligned the icon with the top edge of the dialog.
svn path=/trunk/; revision=74
1998-10-28 21:22:33 +00:00
Guy Harris c1d8559379 Use "memcpy()" rather than "bcopy()", to eliminate one "gcc -Wall"
warning.  (We use "memcpy()" everywhere else.)

svn path=/trunk/; revision=73
1998-10-28 01:29:16 +00:00
Guy Harris 6f241463be Add the "Maximize security" type of service for IP, from RFC
1455.

	Make the arguments to "val_to_str()" and "match_strval()" that
	point to things those routines don't modify pointers to "const",
	and make the "value_string" tables passed into those routines in
	"packet-ip.c" "const".

svn path=/trunk/; revision=72
1998-10-28 01:16:49 +00:00
Gilbert Ramirez 4dc16ca678 Removed unused variable and fixed call to add_item_to_tree, as reported
by Guy Harris.

svn path=/trunk/; revision=71
1998-10-27 16:43:15 +00:00
Gilbert Ramirez dd4f06a54c I added the byte count to the Data section. The print routines had to
be modified to check the beginning of the string instead of the entire string
when trying to find the Data section in order to print a hex dump.

svn path=/trunk/; revision=70
1998-10-22 19:10:19 +00:00
Gilbert Ramirez 92057886bd An NCP READ is now decoded. This is the first function to be decoded.
I expect much of the packet-ncp.c file to change.

svn path=/trunk/; revision=69
1998-10-22 04:50:21 +00:00
Gilbert Ramirez 392dd3f68b Silly mistake which caused if(tree) to fail.
svn path=/trunk/; revision=68
1998-10-22 04:03:40 +00:00
Gilbert Ramirez c903fbf883 Removed some routines in support of match_strval function.
svn path=/trunk/; revision=67
1998-10-21 02:36:54 +00:00
Guy Harris 0bb16cb989 Add a "val_to_str()" routine that calls "match_strval()" and, if
it returns NULL, formats the value with the format passed in as
	an argument, and returns a pointer to that static buffer.

	Change several "match_strval()" calls to use "val_to_str()".

	In "dissect_ospf()", use "match_strval()" to look up the packet
	type, and use "Unknown" if it doesn't find a match.

svn path=/trunk/; revision=66
1998-10-20 05:31:03 +00:00
Guy Harris 7867e7441d Add declarations of "dissect_aarp()' and "dissect_ddp()".
svn path=/trunk/; revision=65
1998-10-16 06:46:55 +00:00
Guy Harris c667a0d82b Get rid of unused "etype_str[]" array in "ethertype()".
svn path=/trunk/; revision=64
1998-10-16 06:46:16 +00:00
Guy Harris 261e2cde3b Add Simon Wilkinson to the list of contributors in the "About" box.
svn path=/trunk/; revision=63
1998-10-16 06:44:32 +00:00
Gerald Combs 3202dc8a48 Added Simon
svn path=/trunk/; revision=62
1998-10-16 01:22:29 +00:00
Gerald Combs 349f96bb49 * Copied in the correct GNU license (I'm such a goober)
* Hacks to the filter interface (Gerald)
* About box (Laurent)
* AppleTalk support (Simon)
* Mods to the match_strval routine (Gerald)

svn path=/trunk/; revision=61
1998-10-16 01:18:35 +00:00
Gilbert Ramirez 5a35314f80 I'm preparing ncp for expansion (i.e., cleaning up my old code). I also
changed the summary line so that "Reply"/"Request" is printed.

svn path=/trunk/; revision=60
1998-10-15 21:12:17 +00:00
Guy Harris 44c17a888d Fix up an "sprintf()" to handle the possibility that the difference
between two pointers might be a "long" rather than an "int" (on a
platform where they're not the same).

svn path=/trunk/; revision=59
1998-10-15 06:55:42 +00:00
Guy Harris 75b9af68eb Show queries as a summary line (as was the case before my DNS checkins)
which can be expanded into a detailed name/type/class description.

svn path=/trunk/; revision=58
1998-10-15 06:40:51 +00:00
Guy Harris 02fdc292b1 Use "ip_to_str()" and "ether_to_str()" to extract IP and MAC addresses
from a packet and turn them into character strings in dotted-quad or
colonized-sextet form.

svn path=/trunk/; revision=57
1998-10-14 22:37:02 +00:00
Gilbert Ramirez ca377bf6cd Needed for common routines between DNS and NBNS.
svn path=/trunk/; revision=56
1998-10-14 20:03:03 +00:00
Guy Harris 022967513b Tag NetBIOS Name Service-over-UDP packets as "NBNS (UDP)".
Give a detailed display of the innards of NBNS-over-UDP packets.  Export
some stuff from the DNS decoder for the use of the NBNS decoder (NBNS is
DNS-like).

Give a more detailed display of the innards of DNS packets as well.

Fix a couple of minor NBNS bugs.

svn path=/trunk/; revision=55
1998-10-14 19:35:00 +00:00
Guy Harris b3da21d812 Don't assume the UDP header is always properly aligned (sometimes it
isn't).

svn path=/trunk/; revision=54
1998-10-14 08:47:16 +00:00
Gilbert Ramirez 5e649516c9 I've started to figure out the difference between NetBIOS over IPX for
Netware, and NetBIOS over IPX for WinNT (NWLink).

svn path=/trunk/; revision=53
1998-10-14 05:18:32 +00:00
Gilbert Ramirez 4dbba72d17 I rename the single dissect() function in packet-nbipx.c, and had packet-ipx.c
call it under fewer circumstances.

svn path=/trunk/; revision=52
1998-10-14 04:28:49 +00:00
Gilbert Ramirez f7d830215e This should have been part of my previous 'cvs commit' (netbios name
services), but I forgot this file (I was doing the commmit manually).

svn path=/trunk/; revision=51
1998-10-14 04:11:32 +00:00
Gilbert Ramirez 4ef47e6cfb Added preliminary support for NetBIOS Name Services over IPX and UDP. Note
that these are two very different implementations of NetBIOS name services and
at the protocol level are not similar. I have put the UDP protocol in
packet-nbns.c, since it will be a very big module. I have all of rfc 1002 to
read and implement. I am planning on putting many different NetBIOS over IPX
functions in packet-nbipx.c, however, since there is no RFC or published
standard. I have to hack the protocol, and as such, I do not expect it to be
as full-featured as the IP-world equivalents.

svn path=/trunk/; revision=50
1998-10-14 04:09:15 +00:00
Laurent Deniel 23ab0b90bd too few arguments for sprintf format
svn path=/trunk/; revision=49
1998-10-13 17:56:41 +00:00
Guy Harris f2f366e715 On most systems, bit-swap the bytes of an FDDI MAC address. (List of
systems on which you don't bit-swap them taken from "tcpdump"; the list
may not be complete.)

svn path=/trunk/; revision=48
1998-10-13 07:48:03 +00:00
Guy Harris d0b809aa74 Squelch a number of "-Wall" errors by:
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff
	   used by the "snprintf()" *implementation*, but not stuff it
	   *exports*);

	2) creating a new "snprintf.h" to declare "vsnprintf()" and
	   "snprintf()";

	3) removing an unused variable;

	4) fixing a call to "add_item_to_tree()" to handle the
	   possibility of "ntohl()" returning a "long" rather than an
	   "int".

svn path=/trunk/; revision=47
1998-10-13 07:03:37 +00:00
Guy Harris d9850d803f Remove the length-on-wire and length-captured values from the FDDI
detail display; that's now in the "frame" detail display.

svn path=/trunk/; revision=46
1998-10-13 05:55:45 +00:00
Guy Harris 7f2da15d6b Add a routine to dissect IP or TCP options (and, from a look at RFC
1883, it should, perhaps with some additions, be able to handle IPv6
options as well).

Make the IPv4 and TCP dissectors use it.

Fix a typo in the IP dissector ("Unknon" for "Unknown").

Show the IP and TCP header lengths as byte counts rather than
4-byte-word counts.

Show the protocol field value of an IP header as a name if it's a
protocol we know about.

List the acknowledgment and urgent pointer values in a TCP header only
if the corresponding flag is set.

Make the ETT_ values members of an enum, so that the compiler
automatically assigns them sequential integer values (at least if said
compiler conforms to the ANSI C standard).

svn path=/trunk/; revision=45
1998-10-13 05:40:04 +00:00
Guy Harris d6907f93bc Make the "value_string" array in "dissect_arp()" static, so it can be
initialized at compile time.

Compute the number of elements in that array at compile time.

Fix a typo ("Unkown" for "Unknown").

svn path=/trunk/; revision=44
1998-10-13 05:20:53 +00:00
Guy Harris 6de55279b9 Fix to use #define values as subscripts of "win_info[]".
svn path=/trunk/; revision=43
1998-10-13 05:12:13 +00:00
Gilbert Ramirez 6282a99523 Removed an endless loop situation if the BOOTP option was unknown.
svn path=/trunk/; revision=42
1998-10-13 03:39:15 +00:00
Gilbert Ramirez 0c8d1dd1b3 Commented out a left-over debug printf() statement.
svn path=/trunk/; revision=41
1998-10-13 03:38:16 +00:00