obnox/wireshark/wip.git
25 years agoRemoved all references to gtk objects from packet*.[ch] files. They now
gram [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).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@223 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@222 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@221 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@220 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@219 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@218 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@217 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@216 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@215 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@214 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@213 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@212 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@211 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@210 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@209 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@208 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@207 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@206 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@205 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@204 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agolex_init() changed to wtap_lex_init()
gram [Mon, 1 Mar 1999 21:50:20 +0000 (21:50 +0000)]
lex_init() changed to wtap_lex_init()

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@203 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@202 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@201 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@200 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@199 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded display filters to wiretap.
gram [Mon, 1 Mar 1999 18:57:07 +0000 (18:57 +0000)]
Added display filters to wiretap.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@198 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@197 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@196 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@195 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@194 f5534014-38df-0310-8fa8-9805f1628bb7

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

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@193 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFix a typo in a comment, and make the "magic number" a "const" string.
guy [Sat, 20 Feb 1999 06:46:33 +0000 (06:46 +0000)]
Fix a typo in a comment, and make the "magic number" a "const" string.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@192 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded Richard Sharpe's TFTP support. (I missed this in my initial
guy [Fri, 19 Feb 1999 05:28:38 +0000 (05:28 +0000)]
Added Richard Sharpe's TFTP support.  (I missed this in my initial
checkin of that stuff.)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@191 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded Richard Sharpe's TFTP support.
guy [Mon, 15 Feb 1999 06:36:57 +0000 (06:36 +0000)]
Added Richard Sharpe's TFTP support.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@190 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdd support for "%i" (it's the same as "%d", according to the ANSI C
guy [Mon, 15 Feb 1999 06:36:19 +0000 (06:36 +0000)]
Add support for "%i" (it's the same as "%d", according to the ANSI C
standard).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@189 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoChange to wtap.c switch() statement to allow compilation under IBM's C compiler.
gram [Fri, 12 Feb 1999 16:26:09 +0000 (16:26 +0000)]
Change to wtap.c switch() statement to allow compilation under IBM's C compiler.
It didn't like an empty default case. And <time.h> was forgotten in netmon.c

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@188 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdd a first cut at HTTP decoding.
guy [Fri, 12 Feb 1999 09:03:42 +0000 (09:03 +0000)]
Add a first cut at HTTP decoding.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@187 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoHave MIN_PACKET_SIZE, rather than 1, be the minimum value in the spin
guy [Thu, 11 Feb 1999 07:11:45 +0000 (07:11 +0000)]
Have MIN_PACKET_SIZE, rather than 1, be the minimum value in the spin
box for the capture size.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@186 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoMake the minimum and maximum packet sizes #defines.
guy [Thu, 11 Feb 1999 06:17:30 +0000 (06:17 +0000)]
Make the minimum and maximum packet sizes #defines.

