Guy Harris [Sat, 12 Jun 1999 09:10:20 +0000 (09:10 -0000)]
Improve the alert boxes put up for file open/read/write errors. (Some
influence came from
http://developer.apple.com/techpubs/mac/HIGuidelines/HIGuidelines-232.html
which has a section on dialog box and alert box messages. However,
we're largely dealing with technoids, not with The Rest Of Us, so I
didn't go as far as one perhaps should.)
Unfortunately, it looks like it's a bit more work to arrange that, if
you give a bad file name to the "-r" flag, the dialog box pop up only
*after* the main window pops up - it has the annoying habit of popping
up *before* the main window pops up, and sometimes getting *obscured* by
it, when I do that. The removal of the dialog box stuff from
"load_cap_file()" was intended to facilitate that work. (It might also
be nice if, when an open from the "File/Open" menu item fails, we keep
the file selection box open, and give the user a chance to correct
typos, choose another file name, etc.)
svn path=/trunk/; revision=310
Guy Harris [Sat, 12 Jun 1999 09:02:12 +0000 (09:02 -0000)]
Include "snprintf.h" if necessary - we use "snprintf()".
svn path=/trunk/; revision=309
Guy Harris [Sat, 12 Jun 1999 07:04:35 +0000 (07:04 -0000)]
Don't pop up the "Can't open preferences file" dialog until *after*
we've shown the top-level window, because we want it to pop up on *top*
of the top-level window, rather than being hidden behind it.
Put a "strerror()"-based reason *why* the open failed in that dialog.
svn path=/trunk/; revision=308
Guy Harris [Sat, 12 Jun 1999 06:22:47 +0000 (06:22 -0000)]
Move the comment from the GTK 1.0 tutorial just before the GTK 1.0
GtkMenuEntry table, and add the comment from the equivalent part of the
GTK 1.2 tutorial before the GTK 1.2 GtkItemFactoryEntry table.
svn path=/trunk/; revision=307
Guy Harris [Sat, 12 Jun 1999 04:21:09 +0000 (04:21 -0000)]
Make the string argument to "col_add_str()" a "const gchar *" - it
doesn't modify anything pointed to by that argument, and that keeps us
from getting complaints if we pass a "const gchar *" to it.
svn path=/trunk/; revision=306
Guy Harris [Sat, 12 Jun 1999 04:17:19 +0000 (04:17 -0000)]
Use "val_to_str()", rather than "get_XXX()" routines, to map SNMP
versions, PDU types, error statuses, and trap types to strings.
Set the protocol column to "SNMP", and set the info column to an error
message if the parse fails (rather than printing a message to the
standard error) and to the PDU type if it succeeds.
svn path=/trunk/; revision=305
Gilbert Ramirez [Fri, 11 Jun 1999 16:45:02 +0000 (16:45 -0000)]
Added RSVP protocol dissector.
svn path=/trunk/; revision=304
Gilbert Ramirez [Fri, 11 Jun 1999 15:30:55 +0000 (15:30 -0000)]
Added PPPoE, PPTP, GRE, and ISAKMP dissectors.
svn path=/trunk/; revision=303
Guy Harris [Sat, 5 Jun 1999 01:44:11 +0000 (01:44 -0000)]
Don't "g_strdup()" what "gtk_entry_get_text()" returns as the contents
of the packet count combo box; there's no need to do so (we don't
remember the string, just its value when converted to a number), and, as
we don't free what "g_strdup()" returns, and don't remember it to save
it later, we leak memory.
svn path=/trunk/; revision=302
Guy Harris [Wed, 2 Jun 1999 01:28:47 +0000 (01:28 -0000)]
When checking to see if a packet is of a given type by checking the
source and destination port numbers, check both port numbers against the
specified port, rather than checking the lower of the two port numbers
against the specified port, just in case you happen to either have
1) the port number for that type being high enough that you can
get client sockets using it
or
2) client sockets using it for some other reason.
svn path=/trunk/; revision=301
Guy Harris [Tue, 1 Jun 1999 22:24:05 +0000 (22:24 -0000)]
When constructing the list for the "Count" combo box in the "Capture"
dialog box, put "0 (Infinite)" first, so that we default to that rather
than to the number of packets in the last capture we read.
svn path=/trunk/; revision=300
Guy Harris [Tue, 1 Jun 1999 20:40:34 +0000 (20:40 -0000)]
As we may return an error message, rather than a NetBIOS name, from
"get_nbns_name()", make sure the array into which you put the name is
"big enough" - MAXDNAME+4 is more than big enough for those error
messages.
svn path=/trunk/; revision=299
Guy Harris [Tue, 1 Jun 1999 20:39:20 +0000 (20:39 -0000)]
Unfortunately, as the "cap_len" field in a "frame_data" is unsigned,
"fd->cap_len - offset", i.e. END_OF_FRAME, is unsigned, so
while (END_OF_FRAME > 0) {
doesn't keep you out of the loop if "offset" is already beyond
"fd->cap_len", so you can try processing stuff past the end of the
captured data in the packet.
svn path=/trunk/; revision=298
Guy Harris [Thu, 27 May 1999 05:35:08 +0000 (05:35 -0000)]
Correctly handle the case of the root showing up as a name in a DNS
request or reply. (Redid "get_dns_name()" along the lines of the code
in the BSD resolver.)
Add code to dissect SOA RRs.
svn path=/trunk/; revision=297
Gilbert Ramirez [Wed, 26 May 1999 21:46:07 +0000 (21:46 -0000)]
Removed segfault if NCP completion code was decoded for an uknown NCP reply type.
svn path=/trunk/; revision=296
Guy Harris [Thu, 20 May 1999 02:41:22 +0000 (02:41 -0000)]
Dissect ICMP Router Discovery packets (router advertisements and router
solicitations).
svn path=/trunk/; revision=295
Gilbert Ramirez [Wed, 19 May 1999 23:16:43 +0000 (23:16 -0000)]
Packaging changes for version 0.6.2
svn path=/trunk/; revision=293
Gilbert Ramirez [Wed, 19 May 1999 13:49:35 +0000 (13:49 -0000)]
Made BPF disassembly in wiretap.c a bit easier to read.
svn path=/trunk/; revision=292
Gilbert Ramirez [Sun, 16 May 1999 05:12:11 +0000 (05:12 -0000)]
Added more functionality to the completion-code parsing routine.
svn path=/trunk/; revision=291
Gilbert Ramirez [Sun, 16 May 1999 04:27:08 +0000 (04:27 -0000)]
Removed ethereal.1 and copied make rule from doc/Makefile to top-level
Makefile so that manpage can be made from pod file during packaging.
svn path=/trunk/; revision=290
Gilbert Ramirez [Sun, 16 May 1999 04:13:29 +0000 (04:13 -0000)]
Fixed to actually compile with CMU SNMP library (at least on Linux).
svn path=/trunk/; revision=289
Gilbert Ramirez [Fri, 14 May 1999 21:30:13 +0000 (21:30 -0000)]
Further refined NCP fix, and added translation of NCP Completion Code.
svn path=/trunk/; revision=288
Gilbert Ramirez [Thu, 13 May 1999 16:42:43 +0000 (16:42 -0000)]
Fixed some serious bugs in the NCP hash routines. I also simplified
the NCP field table structure so that it is easier to add new request/reply
types. I even added a new type myself. There's still more work to be done;
so for now ignore the warnings that gcc emits.
svn path=/trunk/; revision=287
Guy Harris [Thu, 13 May 1999 05:46:04 +0000 (05:46 -0000)]
Get rid of the include of <arpa/tftp.h>; put the #defines for packet
types in "packet-tftp.c", and grab the opcode directly from the first 2
bytes of the packet, using "pntohs()" (which will also keep us from
crashing, on processors that require strict alignment, if the UDP
payload isn't aligned on a 2-byte boundary).
Also use "pntohs()" to grab the block number in data and acknowledgment
packets, for the same reason we use it to grab the opcode.
svn path=/trunk/; revision=286
Richard Sharpe [Thu, 13 May 1999 01:05:11 +0000 (01:05 -0000)]
Removing some includes of tftp.h from places it should not be
in.
Would like to remove it from packet-tftp.c as well to remove our
dependence on that file as well.
svn path=/trunk/; revision=285
Guy Harris [Wed, 12 May 1999 21:40:07 +0000 (21:40 -0000)]
Add support for Network Monitor 2.0 files, thanks to information
supplied by Tim Farley.
Tim also indicated that the Network Monitor network types may be NDIS
network types+1. It also appears that NetXRay/Windows Sniffer network
types may be NDIS network types as well.
svn path=/trunk/; revision=284
Laurent Deniel [Wed, 12 May 1999 20:44:59 +0000 (20:44 -0000)]
Minor performance improvement and TCP option decoding fixed (when no tree).
svn path=/trunk/; revision=283
Gilbert Ramirez [Wed, 12 May 1999 06:04:47 +0000 (06:04 -0000)]
Credited John McDermott <jjm@jkintl.com> for his pseudo-real-time
capture patch.
svn path=/trunk/; revision=282
Gilbert Ramirez [Wed, 12 May 1999 05:56:42 +0000 (05:56 -0000)]
Added Didier Jorand's dissect_snmp routine. This is only compiled in
if you have the UCD or CMU SNMP library available. If you have the SNMP
library but do not with to have SNMP support, use the
./configure --disable-snmp
option. Otherwise 'configure' finds the SNMP library and uses it.
svn path=/trunk/; revision=281
Gilbert Ramirez [Wed, 12 May 1999 04:56:10 +0000 (04:56 -0000)]
Changed wiretap rules so that ordinary user doesn't need bison and flex
if they just compile the source and don't modify any source files.
svn path=/trunk/; revision=280
Guy Harris [Tue, 11 May 1999 20:32:11 +0000 (20:32 -0000)]
Add "SMB support" to the list of Richard Sharpe's contributions.
svn path=/trunk/; revision=279
Gilbert Ramirez [Tue, 11 May 1999 20:07:47 +0000 (20:07 -0000)]
Fixed problem where filename of capture file would not be displayed in
status bar if invoked by "ethereal -r filename".
svn path=/trunk/; revision=278
Laurent Deniel [Tue, 11 May 1999 20:07:12 +0000 (20:07 -0000)]
Live data capture and display enhancement that allows network capture and
display of fully decoded packets at the same time.
Options added:
-F : fork capture process
-S : sync mode ala tail -f (implies -F)
-f : filter expression
-Q : exit after capture (implies -k)
svn path=/trunk/; revision=277
Laurent Deniel [Tue, 11 May 1999 18:51:10 +0000 (18:51 -0000)]
Live data capture and display enhancement that allows network capture and
display of fully decoded packets at the same time.
Options added:
-F : fork capture process
-S : sync mode ala tail -f (implies -F)
-f : filter expression
-Q : exit after capture (implies -k)
svn path=/trunk/; revision=276
Guy Harris [Tue, 11 May 1999 08:21:39 +0000 (08:21 -0000)]
Turn "arpaddr_to_str()" into "bytes_to_str()", and make it public, so it
can be used by dissectors other than ARP to display byte arrays as
strings of hex digits.
Add a routine to extract a null-terminated Unicode string and turn it
into an ISO 8859-1 string for display. (Ultimately, we should determine
what character sets the X server or printer or whatever can handle, and
turn it into the appropriate character set.)
Display the challenge in "core-to-LANMAN-2.1" Negotiate Protocol
responses as a string of hex digits - but only if the length is
non-zero. (It's a counted array, not a null-terminated string.)
Display some additional security mode bits in an NT LM 0.12 Negotiate
Protocol response.
Display some additional bits in the "capabilities" field of the
Negotiate Protocol response.
Display the challenge in an NT LM 0.12 Negotiate Protocol response as a
string of hex digits (it's a counted array, not a null-terminated
string).
Display the domain name as Unicode in an NT LM 0.12 Negotiate Protocol
response if the capabilities field has the "supports Unicode" bit set
(no, not the "Unicode" bit in the "flags2" field - NT doesn't set that
in the response, even though it sends the domain name over in Unicode!).
Display some additional bits in the "flags2" field of an SMB.
svn path=/trunk/; revision=275
Guy Harris [Tue, 11 May 1999 07:22:31 +0000 (07:22 -0000)]
Add some SMB codes and error codes from the
"draft-leach-cifs-v1-spec-01.txt" CIFS Internet draft.
svn path=/trunk/; revision=274
Guy Harris [Tue, 11 May 1999 01:18:30 +0000 (01:18 -0000)]
Add decoding of DOS-format dates and times (one of the N different
date/time formats used in SMB...).
svn path=/trunk/; revision=273
Guy Harris [Tue, 11 May 1999 00:28:18 +0000 (00:28 -0000)]
Some of my fixes did get lost - put 'em back.
Fix the "proto_tree_add_item()" used when the server didn't support any
of the dialects the client offered not to print the dialect index.
In the "Core to LANMAN 2.1" "negotiate protocol" decode, show the time
zone as minutes from UTC, just as is done for the "post-LANMAN 2.1"
decode.
svn path=/trunk/; revision=272
Richard Sharpe [Tue, 11 May 1999 00:00:40 +0000 (00:00 -0000)]
Some clean-ups. I hope I have not disturbed any of Guy's
fixes, as I had to manually apply his fixes. It is a long story,
but my development environment is, umm, interesting.
Thanks to Guy for spotting the problems in my Core Proto to LanMan 2.0
decode probs.
I did not spot them and I do not have any such traces to check
against.
svn path=/trunk/; revision=271
Guy Harris [Mon, 10 May 1999 22:07:09 +0000 (22:07 -0000)]
Pass NBDS packets on to SMB even if we're only generating a summary
line, so that they show up as SMB packets, rather than NBDS packets, in
the summary display.
Put SMB at the top level of the decode tree for NBDS packets, as is done
for NBSS packets.
svn path=/trunk/; revision=270
Guy Harris [Mon, 10 May 1999 21:50:13 +0000 (21:50 -0000)]
Decode SMB requests inside NetBIOS Datagram Service packets.
svn path=/trunk/; revision=269
Guy Harris [Mon, 10 May 1999 21:36:40 +0000 (21:36 -0000)]
Fix up the decode of "greater than core and up to and including LANMAN
2.1" "negotiate protocol" responses.
Display unsigned fields in "negotiate protocol" as unsigned, rather than
signed, values.
svn path=/trunk/; revision=268
Gilbert Ramirez [Mon, 10 May 1999 20:51:36 +0000 (20:51 -0000)]
Fixed the number of parameters for the other super-IPX protocols so that
the table of dissect functions that IPX needs only needs to store pointers to
on type of function. Now all super-IPX protocols have an 'int max_data' argument.
svn path=/trunk/; revision=267
Guy Harris [Mon, 10 May 1999 20:30:27 +0000 (20:30 -0000)]
Decode the "flags2" field in the SMB header.
Squelch another "variable may be used without being initialized"
complaint (also due to insufficiently sophisticated dataflow analysis by
EGCS 1.1), and a number of "unused variable" complaints, as well as
"assigning a 'const XXX *' to an 'XXX *'" complaints.
svn path=/trunk/; revision=266
Guy Harris [Mon, 10 May 1999 20:17:36 +0000 (20:17 -0000)]
Get rid of the "P*" macros, as we're not using them (Ethereal only reads
packets, it doesn't store into them), and make the "G*" macros use
"pletohs()" and "pletohl()", making them platform-independent.
svn path=/trunk/; revision=265
Guy Harris [Mon, 10 May 1999 20:02:57 +0000 (20:02 -0000)]
EGCS 1.1's dataflow analysis (and probably that of other versions of
GCC) isn't sophisticated enough to figure out that "nbss_tree" isn't
used if "tree" is null (or doesn't trust it not to change out from under
it), so we have to initialize "nbss_tree" to NULL to squelch complaints
about it being used but uninitialized.
svn path=/trunk/; revision=264
Guy Harris [Mon, 10 May 1999 19:26:48 +0000 (19:26 -0000)]
Check in updated version, reflecting the changes to "Makefile.am".
svn path=/trunk/; revision=263
Gilbert Ramirez [Mon, 10 May 1999 19:01:32 +0000 (19:01 -0000)]
This small change lets me read SMBtrans packets that come over NBIPX.
svn path=/trunk/; revision=262
Richard Sharpe [Mon, 10 May 1999 00:27:32 +0000 (00:27 -0000)]
Mode decoded SMBs ... Now decode part of a TCONX request,
but not the responses, and do not handle the ANDX part yet,
but I have a Linux course to develop, so that is enough for
now.
svn path=/trunk/; revision=261
Richard Sharpe [Sun, 9 May 1999 12:56:12 +0000 (12:56 -0000)]
Minor changes to check if log info is working
svn path=/trunk/; revision=260
Richard Sharpe [Sun, 9 May 1999 04:20:59 +0000 (04:20 -0000)]
Added new files for SMB decode: packet-smb.c, alignment.h, smb.h
svn path=/trunk/; revision=259
Richard Sharpe [Sun, 9 May 1999 04:16:36 +0000 (04:16 -0000)]
Added initial support for SMB plus most of negprot decode ..
svn path=/trunk/; revision=258
Gilbert Ramirez [Fri, 7 May 1999 03:33:42 +0000 (03:33 -0000)]
Made the executable portable; it will now work on machines other than my
own. It allocates and fills in its own wtap struct.
svn path=/trunk/; revision=257
Guy Harris [Thu, 6 May 1999 05:45:58 +0000 (05:45 -0000)]
Default the capture size to the maximum capture size, rather than the
minimum capture size.
svn path=/trunk/; revision=256
Guy Harris [Tue, 4 May 1999 18:26:22 +0000 (18:26 -0000)]
Update it to note that GTK+ has stable 1.2.x versions now.
Add a note warning that if you installed GTK+ from a binary package, it
may be a "user's" package, and you may also have to install the
"developer's" package.
svn path=/trunk/; revision=255
Gilbert Ramirez [Sat, 1 May 1999 05:39:06 +0000 (05:39 -0000)]
Changed variable type of argument 'pd' in hex printing routine to match
prototype.
svn path=/trunk/; revision=254
Gilbert Ramirez [Sat, 1 May 1999 05:19:25 +0000 (05:19 -0000)]
Fixed 0.6.0 packaging problems.
svn path=/trunk/; revision=252
Guy Harris [Sat, 1 May 1999 04:38:42 +0000 (04:38 -0000)]
Add "gtkpacket.h" and "packet-ip.h" to the list of source files, so they
get put into the tarball by "make dist".
svn path=/trunk/; revision=251
Laurent Deniel [Fri, 30 Apr 1999 21:16:31 +0000 (21:16 -0000)]
Miscellaneous updates of README and README.tru64 created.
svn path=/trunk/; revision=250
Gilbert Ramirez [Fri, 30 Apr 1999 20:31:56 +0000 (20:31 -0000)]
Docs updated for ethereal-0.6.0
svn path=/trunk/; revision=248
Guy Harris [Fri, 30 Apr 1999 03:16:03 +0000 (03:16 -0000)]
Add support for the NetBIOS Session Service.
Improve the descriptions of the NetBIOS Name Service errors a bit.
svn path=/trunk/; revision=247
Gilbert Ramirez [Fri, 16 Apr 1999 18:39:07 +0000 (18:39 -0000)]
Separate the 16-byte view into 2 8-byte views in the hex dump. Patch from
"Mattia Cazzola" <mattiac@alinet.it>
svn path=/trunk/; revision=246
Gilbert Ramirez [Fri, 9 Apr 1999 13:32:31 +0000 (13:32 -0000)]
Changed the flowinfo field in the ipv6 header to flow info + traffic class, as
per RFC2460. Thanks to Jun-ichiro for the patch.
svn path=/trunk/; revision=245
Gilbert Ramirez [Fri, 9 Apr 1999 13:31:15 +0000 (13:31 -0000)]
Removed 2 blocks of code that if #ifdef'ed out. They're just not needed.
svn path=/trunk/; revision=244
Gilbert Ramirez [Tue, 6 Apr 1999 16:35:47 +0000 (16:35 -0000)]
Touch-up fixes to my previous fix of making the packet-capture facility save
to a file unknown to the user first. The manpage has now been updated to reflect
the ability of the user to use the TMPDIR environment variable to change the
location of this capture file. And now the capture file is deleted when
ethereal exits, if the user has not saved the trace file.
svn path=/trunk/; revision=243
Gilbert Ramirez [Tue, 6 Apr 1999 16:24:50 +0000 (16:24 -0000)]
Capturing packets from ethereal now saves the capture in an "anonymous" buffer. That is, it's
a random name chosen by tempnam(), unknown to the user. If the user decides to save that
trace, he then uses File | Save to save it to a file. File | Save As lets him make a copy
of his named trace file as well. I also updated my e-mail address in the various credit
locations.
svn path=/trunk/; revision=242
Guy Harris [Tue, 6 Apr 1999 02:02:12 +0000 (02:02 -0000)]
Add NNTP support.
svn path=/trunk/; revision=241
Guy Harris [Mon, 5 Apr 1999 23:39:51 +0000 (23:39 -0000)]
Add an RCS ID.
svn path=/trunk/; revision=240
Guy Harris [Mon, 5 Apr 1999 22:51:44 +0000 (22:51 -0000)]
Get rid of include of <strings.h> from "util.c", as it's not needed, and
change include of <strings.h> in "menu.c" to include <string.h>, the
latter being the ANSI standard include file for string functions; that
eliminates all use of <strings.h< so get rid of test for its existence
in "configure.in" as well.
svn path=/trunk/; revision=239
Guy Harris [Mon, 5 Apr 1999 22:25:00 +0000 (22:25 -0000)]
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
Guy Harris [Mon, 5 Apr 1999 21:54:41 +0000 (21:54 -0000)]
FTP, POP, and Telnet support from Richard Sharpe.
svn path=/trunk/; revision=237
Guy Harris [Sun, 4 Apr 1999 02:49:23 +0000 (02:49 -0000)]
Make the AUTHORS list and the contributors list in the "Help/About
Ethereal" dialog match.
svn path=/trunk/; revision=236
Guy Harris [Wed, 31 Mar 1999 08:20:28 +0000 (08:20 -0000)]
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
hannes [Tue, 30 Mar 1999 20:40:12 +0000 (20:40 -0000)]
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
Guy Harris [Tue, 30 Mar 1999 04:41:01 +0000 (04:41 -0000)]
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
Gilbert Ramirez [Mon, 29 Mar 1999 02:24:29 +0000 (02:24 -0000)]
A fix for Solaris 2.5.1 compilation.
svn path=/trunk/; revision=232
Gilbert Ramirez [Mon, 29 Mar 1999 02:21:34 +0000 (02:21 -0000)]
Two more files for ipv6.
svn path=/trunk/; revision=231
Gilbert Ramirez [Sun, 28 Mar 1999 18:42:47 +0000 (18:42 -0000)]
Gave Jun-ichiro credit for his IPv6 patch.
svn path=/trunk/; revision=230
Gilbert Ramirez [Sun, 28 Mar 1999 18:32:03 +0000 (18:32 -0000)]
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
Guy Harris [Thu, 25 Mar 1999 06:34:32 +0000 (06:34 -0000)]
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
Laurent Deniel [Tue, 23 Mar 1999 20:25:50 +0000 (20:25 -0000)]
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
Gilbert Ramirez [Tue, 23 Mar 1999 19:41:51 +0000 (19:41 -0000)]
Fixed compilation warning on Solaris 2.6
svn path=/trunk/; revision=226
Guy Harris [Tue, 23 Mar 1999 03:58:59 +0000 (03:58 -0000)]
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
Guy Harris [Tue, 23 Mar 1999 03:54:46 +0000 (03:54 -0000)]
Include "snprintf.h" if necessary, to declare "vsnprintf()".
svn path=/trunk/; revision=224
Gilbert Ramirez [Tue, 23 Mar 1999 03:14:46 +0000 (03:14 -0000)]
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
Guy Harris [Mon, 22 Mar 1999 23:31:05 +0000 (23:31 -0000)]
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
Gilbert Ramirez [Mon, 22 Mar 1999 15:02:25 +0000 (15:02 -0000)]
Got rid of "hdr_size may not be initialized" warning, even though it was
innocuous.
svn path=/trunk/; revision=221
Guy Harris [Mon, 22 Mar 1999 03:56:34 +0000 (03:56 -0000)]
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
Guy Harris [Mon, 22 Mar 1999 03:44:44 +0000 (03:44 -0000)]
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
Guy Harris [Mon, 22 Mar 1999 02:46:46 +0000 (02:46 -0000)]
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
Guy Harris [Sat, 20 Mar 1999 09:10:49 +0000 (09:10 -0000)]
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
Gilbert Ramirez [Sat, 20 Mar 1999 04:41:04 +0000 (04:41 -0000)]
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
Gilbert Ramirez [Sat, 20 Mar 1999 04:38:57 +0000 (04:38 -0000)]
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
Guy Harris [Sat, 13 Mar 1999 08:39:08 +0000 (08:39 -0000)]
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
Guy Harris [Tue, 9 Mar 1999 02:52:37 +0000 (02:52 -0000)]
Decode more stuff in an ICMP packet.
svn path=/trunk/; revision=213
Guy Harris [Tue, 9 Mar 1999 01:45:06 +0000 (01:45 -0000)]
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
Gilbert Ramirez [Fri, 5 Mar 1999 06:09:39 +0000 (06:09 -0000)]
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
Gilbert Ramirez [Fri, 5 Mar 1999 05:20:12 +0000 (05:20 -0000)]
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
Guy Harris [Wed, 3 Mar 1999 08:51:58 +0000 (08:51 -0000)]
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
Guy Harris [Wed, 3 Mar 1999 08:31:43 +0000 (08:31 -0000)]
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