metze/wireshark/wip.git
25 years agoImprove the alert boxes put up for file open/read/write errors. (Some
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

25 years agoInclude "snprintf.h" if necessary - we use "snprintf()".
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

25 years agoDon't pop up the "Can't open preferences file" dialog until *after*
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

25 years agoMove the comment from the GTK 1.0 tutorial just before the GTK 1.0
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

25 years agoMake the string argument to "col_add_str()" a "const gchar *" - it
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

25 years agoUse "val_to_str()", rather than "get_XXX()" routines, to map SNMP
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

25 years agoAdded RSVP protocol dissector.
Gilbert Ramirez [Fri, 11 Jun 1999 16:45:02 +0000 (16:45 -0000)]
Added RSVP protocol dissector.

svn path=/trunk/; revision=304

25 years agoAdded PPPoE, PPTP, GRE, and ISAKMP dissectors.
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

25 years agoDon't "g_strdup()" what "gtk_entry_get_text()" returns as the contents
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

25 years agoWhen checking to see if a packet is of a given type by checking the
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

25 years agoWhen constructing the list for the "Count" combo box in the "Capture"
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

25 years agoAs we may return an error message, rather than a NetBIOS name, from
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

25 years agoUnfortunately, as the "cap_len" field in a "frame_data" is unsigned,
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

25 years agoCorrectly handle the case of the root showing up as a name in a DNS
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

25 years agoRemoved segfault if NCP completion code was decoded for an uknown NCP reply type.
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

25 years agoDissect ICMP Router Discovery packets (router advertisements and router
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

25 years agoPackaging changes for version 0.6.2
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

25 years agoMade BPF disassembly in wiretap.c a bit easier to read.
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

25 years agoAdded more functionality to the completion-code parsing routine.
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

25 years agoRemoved ethereal.1 and copied make rule from doc/Makefile to top-level
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

25 years agoFixed to actually compile with CMU SNMP library (at least on Linux).
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

25 years agoFurther refined NCP fix, and added translation of NCP Completion Code.
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

25 years agoFixed some serious bugs in the NCP hash routines. I also simplified
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

25 years agoGet rid of the include of <arpa/tftp.h>; put the #defines for packet
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

25 years agoRemoving some includes of tftp.h from places it should not be
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

25 years agoAdd support for Network Monitor 2.0 files, thanks to information
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

25 years agoMinor performance improvement and TCP option decoding fixed (when no tree).
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

25 years agoCredited John McDermott <jjm@jkintl.com> for his pseudo-real-time
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

25 years agoAdded Didier Jorand's dissect_snmp routine. This is only compiled in
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

25 years agoChanged wiretap rules so that ordinary user doesn't need bison and flex
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

25 years agoAdd "SMB support" to the list of Richard Sharpe's contributions.
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

25 years agoFixed problem where filename of capture file would not be displayed in
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

25 years agoLive data capture and display enhancement that allows network capture and
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

25 years agoLive data capture and display enhancement that allows network capture and
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

25 years agoTurn "arpaddr_to_str()" into "bytes_to_str()", and make it public, so it
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

25 years agoAdd some SMB codes and error codes from the
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

25 years agoAdd decoding of DOS-format dates and times (one of the N different
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

25 years agoSome of my fixes did get lost - put 'em back.
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

25 years agoSome clean-ups. I hope I have not disturbed any of Guy's
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

25 years agoPass NBDS packets on to SMB even if we're only generating a summary
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

25 years agoDecode SMB requests inside NetBIOS Datagram Service packets.
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

25 years agoFix up the decode of "greater than core and up to and including LANMAN
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

25 years agoFixed the number of parameters for the other super-IPX protocols so that
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

25 years agoDecode the "flags2" field in the SMB header.
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

25 years agoGet rid of the "P*" macros, as we're not using them (Ethereal only reads
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

25 years agoEGCS 1.1's dataflow analysis (and probably that of other versions of
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

25 years agoCheck in updated version, reflecting the changes to "Makefile.am".
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

25 years agoThis small change lets me read SMBtrans packets that come over NBIPX.
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

25 years agoMode decoded SMBs ... Now decode part of a TCONX request,
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

25 years agoMinor changes to check if log info is working
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

25 years agoAdded new files for SMB decode: packet-smb.c, alignment.h, smb.h
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

25 years agoAdded initial support for SMB plus most of negprot decode ..
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

25 years agoMade the executable portable; it will now work on machines other than my
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

25 years agoDefault the capture size to the maximum capture size, rather than the
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

25 years agoUpdate it to note that GTK+ has stable 1.2.x versions now.
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

25 years agoChanged variable type of argument 'pd' in hex printing routine to match
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

25 years agoFixed 0.6.0 packaging problems.
Gilbert Ramirez [Sat, 1 May 1999 05:19:25 +0000 (05:19 -0000)]
Fixed 0.6.0 packaging problems.

svn path=/trunk/; revision=252

25 years agoAdd "gtkpacket.h" and "packet-ip.h" to the list of source files, so they
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

25 years agoMiscellaneous updates of README and README.tru64 created.
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

25 years agoDocs updated for ethereal-0.6.0
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

25 years agoAdd support for the NetBIOS Session Service.
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

25 years agoSeparate the 16-byte view into 2 8-byte views in the hex dump. Patch from
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

25 years agoChanged the flowinfo field in the ipv6 header to flow info + traffic class, as
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

25 years agoRemoved 2 blocks of code that if #ifdef'ed out. They're just not needed.
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

25 years agoTouch-up fixes to my previous fix of making the packet-capture facility save
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

25 years agoCapturing packets from ethereal now saves the capture in an "anonymous" buffer. That...
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

25 years agoAdd NNTP support.
Guy Harris [Tue, 6 Apr 1999 02:02:12 +0000 (02:02 -0000)]
Add NNTP support.

svn path=/trunk/; revision=241

25 years agoAdd an RCS ID.
Guy Harris [Mon, 5 Apr 1999 23:39:51 +0000 (23:39 -0000)]
Add an RCS ID.

svn path=/trunk/; revision=240

25 years agoGet rid of include of <strings.h> from "util.c", as it's not needed, and
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

25 years agoThe joys of "automake" being run in different environments - undo the
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

25 years agoFTP, POP, and Telnet support from Richard Sharpe.
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

25 years agoMake the AUTHORS list and the contributors list in the "Help/About
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

25 years agoMove the bitfield-decoding routines to "packet.h", along with other
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

25 years agoBugfix: The IP Precedence (first three bits in the TOS field) has been cleared
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

25 years agoChanges to the routines to help decode text-oriented protocols (FTP,
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

25 years agoA fix for Solaris 2.5.1 compilation.
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

25 years agoTwo more files for ipv6.
Gilbert Ramirez [Mon, 29 Mar 1999 02:21:34 +0000 (02:21 -0000)]
Two more files for ipv6.

svn path=/trunk/; revision=231

25 years agoGave Jun-ichiro credit for his IPv6 patch.
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

25 years agoJun-ichiro's IPv6 patch is merged in with ethereal and now uses the new
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

25 years agoThe program that produced the version 2.001 file was Sniffer Pro 2.50.05
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

25 years agoFixes to the TCP reassembly code to correctly handle too short
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

25 years agoFixed compilation warning on Solaris 2.6
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

25 years agoMove the include of "snprintf.h" after a bunch of other includes, so
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

25 years agoInclude "snprintf.h" if necessary, to declare "vsnprintf()".
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

25 years agoRemoved all references to gtk objects from packet*.[ch] files. They now
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

25 years agoAdd #defines for more T_ types.
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

25 years agoGot rid of "hdr_size may not be initialized" warning, even though it was
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

25 years agoWell, that was dumb. I didn't have to add a "capture_data()" routine; I
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

25 years agoHave "sap_capture_func()" return "capture_data" rather than
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

25 years agoAdd support for file format version 2.001 (used by Sniffer Basic 2.0?).
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

25 years agoAdd support for file format version 2.001 (used by Sniffer Basic 2.0?).
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

25 years agoAdded g_slist_nth_data() to glib-new.o so that glib-1.0.x, x < 4, will work.
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

25 years agoRe-wrote the NCP module in accordance with how NCP is really organized.
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

25 years agoAdd "phtons()" and "phtonl()" macros, which handle unaligned quantities,
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

25 years agoDecode more stuff in an ICMP packet.
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

25 years agoMake the arrays of pointers to strings for ICMP decoding static, as
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

25 years agoIPX addresses in the Destination/Source fields of the "column" part of the GUI
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

25 years agodissect_sap() no longer assumes that packets are the proper length. It
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

25 years agoIt's not a problem if we don't have GLib 1.1.x or later, so don't
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

25 years agoInclude "config.h", so we know whether we have GLib 1.0[.x] or later, so
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