Crank the maximum packet size up to 65535 bytes.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@185 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoWhen doing a capture, decode enough of the incoming packets to correctly
guy [Tue, 9 Feb 1999 00:35:38 +0000 (00:35 +0000)]
When doing a capture, decode enough of the incoming packets to correctly
update the packet counts and percentages in the dialog box popped up
during a capture, even for non-Ethernet captures.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@184 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoI removed the bit-fields that depended upon gcc's ability to use any type
gram [Mon, 8 Feb 1999 20:02:35 +0000 (20:02 +0000)]
I removed the bit-fields that depended upon gcc's ability to use any type
of variable as a bit field container. ANSI specs only allow unsigned ints
to host bit fields; IBM's C compiler is very ANSI-strict.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@183 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoCopy the RIP header to a buffer, so that we don't blow up if it's
guy [Fri, 5 Feb 1999 00:52:19 +0000 (00:52 +0000)]
Copy the RIP header to a buffer, so that we don't blow up if it's
misaligned.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@182 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoNo need to disable filter-related widgets for packet capture if we're
guy [Tue, 2 Feb 1999 02:53:24 +0000 (02:53 +0000)]
No need to disable filter-related widgets for packet capture if we're
using wiretap - we use "libpcap" for packet capture, and it still lets
you filter.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@181 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdd Network Monitor and "iptrace" to the list of capture file formats
guy [Sat, 30 Jan 1999 10:35:19 +0000 (10:35 +0000)]
Add Network Monitor and "iptrace" to the list of capture file formats
"wiretap" can read.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@180 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoCorrect and expand the discussion of ATM Sniffer captures.
guy [Sat, 30 Jan 1999 09:44:21 +0000 (09:44 +0000)]
Correct and expand the discussion of ATM Sniffer captures.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@179 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoModified code to allow compilation under IBM's C compiler for AIX.
gram [Fri, 29 Jan 1999 17:06:56 +0000 (17:06 +0000)]
Modified code to allow compilation under IBM's C compiler for AIX.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@178 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded guy's time and DHCP patch.
gram [Thu, 28 Jan 1999 21:29:36 +0000 (21:29 +0000)]
Added guy's time and DHCP patch.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@177 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded token-ring support to netmon.c
gram [Wed, 27 Jan 1999 14:54:09 +0000 (14:54 +0000)]
Added token-ring support to netmon.c

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@176 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoRemoved Development notice within the CDP tree...
hannes [Sun, 24 Jan 1999 21:18:15 +0000 (21:18 +0000)]
Removed Development notice within the CDP tree...

Cisco Discovery Protocol works fine for me now. I have tested it with various
Ciscos (7200, 3640, 2820, 2900, ...)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@175 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded news about Guy's netmon addition.
gram [Thu, 21 Jan 1999 05:07:45 +0000 (05:07 +0000)]
Added news about Guy's netmon addition.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@174 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoI changed the wtap_open_offline() function so that it takes only the
gram [Thu, 21 Jan 1999 05:03:56 +0000 (05:03 +0000)]
I changed the wtap_open_offline() function so that it takes only the
filename as the parameter. So far all the filetypes that wiretap can read
can be inferred from the first few bytes of the file, so we never
have to give wiretap a hint as to the file type.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@173 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded Guy's netmon.[ch] files to CVS for him. His firewall admins forgot
gram [Mon, 18 Jan 1999 21:34:54 +0000 (21:34 +0000)]
Added Guy's netmon.[ch] files to CVS for him. His firewall admins forgot
to add ssh to their firewall rules, so he's out of CVS for a few days.
This adds support for MS Network Monitor files to wiretap.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@172 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdd suppport for Microsoft Network Monitor Ethernet capture files.
guy [Sun, 17 Jan 1999 09:33:15 +0000 (09:33 +0000)]
Add suppport for Microsoft Network Monitor Ethernet capture files.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@171 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoClean up some output lines, and show the checksum value on the line for
guy [Sun, 17 Jan 1999 09:30:05 +0000 (09:30 +0000)]
Clean up some output lines, and show the checksum value on the line for
the packet checksum.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@170 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Modified Makefile.am and configure.in so that wiretap isn't built unless
gerald [Wed, 13 Jan 1999 04:14:29 +0000 (04:14 +0000)]
* Modified Makefile.am and configure.in so that wiretap isn't built unless
  --with-wiretap is specified.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@169 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFixed a bug regarding bad packets. If a sub-vector indicated a 0-length,
