Commit Graph

82279 Commits

Author SHA1 Message Date
Guy Harris 2400bb0453 The joys of "automake" being run in different environments - undo the
change my local environment inserted, setting TAR to "gtar" rather than
"tar".

svn path=/trunk/; revision=238
1999-04-05 22:25:00 +00:00
Guy Harris ee80616a8c FTP, POP, and Telnet support from Richard Sharpe.
svn path=/trunk/; revision=237
1999-04-05 21:54:41 +00:00
Guy Harris acecc4edf5 Make the AUTHORS list and the contributors list in the "Help/About
Ethereal" dialog match.

svn path=/trunk/; revision=236
1999-04-04 02:49:23 +00:00
Guy Harris f1e024b605 Move the bitfield-decoding routines to "packet.h", along with other
helper routines for packet dissecting, and away from "util.c", which is
now all GUI-related.  (Among other things, this makes life more pleasant
for Gilbert Ramirez's "tethereal" stuff, although a lot more separation
of GUI from other stuff needs to be done to make that - or a
"curses"-based variant of Ethereal, or a variant using some other GUI
toolkit - work smoothly.)

svn path=/trunk/; revision=235
1999-03-31 08:20:28 +00:00
hannes ccba477d7f Bugfix: The IP Precedence (first three bits in the TOS field) has been cleared
by accident -> It should be displayed correctly with this fix

svn path=/trunk/; revision=234
1999-03-30 20:40:12 +00:00
Guy Harris 2ffe6f0ffe Changes to the routines to help decode text-oriented protocols (FTP,
SMTP, POP, HTTP, etc.) for the benefit of Richard Sharpe's FTP and POP
dissectors.

svn path=/trunk/; revision=233
1999-03-30 04:41:01 +00:00
Gilbert Ramirez ec1241d6e5 A fix for Solaris 2.5.1 compilation.
svn path=/trunk/; revision=232
1999-03-29 02:24:29 +00:00
Gilbert Ramirez 7a6ea657c6 Two more files for ipv6.
svn path=/trunk/; revision=231
1999-03-29 02:21:34 +00:00
Gilbert Ramirez 69afb9ab44 Gave Jun-ichiro credit for his IPv6 patch.
svn path=/trunk/; revision=230
1999-03-28 18:42:47 +00:00
Gilbert Ramirez 2b86d46d70 Jun-ichiro's IPv6 patch is merged in with ethereal and now uses the new
proto*() functions. The configure script tries to use ipv6 name resolution if
it knows the type of ipv6 stack the user has (this can be avoided with the
--disable-ipv6 switch) Additionally, the configure script now deals with wiretap
better. If the user doesn't want to compile wiretap, the wiretap is never
visited. A few unnecessary #includes were removed from some wiretap files, and
a CPP macro was moved from bpf.c to wtap.h.

svn path=/trunk/; revision=229
1999-03-28 18:32:03 +00:00
Guy Harris 4932ef3dcc The program that produced the version 2.001 file was Sniffer Pro 2.50.05
(presumably a Windows version).

Note also that version 2.001 files appear to have microsecond time
stamps, like version 1.1 files.

svn path=/trunk/; revision=228
1999-03-25 06:34:32 +00:00
Laurent Deniel 210d386532 Fixes to the TCP reassembly code to correctly handle too short
caplen or incomplete data (avoid crashes or erroneous display).

svn path=/trunk/; revision=227
1999-03-23 20:25:50 +00:00
Gilbert Ramirez 6cbabed4c2 Fixed compilation warning on Solaris 2.6
svn path=/trunk/; revision=226
1999-03-23 19:41:51 +00:00
Guy Harris 8865cae811 Move the include of "snprintf.h" after a bunch of other includes, so
that "size_t" will be defined before it's included (it uses "size_t").

svn path=/trunk/; revision=225
1999-03-23 03:58:59 +00:00
Guy Harris e9b532370c Include "snprintf.h" if necessary, to declare "vsnprintf()".
svn path=/trunk/; revision=224
1999-03-23 03:54:46 +00:00
Gilbert Ramirez ef3dfe2077 Removed all references to gtk objects from packet*.[ch] files. They now
reference the protocol tree with struct proto_tree and struct proto_item
objects. That way, the packet decoding source code file can be used with
non-gtk packet decoders, like a curses-based ethereal, e.g. I also re-arranged
some of the information in packet.h to more appropriate places (like other
packet-*.[ch] files).

