Commit Graph

86640 Commits

Author SHA1 Message Date
Gerald Combs 6ca358948b * Added column formatting functionality.
* Added check_col(), add_col_str() and add_col_fmt() to replace references
  to ft->win_info.
* Added column prefs handling code.

svn path=/trunk/; revision=97
1998-11-17 04:29:13 +00:00
Guy Harris 8d616b0342 Add a "acinclude.m4" file that defines a "AC_ETHEREAL_STRUCT_SA_LEN"
macro (modeled after similar macros provided with "autoconf") to check
whether "struct sockaddr" has an "sa_len" member, and defines or
undefines "HAVE_SA_LEN" appropriately.  Use it instead of
"AC_LBL_SOCKADDR_SA_LEN", and use "HAVE_SA_LEN" instead of
"HAVE_SOCKADDR_SA_LEN".

svn path=/trunk/; revision=96
1998-11-17 02:17:27 +00:00
Guy Harris d8e026fc3b Un-comment "AC_CONFIG_SUBDIRS()", so that it'll run "configure" in the
"wiretap" subdirectory, and thus leave a "config.status" file around so
that one of the "auto{make,configure,header}" guys doesn't complain when
rebuilding stuff that it can't open "config.status".  (The
"automake"-generated Makefile will recurse into "wiretap", and, at least
if you're doing builds from a tree freshly checked out from CVS, "XXX"
files will probably have been checked out before "XXX.in", so "make"
will try to reconstruct the "XXX" files from the "XXX.in" files.)

That also obviates the need to make "wiretap/Makefile" here.

We can also re-delete "wiretap/Makefile" from CVS - the problem that
caused me to bring it back wasn't caused by its absence, it was caused
by the above.  As "Makefile"s generated by "configure" scripts depend on
the particular system on which you ran "configure", there's no One True
Makefile so "Makefile" should'n't be under CVS.

svn path=/trunk/; revision=95
1998-11-17 02:02:46 +00:00
Guy Harris 3e056dd83a Put the Makefile back, in the hopes that it'll prevent at least one of
the many complaints you get if you do a "configure" followed by a "make"
in a freshly-checked-out Ethereal source tree (it bitches when, or maybe
after, "automake"ing it, complaining about not being able to open
"config.status" - the right fix might be to make the "configure" script
recurse).

svn path=/trunk/; revision=94
1998-11-16 22:24:03 +00:00
Guy Harris 79bafc1b7d Remove the Makefile from CVS - Ethereal doesn't have its Makefile under
CVS; it's generated by the "configure" script, and the resulting
Makefile is platform-dependent, so there's no One True Makefile to put
under CVS.

svn path=/trunk/; revision=93
1998-11-15 05:45:36 +00:00
Guy Harris a2fe97acd2 Back out some changes accidentally commited by the previous checkin - I
forgot that CVS, unlike Perforce, doesn't let you edit the list of files
it gives you in the editor and cause those files *not* to be committed,
it requires you to specify the files to be committed if you only want
some files committed.

svn path=/trunk/; revision=92
1998-11-15 05:40:23 +00:00
Guy Harris 86bf1fc851 Add support to wiretap for reading Sun "snoop" capture files.
That requires that, in the packet-reading loop, we pass to the callback
routine the offset in the file of a packet's data, because we can no
longer compute that offset by subtracting the size of the captured
packet data from the offset in the file after the data was read -
"snoop" may stick padding in after the packet data to align packet
headers on 4-byte boundaries.

Doing that required that we arrange that we do that for "libpcap"
capture files as well; the cleanest way to do that was to write our own
code for reading "libpcap" capture files, rather than using the
"libpcap" code to do it.

Make "wtap_dispatch_cb()" and "pcap_dispatch_cb()" static to "file.c",
as they're not used elsewhere.

If we're using wiretap, don't define in "file.h" stuff used only when
we're not using wiretap.

Update the wiretap README to reflect Gilbert's and my recent changes.

Clean up some memory leaks in "wiretap/lanalyzer.c" and
"wiretap/ngsniffer.c", where the capture-file-format-specific data
wasn't freed if the open failed.

svn path=/trunk/; revision=91
1998-11-15 05:29:17 +00:00
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