gram [Tue, 12 Jan 1999 17:44:52 +0000 (17:44 +0000)]
Fixed a bug regarding bad packets. If a sub-vector indicated a 0-length,
dissect_trmac() would spin in an infinite loop. Now that condition is checked
and properly handled.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@168 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Added Tony Abbot's fixes for libpcap include directory discovery.
gerald [Sun, 10 Jan 1999 21:23:41 +0000 (21:23 +0000)]
* Added Tony Abbot's fixes for libpcap include directory discovery.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@167 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Added RPM .spec
gerald [Sun, 10 Jan 1999 21:20:44 +0000 (21:20 +0000)]
* Added RPM .spec

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@166 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoUse g_free instead of free so that I don't have to include <stdlib.h>
gram [Fri, 8 Jan 1999 17:24:01 +0000 (17:24 +0000)]
Use g_free instead of free so that I don't have to include <stdlib.h>
for just one function.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@165 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoA bad frame control value could crash ethereal because I didn't do
gram [Fri, 8 Jan 1999 04:42:43 +0000 (04:42 +0000)]
A bad frame control value could crash ethereal because I didn't do
proper bounds checking. Fixed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@164 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoLogged my change about per-packet encapsulation types.
gram [Thu, 7 Jan 1999 16:43:40 +0000 (16:43 +0000)]
Logged my change about per-packet encapsulation types.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@163 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoI removed the per-file encapsulation type from wiretap, and make all filetypes
gram [Thu, 7 Jan 1999 16:15:37 +0000 (16:15 +0000)]
I removed the per-file encapsulation type from wiretap, and make all filetypes
provide a per-packet encapsulation type. this required minor modifications to
ethereal.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@162 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoThe TLV structures in a CDP packet aren't necessarily aligned on 2-byte
guy [Wed, 6 Jan 1999 23:07:42 +0000 (23:07 +0000)]
The TLV structures in a CDP packet aren't necessarily aligned on 2-byte
boundaries, so use "pntohs()" to extract data from them, so that you
don't do unaligned accesses (which some processors don't handle).

Put the "IOS version" field out as multiple tree items, one per line of
text in the version description.

Use "memset()" rather than "bzero()" - "memset()" is used elsewhere, and
we already include the header file that declares it.

Use "ip_to_str()" rather than "inet_ntoa()" to display IP addresses as
text; that's what's used elsewhere in Ethereal.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@161 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoClean up what's displayed for unknown opcodes and unknown rcodes.
guy [Tue, 5 Jan 1999 09:01:42 +0000 (09:01 +0000)]
Clean up what's displayed for unknown opcodes and unknown rcodes.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@160 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoDecode the various flag fields in resource records in NBNS replies.
guy [Tue, 5 Jan 1999 08:48:40 +0000 (08:48 +0000)]
Decode the various flag fields in resource records in NBNS replies.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@159 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoNeither "ether_to_str()" nor "ip_to_str()" modify the data pointed to by
guy [Tue, 5 Jan 1999 07:33:38 +0000 (07:33 +0000)]
Neither "ether_to_str()" nor "ip_to_str()" modify the data pointed to by
their arguments, so make those arguments pointers to 'const", so that we
don't get complaints if somebody hands them a pointer to "const".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@158 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Fixed missing curly brace.
gerald [Tue, 5 Jan 1999 03:05:50 +0000 (03:05 +0000)]
* Fixed missing curly brace.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@157 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFinished the first version of CDP support.
hannes [Tue, 5 Jan 1999 00:08:49 +0000 (00:08 +0000)]
Finished the first version of CDP support.
-> this works for all CDP packets I've got

some minor additions will follow

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@156 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoOkay. Please test the CVS code....
hannes [Mon, 4 Jan 1999 21:08:45 +0000 (21:08 +0000)]
Okay. Please test the CVS code....

I think I figured out how CDP works :) ----

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@155 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoI've dicovered, that the existing CDP code does not work with Cisco
hannes [Mon, 4 Jan 1999 20:07:29 +0000 (20:07 +0000)]
I've dicovered, that the existing CDP code does not work with Cisco
switches -> dissect_cdp stops a bit earlier... (preventing errors)

I have added the line "under development" to the CDP tree

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@154 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoDecode the word containing the opcode, flags, reply code, etc. in DNS
guy [Mon, 4 Jan 1999 09:13:46 +0000 (09:13 +0000)]
Decode the word containing the opcode, flags, reply code, etc. in DNS
and NBNS requests.

Put the opcode in the COL_INFO field for DNS requests (it was already
there for NBNS requests).