svn path=/trunk/; revision=223
1999-03-23 03:14:46 +00:00
Guy Harris e3db269e00 Add #defines for more T_ types.
In the detailed expansion of an RR, give a more detailed description of
the RR type, as per Peter Hawkins' suggestion, but leave the record type
in the summary line for the RR, along the lines of John McDermott's
suggestion.

Decode PTR and CNAME RRs.

svn path=/trunk/; revision=222
1999-03-22 23:31:05 +00:00
Gilbert Ramirez bdbd5ee203 Got rid of "hdr_size may not be initialized" warning, even though it was
innocuous.

svn path=/trunk/; revision=221
1999-03-22 15:02:25 +00:00
Guy Harris 05e5c40597 Well, that was dumb. I didn't have to add a "capture_data()" routine; I
just had to make "sap_capture_func()" return NULL if it didn't find an
entry for the SAP it was passed.

svn path=/trunk/; revision=220
1999-03-22 03:56:34 +00:00
Guy Harris 8f70ffdda9 Have "sap_capture_func()" return "capture_data" rather than
"dissect_data"; if you call "dissect_data()" with an argument list of
the type expected by a "capture_XXX()" routine, it won't do the right
thing (and may do the wrong thing, e.g. crash).

Have "sap_capture_func()" (and "sap_dissect_func()") return function
pointers rather than "void *"s, so that I don't make a mistake like the
above in the future....

svn path=/trunk/; revision=219
1999-03-22 03:44:44 +00:00
Guy Harris dad4930e18 Add support for file format version 2.001 (used by Sniffer Basic 2.0?).
This assumes that the time stamps are still in units of microseconds; I
don't yet have a text decode of the version-2.001 file from the program
that decoded it, so I can't check the time stamps.

svn path=/trunk/; revision=218
1999-03-22 02:46:46 +00:00
Guy Harris 56b5a15d5f Add support for file format version 2.001 (used by Sniffer Basic 2.0?).
This assumes that the time stamps are still in units of microseconds; I
don't yet have a text decode of the version-2.001 file from the program
that decoded it, so I can't check the time stamps.

svn path=/trunk/; revision=217
1999-03-20 09:10:49 +00:00
Gilbert Ramirez f19fe6afea Added g_slist_nth_data() to glib-new.o so that glib-1.0.x, x < 4, will work.
It seems that a stable version of the library received a new function. This
should help RedHat folks, since they seem to have glib-1.0.1.

svn path=/trunk/; revision=216
1999-03-20 04:41:04 +00:00
Gilbert Ramirez ca662881cb Re-wrote the NCP module in accordance with how NCP is really organized.
NCP is still not decoded much, but the infrastructure for doing so is now in
place, including a hashtable to record the NCP type of each request so that we
now how to parse the response.

svn path=/trunk/; revision=215
1999-03-20 04:38:57 +00:00
Guy Harris 71b4a3f7c8 Add "phtons()" and "phtonl()" macros, which handle unaligned quantities,
and use them to extract stuff in "bpf_mk_bytecmp()", so as to avoid core
dumps on processors that require strict alignment.

svn path=/trunk/; revision=214
1999-03-13 08:39:08 +00:00
Guy Harris 84361900fa Decode more stuff in an ICMP packet.
svn path=/trunk/; revision=213
1999-03-09 02:52:37 +00:00
Guy Harris dadb230a9e Make the arrays of pointers to strings for ICMP decoding static, as
they're not used outside this file.

Compute their sizes with the standard "number of elements in an array" C
idiom, rather than hardcoding them as numbers.

Add the "information request" and "information reply" ICMP packet types.

svn path=/trunk/; revision=212
1999-03-09 01:45:06 +00:00
Gilbert Ramirez 8a8d084bf8 IPX addresses in the Destination/Source fields of the "column" part of the GUI
are now written in NNNNNNNN.hhhhhhhhhhhh form, N=IPX network, h=hwaddr.

svn path=/trunk/; revision=211
1999-03-05 06:09:39 +00:00
Gilbert Ramirez 902b69464b dissect_sap() no longer assumes that packets are the proper length. It
checks for enough bytes for a SAP record before dissecting the bytes.

svn path=/trunk/; revision=210
1999-03-05 05:20:12 +00:00
Guy Harris 985a5b01d7 It's not a problem if we don't have GLib 1.1.x or later, so don't
complain about it.

