wireshark.git
23 years agoThis commit was manufactured by cvs2svn to create tagethereal-0-6-2ethereal-0.6.2
Cvs2svn [Wed, 19 May 1999 23:16:43 +0000 (19 23:16 -0000)]
This commit was manufactured by cvs2svn to create tag
'ethereal-0-6-2'.

svn path=/tags/ethereal-0-6-2/; revision=294

23 years agoPackaging changes for version 0.6.2
Gilbert Ramirez [Wed, 19 May 1999 23:16:43 +0000 (19 23:16 -0000)]
Packaging changes for version 0.6.2

svn path=/trunk/; revision=293

23 years agoMade BPF disassembly in wiretap.c a bit easier to read.
Gilbert Ramirez [Wed, 19 May 1999 13:49:35 +0000 (19 13:49 -0000)]
Made BPF disassembly in wiretap.c a bit easier to read.

svn path=/trunk/; revision=292

23 years agoAdded more functionality to the completion-code parsing routine.
Gilbert Ramirez [Sun, 16 May 1999 05:12:11 +0000 (16 05:12 -0000)]
Added more functionality to the completion-code parsing routine.

svn path=/trunk/; revision=291

23 years agoRemoved ethereal.1 and copied make rule from doc/Makefile to top-level
Gilbert Ramirez [Sun, 16 May 1999 04:27:08 +0000 (16 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

23 years agoFixed to actually compile with CMU SNMP library (at least on Linux).
Gilbert Ramirez [Sun, 16 May 1999 04:13:29 +0000 (16 04:13 -0000)]
Fixed to actually compile with CMU SNMP library (at least on Linux).

svn path=/trunk/; revision=289

23 years agoFurther refined NCP fix, and added translation of NCP Completion Code.
Gilbert Ramirez [Fri, 14 May 1999 21:30:13 +0000 (14 21:30 -0000)]
Further refined NCP fix, and added translation of NCP Completion Code.

svn path=/trunk/; revision=288

23 years agoFixed some serious bugs in the NCP hash routines. I also simplified
Gilbert Ramirez [Thu, 13 May 1999 16:42:43 +0000 (13 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

23 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 (13 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

23 years agoRemoving some includes of tftp.h from places it should not be
Richard Sharpe [Thu, 13 May 1999 01:05:11 +0000 (13 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

23 years agoAdd support for Network Monitor 2.0 files, thanks to information
Guy Harris [Wed, 12 May 1999 21:40:07 +0000 (12 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

23 years agoMinor performance improvement and TCP option decoding fixed (when no tree).
Laurent Deniel [Wed, 12 May 1999 20:44:59 +0000 (12 20:44 -0000)]
Minor performance improvement and TCP option decoding fixed (when no tree).

svn path=/trunk/; revision=283

23 years agoCredited John McDermott <jjm@jkintl.com> for his pseudo-real-time
Gilbert Ramirez [Wed, 12 May 1999 06:04:47 +0000 (12 06:04 -0000)]
Credited John McDermott <jjm@jkintl.com> for his pseudo-real-time
capture patch.

svn path=/trunk/; revision=282

23 years agoAdded Didier Jorand's dissect_snmp routine. This is only compiled in
Gilbert Ramirez [Wed, 12 May 1999 05:56:42 +0000 (12 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

23 years agoChanged wiretap rules so that ordinary user doesn't need bison and flex
Gilbert Ramirez [Wed, 12 May 1999 04:56:10 +0000 (12 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

23 years agoAdd "SMB support" to the list of Richard Sharpe's contributions.
Guy Harris [Tue, 11 May 1999 20:32:11 +0000 (11 20:32 -0000)]
Add "SMB support" to the list of Richard Sharpe's contributions.

svn path=/trunk/; revision=279

23 years agoFixed problem where filename of capture file would not be displayed in
Gilbert Ramirez [Tue, 11 May 1999 20:07:47 +0000 (11 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

23 years agoLive data capture and display enhancement that allows network capture and
Laurent Deniel [Tue, 11 May 1999 20:07:12 +0000 (11 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

23 years agoLive data capture and display enhancement that allows network capture and
Laurent Deniel [Tue, 11 May 1999 18:51:10 +0000 (11 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

23 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 (11 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

23 years agoAdd some SMB codes and error codes from the
Guy Harris [Tue, 11 May 1999 07:22:31 +0000 (11 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

23 years agoAdd decoding of DOS-format dates and times (one of the N different
Guy Harris [Tue, 11 May 1999 01:18:30 +0000 (11 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

23 years agoSome of my fixes did get lost - put 'em back.
Guy Harris [Tue, 11 May 1999 00:28:18 +0000 (11 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

23 years agoSome clean-ups. I hope I have not disturbed any of Guy's
Richard Sharpe [Tue, 11 May 1999 00:00:40 +0000 (11 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

23 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 (10 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

23 years agoDecode SMB requests inside NetBIOS Datagram Service packets.
Guy Harris [Mon, 10 May 1999 21:50:13 +0000 (10 21:50 -0000)]
Decode SMB requests inside NetBIOS Datagram Service packets.

svn path=/trunk/; revision=269

23 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 (10 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

23 years agoFixed the number of parameters for the other super-IPX protocols so that
Gilbert Ramirez [Mon, 10 May 1999 20:51:36 +0000 (10 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

23 years agoDecode the "flags2" field in the SMB header.
Guy Harris [Mon, 10 May 1999 20:30:27 +0000 (10 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

23 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 (10 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

23 years agoEGCS 1.1's dataflow analysis (and probably that of other versions of
Guy Harris [Mon, 10 May 1999 20:02:57 +0000 (10 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

23 years agoCheck in updated version, reflecting the changes to "Makefile.am".
Guy Harris [Mon, 10 May 1999 19:26:48 +0000 (10 19:26 -0000)]
Check in updated version, reflecting the changes to "Makefile.am".

svn path=/trunk/; revision=263

23 years agoThis small change lets me read SMBtrans packets that come over NBIPX.
Gilbert Ramirez [Mon, 10 May 1999 19:01:32 +0000 (10 19:01 -0000)]
This small change lets me read SMBtrans packets that come over NBIPX.

svn path=/trunk/; revision=262

23 years agoMode decoded SMBs ... Now decode part of a TCONX request,
Richard Sharpe [Mon, 10 May 1999 00:27:32 +0000 (10 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

23 years agoMinor changes to check if log info is working
Richard Sharpe [Sun, 9 May 1999 12:56:12 +0000 (9 12:56 -0000)]
Minor changes to check if log info is working

svn path=/trunk/; revision=260

23 years agoAdded new files for SMB decode: packet-smb.c, alignment.h, smb.h
Richard Sharpe [Sun, 9 May 1999 04:20:59 +0000 (9 04:20 -0000)]
Added new files for SMB decode: packet-smb.c, alignment.h, smb.h

svn path=/trunk/; revision=259

23 years agoAdded initial support for SMB plus most of negprot decode ..
Richard Sharpe [Sun, 9 May 1999 04:16:36 +0000 (9 04:16 -0000)]
Added initial support for SMB plus most of negprot decode ..

svn path=/trunk/; revision=258

23 years agoMade the executable portable; it will now work on machines other than my
Gilbert Ramirez [Fri, 7 May 1999 03:33:42 +0000 (7 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

23 years agoDefault the capture size to the maximum capture size, rather than the
Guy Harris [Thu, 6 May 1999 05:45:58 +0000 (6 05:45 -0000)]
Default the capture size to the maximum capture size, rather than the
minimum capture size.

svn path=/trunk/; revision=256

23 years agoUpdate it to note that GTK+ has stable 1.2.x versions now.
Guy Harris [Tue, 4 May 1999 18:26:22 +0000 (4 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

23 years agoChanged variable type of argument 'pd' in hex printing routine to match
Gilbert Ramirez [Sat, 1 May 1999 05:39:06 +0000 (1 05:39 -0000)]
Changed variable type of argument 'pd' in hex printing routine to match
prototype.

svn path=/trunk/; revision=254

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

svn path=/trunk/; revision=252

23 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 (1 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

23 years agoMiscellaneous updates of README and README.tru64 created.
Laurent Deniel [Fri, 30 Apr 1999 21:16:31 +0000 (30 21:16 -0000)]
Miscellaneous updates of README and README.tru64 created.

svn path=/trunk/; revision=250

23 years agoDocs updated for ethereal-0.6.0
Gilbert Ramirez [Fri, 30 Apr 1999 20:31:56 +0000 (30 20:31 -0000)]
Docs updated for ethereal-0.6.0

svn path=/trunk/; revision=248

23 years agoAdd support for the NetBIOS Session Service.
Guy Harris [Fri, 30 Apr 1999 03:16:03 +0000 (30 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

23 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 (16 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

23 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 (9 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

23 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 (9 13:31 -0000)]
Removed 2 blocks of code that if #ifdef'ed out. They're just not needed.

svn path=/trunk/; revision=244

23 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 (6 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

23 years agoCapturing packets from ethereal now saves the capture in an "anonymous" buffer. That...
Gilbert Ramirez [Tue, 6 Apr 1999 16:24:50 +0000 (6 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

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

svn path=/trunk/; revision=241

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

svn path=/trunk/; revision=240

23 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 (5 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

23 years agoThe joys of "automake" being run in different environments - undo the
Guy Harris [Mon, 5 Apr 1999 22:25:00 +0000 (5 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

23 years agoFTP, POP, and Telnet support from Richard Sharpe.
Guy Harris [Mon, 5 Apr 1999 21:54:41 +0000 (5 21:54 -0000)]
FTP, POP, and Telnet support from Richard Sharpe.

svn path=/trunk/; revision=237

23 years agoMake the AUTHORS list and the contributors list in the "Help/About
Guy Harris [Sun, 4 Apr 1999 02:49:23 +0000 (4 02:49 -0000)]
Make the AUTHORS list and the contributors list in the "Help/About
Ethereal" dialog match.

svn path=/trunk/; revision=236

23 years agoMove the bitfield-decoding routines to "packet.h", along with other
Guy Harris [Wed, 31 Mar 1999 08:20:28 +0000 (31 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

23 years agoBugfix: The IP Precedence (first three bits in the TOS field) has been cleared
hannes [Tue, 30 Mar 1999 20:40:12 +0000 (30 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

23 years agoChanges to the routines to help decode text-oriented protocols (FTP,
Guy Harris [Tue, 30 Mar 1999 04:41:01 +0000 (30 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

23 years agoA fix for Solaris 2.5.1 compilation.
Gilbert Ramirez [Mon, 29 Mar 1999 02:24:29 +0000 (29 02:24 -0000)]
A fix for Solaris 2.5.1 compilation.

svn path=/trunk/; revision=232

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

svn path=/trunk/; revision=231

23 years agoGave Jun-ichiro credit for his IPv6 patch.
Gilbert Ramirez [Sun, 28 Mar 1999 18:42:47 +0000 (28 18:42 -0000)]
Gave Jun-ichiro credit for his IPv6 patch.

svn path=/trunk/; revision=230

23 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 (28 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

23 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 (25 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

23 years agoFixes to the TCP reassembly code to correctly handle too short
Laurent Deniel [Tue, 23 Mar 1999 20:25:50 +0000 (23 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

23 years agoFixed compilation warning on Solaris 2.6
Gilbert Ramirez [Tue, 23 Mar 1999 19:41:51 +0000 (23 19:41 -0000)]
Fixed compilation warning on Solaris 2.6

svn path=/trunk/; revision=226

23 years agoMove the include of "snprintf.h" after a bunch of other includes, so
Guy Harris [Tue, 23 Mar 1999 03:58:59 +0000 (23 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

23 years agoInclude "snprintf.h" if necessary, to declare "vsnprintf()".
Guy Harris [Tue, 23 Mar 1999 03:54:46 +0000 (23 03:54 -0000)]
Include "snprintf.h" if necessary, to declare "vsnprintf()".

svn path=/trunk/; revision=224

23 years agoRemoved all references to gtk objects from packet*.[ch] files. They now
Gilbert Ramirez [Tue, 23 Mar 1999 03:14:46 +0000 (23 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

23 years agoAdd #defines for more T_ types.
Guy Harris [Mon, 22 Mar 1999 23:31:05 +0000 (22 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

23 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 (22 15:02 -0000)]
Got rid of "hdr_size may not be initialized" warning, even though it was
innocuous.

svn path=/trunk/; revision=221

23 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 (22 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

23 years agoHave "sap_capture_func()" return "capture_data" rather than
Guy Harris [Mon, 22 Mar 1999 03:44:44 +0000 (22 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

23 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 (22 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

23 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 (20 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

23 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 (20 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

23 years agoRe-wrote the NCP module in accordance with how NCP is really organized.
Gilbert Ramirez [Sat, 20 Mar 1999 04:38:57 +0000 (20 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

23 years agoAdd "phtons()" and "phtonl()" macros, which handle unaligned quantities,
Guy Harris [Sat, 13 Mar 1999 08:39:08 +0000 (13 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

23 years agoDecode more stuff in an ICMP packet.
Guy Harris [Tue, 9 Mar 1999 02:52:37 +0000 (9 02:52 -0000)]
Decode more stuff in an ICMP packet.

svn path=/trunk/; revision=213

23 years agoMake the arrays of pointers to strings for ICMP decoding static, as
Guy Harris [Tue, 9 Mar 1999 01:45:06 +0000 (9 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

23 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 (5 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

23 years agodissect_sap() no longer assumes that packets are the proper length. It
Gilbert Ramirez [Fri, 5 Mar 1999 05:20:12 +0000 (5 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

23 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 (3 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

23 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 (3 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

23 years agoAdd the right byte count to fddi's initial add_item_to_tree so that the entire
Gilbert Ramirez [Tue, 2 Mar 1999 20:50:05 +0000 (2 20:50 -0000)]
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

23 years agoFixed for glib-1.x.y, x > 0
Gilbert Ramirez [Tue, 2 Mar 1999 19:32:33 +0000 (2 19:32 -0000)]
Fixed for glib-1.x.y, x > 0

svn path=/trunk/; revision=206

23 years agoHave "rt-scanner.l" and "rt-grammar.y" depend on the filter description
Guy Harris [Tue, 2 Mar 1999 07:04:55 +0000 (2 07:04 -0000)]
Have "rt-scanner.l" and "rt-grammar.y" depend on the filter description
files used to generate them.

svn path=/trunk/; revision=205

23 years agoIt turns out that the first of the unknown fields in the NetXRay header
Guy Harris [Mon, 1 Mar 1999 22:59:47 +0000 (1 22:59 -0000)]
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

23 years agolex_init() changed to wtap_lex_init()
Gilbert Ramirez [Mon, 1 Mar 1999 21:50:20 +0000 (1 21:50 -0000)]
lex_init() changed to wtap_lex_init()

svn path=/trunk/; revision=203

23 years agoGuy noticed that lex_init was a function in both libpcap and wiretap. Fixed.
Gilbert Ramirez [Mon, 1 Mar 1999 21:48:30 +0000 (1 21:48 -0000)]
Guy noticed that lex_init was a function in both libpcap and wiretap. Fixed.

svn path=/trunk/; revision=202

23 years agoAdd an "acinclude.m4", from which "aclocal.m4" is made.
Guy Harris [Mon, 1 Mar 1999 21:45:54 +0000 (1 21:45 -0000)]
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

23 years agoFix a typo, and note that we can read Token Ring captures from Sniffer
Guy Harris [Mon, 1 Mar 1999 20:35:33 +0000 (1 20:35 -0000)]
Fix a typo, and note that we can read Token Ring captures from Sniffer
Basic/Windows Sniffer Pro.

svn path=/trunk/; revision=200

23 years agoDisables "Follow TCP Stream" if compiled with wiretap.
Gilbert Ramirez [Mon, 1 Mar 1999 20:32:54 +0000 (1 20:32 -0000)]
Disables "Follow TCP Stream" if compiled with wiretap.

svn path=/trunk/; revision=199

23 years agoAdded display filters to wiretap.
Gilbert Ramirez [Mon, 1 Mar 1999 18:57:07 +0000 (1 18:57 -0000)]
Added display filters to wiretap.

svn path=/trunk/; revision=198

23 years agoSmall fixes for alignment, and #include for gtk+-1.1.x/glib-1.1.x
Gilbert Ramirez [Mon, 1 Mar 1999 18:28:12 +0000 (1 18:28 -0000)]
Small fixes for alignment, and #include for gtk+-1.1.x/glib-1.1.x

svn path=/trunk/; revision=197

23 years ago* Added Didier Joran to authors list.
Gerald Combs [Sun, 28 Feb 1999 16:10:39 +0000 (28 16:10 -0000)]
* Added Didier Joran to authors list.

svn path=/trunk/; revision=196

23 years agoUpdate to reflect support for NetXRay format.
Guy Harris [Sat, 20 Feb 1999 08:12:20 +0000 (20 08:12 -0000)]
Update to reflect support for NetXRay format.

svn path=/trunk/; revision=195

23 years agoAdd support for Cinco Networks NetXRay - which is, after their acquision
Guy Harris [Sat, 20 Feb 1999 06:49:27 +0000 (20 06:49 -0000)]
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

23 years agoMake the "magic number" a "const" string.
Guy Harris [Sat, 20 Feb 1999 06:46:57 +0000 (20 06:46 -0000)]
Make the "magic number" a "const" string.

svn path=/trunk/; revision=193