Don't assume a DNS or NBNS request is neatly aligned on a 2-byte
boundary (it might not be if, for example, the packet is an FDDI
packet).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@153 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoInclude "snprintf.h", as we use "snprintf()", so that we don't get
guy [Mon, 4 Jan 1999 08:45:22 +0000 (08:45 +0000)]
Include "snprintf.h", as we use "snprintf()", so that we don't get
warnings from "gcc -Wall".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@152 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoInclude "snprintf.h", as we use "snprintf()", so that we don't get
guy [Mon, 4 Jan 1999 07:39:14 +0000 (07:39 +0000)]
Include "snprintf.h", as we use "snprintf()", so that we don't get
warnings from "gcc -Wall".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@151 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Final commit for version 0.5.1
gerald [Mon, 4 Jan 1999 01:31:18 +0000 (01:31 +0000)]
* Final commit for version 0.5.1
* Added RPM .spec file (Martin Maciaszek)
* Added Martin to AUTHORS

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@149 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded files to handle AIX iptrace 2.0 files in wiretap.
gram [Sun, 3 Jan 1999 04:30:13 +0000 (04:30 +0000)]
Added files to handle AIX iptrace 2.0 files in wiretap.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@148 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoThe "lnk_t" field of per-packet data, and the "pkt_encap" field in the
guy [Sun, 3 Jan 1999 01:57:24 +0000 (01:57 +0000)]
The "lnk_t" field of per-packet data, and the "pkt_encap" field in the
packet header, are there only if "wiretap" is used, so protect their use
with "#ifdef WITH_WIRETAP".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@147 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoI made sure to note that wiretap only supports iptrace 2.0 files so far.
gram [Sat, 2 Jan 1999 06:50:30 +0000 (06:50 +0000)]
I made sure to note that wiretap only supports iptrace 2.0 files so far.
iptrace 1.0 is not supported yet.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@146 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded the iptrace (AIX's packet-capture tool) file format to wiretap.
gram [Sat, 2 Jan 1999 06:10:55 +0000 (06:10 +0000)]
Added the iptrace (AIX's packet-capture tool) file format to wiretap.
This necessitated a change in ethereal because iptrace supports multi-NIC
packet capturing, including multi-datalink-type capturing.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@145 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded #include <sys/types.h> for compilation under gtk-1.1.11
gram [Fri, 1 Jan 1999 07:40:34 +0000 (07:40 +0000)]
Added #include <sys/types.h> for compilation under gtk-1.1.11

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@144 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoBe smarter about IPX port numbers and which function to call.
gram [Thu, 31 Dec 1998 20:36:43 +0000 (20:36 +0000)]
Be smarter about IPX port numbers and which function to call.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@143 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Added Joerg Mayer's Vines patch
gerald [Tue, 29 Dec 1998 04:05:38 +0000 (04:05 +0000)]
* Added Joerg Mayer's Vines patch
* Added Joerg to the AUTHORS file
* Added Guy's bitfield decode patch
* Fixed time output

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@142 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Installation documentation updates
gerald [Tue, 29 Dec 1998 03:12:07 +0000 (03:12 +0000)]
* Installation documentation updates

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@141 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Add library version information to about box, -v and -h output
gerald [Sun, 27 Dec 1998 20:47:53 +0000 (20:47 +0000)]
* Add library version information to about box, -v and -h output

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@140 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* Minor changes for GTK+ 1.1/1.2 support
gerald [Sun, 27 Dec 1998 20:46:45 +0000 (20:46 +0000)]
* Minor changes for GTK+ 1.1/1.2 support

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@139 f5534014-38df-0310-8fa8-9805f1628bb7

25 years ago* GTK+ 1.1/1.2 compatibility changes (use gtk_scrolled_window_add_with_viewport
gerald [Sun, 27 Dec 1998 20:44:53 +0000 (20:44 +0000)]
* GTK+ 1.1/1.2 compatibility changes (use gtk_scrolled_window_add_with_viewport
  to add filter list to scrolled window)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@138 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFixed more bugs with dialogues and gtk+-1.1.x.
gram [Tue, 22 Dec 1998 07:07:11 +0000 (07:07 +0000)]
Fixed more bugs with dialogues and gtk+-1.1.x.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@137 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoStopped the "TCP Follow" screen from producing an error when using
gram [Tue, 22 Dec 1998 05:52:51 +0000 (05:52 +0000)]
Stopped the "TCP Follow" screen from producing an error when using
wiretap and gtk+-1.1.x. I also added an #include to util.c to keep
it from complaining about a lack of a definition of vsnprintf when
compiling with gtk+-1.1.x.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@136 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFixed the version of gtk1.1.x required for
gram [Tue, 22 Dec 1998 00:41:24 +0000 (00:41 +0000)]
Fixed the version of gtk1.1.x required for
gtk_scrolledwindow_add_with_viewport. Now it compiles correctly on
gtk+-1.1.[0-4].

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@135 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoSyntax and compilation fixes for the broken code I just committed.
gerald [Mon, 21 Dec 1998 03:58:00 +0000 (03:58 +0000)]
Syntax and compilation fixes for the broken code I just committed.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@134 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoMake the info field verbose.
gerald [Mon, 21 Dec 1998 03:43:29 +0000 (03:43 +0000)]
Make the info field verbose.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@133 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoChanged port print formats to unsigned, added raw port number to tree output.
gerald [Mon, 21 Dec 1998 03:42:22 +0000 (03:42 +0000)]
Changed port print formats to unsigned, added raw port number to tree output.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@132 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoModify add_item_to_tree to return immediately on a null tree ptr.
gerald [Mon, 21 Dec 1998 03:39:27 +0000 (03:39 +0000)]
Modify add_item_to_tree to return immediately on a null tree ptr.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@131 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoBack out change that Hannes Boehm said he didn't intend to commit,
guy [Sun, 20 Dec 1998 01:47:05 +0000 (01:47 +0000)]
Back out change that Hannes Boehm said he didn't intend to commit,
replacing "memset(..., 0, ...)" with "bzero(..., ...)" - he asked me to
remove the change.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@130 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded "Cisco Discovery Protocol" Hooks
hannes [Sat, 19 Dec 1998 00:12:23 +0000 (00:12 +0000)]
Added "Cisco Discovery Protocol" Hooks
Added Ethernet Loopback Protocol Type to ethertype.c

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@129 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded Guy Harris' patch to read Sniffer ATM trace files. Very nice.
gram [Thu, 17 Dec 1998 06:39:13 +0000 (06:39 +0000)]
Added Guy Harris' patch to read Sniffer ATM trace files. Very nice.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@128 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoA patch spread across many files to let Ethereal compile under GTK+-1.1.x.
gram [Thu, 17 Dec 1998 05:42:33 +0000 (05:42 +0000)]
A patch spread across many files to let Ethereal compile under GTK+-1.1.x.
Tests for GTK versions are done during compilation, not during "./configure".
The big problems have been taken care of in this patch (functional change
in the packet clist and conversion of menu_factory to item_factory), but
plenty of smaller problems with dialogue boxes abound. I have fixed
a small problem with file_open*(), but have left 2 comments in just in case
I'm not going about this the right way. Can someone verify?

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@127 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoNote that wiring the current longest string in a column into
guy [Wed, 16 Dec 1998 09:05:51 +0000 (09:05 +0000)]
Note that wiring the current longest string in a column into
"get_column_width()" is somewhat fragile, and suggest a possible
alternative.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@126 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoFix the bitmask for the hour field in a DOS-format time (not that it
guy [Tue, 15 Dec 1998 04:11:58 +0000 (04:11 +0000)]
Fix the bitmask for the hour field in a DOS-format time (not that it
matters, as that code is commented out).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@125 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoDebug statement commented out.
gram [Sun, 13 Dec 1998 05:38:13 +0000 (05:38 +0000)]
Debug statement commented out.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@124 f5534014-38df-0310-8fa8-9805f1628bb7

25 years agoAdded Guy's patch to calculate date of Sniffer packet trace. I copied
gram [Sun, 13 Dec 1998 05:08:05 +0000 (05:08 +0000)]
Added Guy's patch to calculate date of Sniffer packet trace. I copied
bits of it to do the same for Lanalyzer packets.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@123 f5534014-38df-0310-8fa8-9805f1628bb7