svn path=/trunk/; revision=209
1999-03-03 08:51:58 +00:00
Guy Harris 5044b432cf Include "config.h", so we know whether we have GLib 1.0[.x] or later, so
we know whether to include "glib-new.h".

svn path=/trunk/; revision=208
1999-03-03 08:31:43 +00:00
Gilbert Ramirez dc6a300eab Add the right byte count to fddi's initial add_item_to_tree so that the entire
FDDI header is highlighted in the hex dump.

svn path=/trunk/; revision=207
1999-03-02 20:50:05 +00:00
Gilbert Ramirez 0cf5b2de74 Fixed for glib-1.x.y, x > 0
svn path=/trunk/; revision=206
1999-03-02 19:32:33 +00:00
Guy Harris 2ed0b6d073 Have "rt-scanner.l" and "rt-grammar.y" depend on the filter description
files used to generate them.

svn path=/trunk/; revision=205
1999-03-02 07:04:55 +00:00
Guy Harris e2b7e1aba9 It turns out that the first of the unknown fields in the NetXRay header
appears to be the UNIX "time_t" when the capture started, so use that to
figure out the time when a packet was captured.

svn path=/trunk/; revision=204
1999-03-01 22:59:47 +00:00
Gilbert Ramirez 70451c547a lex_init() changed to wtap_lex_init()
svn path=/trunk/; revision=203
1999-03-01 21:50:20 +00:00
Gilbert Ramirez 3101077f2c Guy noticed that lex_init was a function in both libpcap and wiretap. Fixed.
svn path=/trunk/; revision=202
1999-03-01 21:48:30 +00:00
Guy Harris 4375cad111 Add an "acinclude.m4", from which "aclocal.m4" is made.
Add "HAVE_GLIB10" to "acconfig.h", so that all the "auto*" stuff is
happy.

svn path=/trunk/; revision=201
1999-03-01 21:45:54 +00:00
Guy Harris c8643cdee6 Fix a typo, and note that we can read Token Ring captures from Sniffer
Basic/Windows Sniffer Pro.

svn path=/trunk/; revision=200
1999-03-01 20:35:33 +00:00
Gilbert Ramirez cd5af6645b Disables "Follow TCP Stream" if compiled with wiretap.
svn path=/trunk/; revision=199
1999-03-01 20:32:54 +00:00
Gilbert Ramirez 2dbd008ea5 Added display filters to wiretap.
svn path=/trunk/; revision=198
1999-03-01 18:57:07 +00:00
Gilbert Ramirez 2744866326 Small fixes for alignment, and #include for gtk+-1.1.x/glib-1.1.x
svn path=/trunk/; revision=197
1999-03-01 18:28:12 +00:00
Gerald Combs 8eecc6e488 * Added Didier Joran to authors list.
svn path=/trunk/; revision=196
1999-02-28 16:10:39 +00:00
Guy Harris 8078050304 Update to reflect support for NetXRay format.
svn path=/trunk/; revision=195
1999-02-20 08:12:20 +00:00
Guy Harris 3200c25437 Add support for Cinco Networks NetXRay - which is, after their acquision
by Network General (subsequently merged with McAfee Associates into
Network Associates), called "Sniffer Basic".

A similar format appears to be used by the Windows Sniffer Pro.

svn path=/trunk/; revision=194
1999-02-20 06:49:27 +00:00
Guy Harris 0768c4b989 Make the "magic number" a "const" string.
svn path=/trunk/; revision=193
1999-02-20 06:46:57 +00:00
Guy Harris 19d8e24ab0 Fix a typo in a comment, and make the "magic number" a "const" string.
svn path=/trunk/; revision=192
1999-02-20 06:46:33 +00:00
Guy Harris babd7de597 Added Richard Sharpe's TFTP support. (I missed this in my initial
checkin of that stuff.)

svn path=/trunk/; revision=191
1999-02-19 05:28:38 +00:00
Guy Harris 38a04d2660 Added Richard Sharpe's TFTP support.
svn path=/trunk/; revision=190
1999-02-15 06:36:57 +00:00
Guy Harris 58778fd8ad Add support for "%i" (it's the same as "%d", according to the ANSI C
standard).

svn path=/trunk/; revision=189
1999-02-15 06:36:19 +00:00