obnox/wireshark/wip.git
22 years agoFrom Michael Tuexen: add missing support for the T-Bit in ABORT chunks.
guy [Tue, 16 Apr 2002 19:58:53 +0000 (19:58 +0000)]
From Michael Tuexen: add missing support for the T-Bit in ABORT chunks.

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

22 years agoAdd support for desegmentation of X11 messages.
guy [Tue, 16 Apr 2002 09:42:31 +0000 (09:42 +0000)]
Add support for desegmentation of X11 messages.

Try to check whether the first request we see is an initial connection
request, and dissect it as such if so.

Get rid of the global "next_offset" variable.

Check for buffer overflows when building the summary item for a list
of keysyms.

Display BASE_DEC items in decimal, not hex.

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

22 years agoFix more Politecnico di Torino links.
gerald [Tue, 16 Apr 2002 03:00:54 +0000 (03:00 +0000)]
Fix more Politecnico di Torino links.

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

22 years agoDo the standard "next entry offset" stuff in NT NOTIFY replies, so as to
guy [Tue, 16 Apr 2002 02:42:24 +0000 (02:42 +0000)]
Do the standard "next entry offset" stuff in NT NOTIFY replies, so as to

1) handle inter-entry padding;

2) quit when the "next entry offset" is 0 (that being the signal
   for the last entry).

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

22 years agoDisplay non-zero return codes in COL_INFO.
tpot [Tue, 16 Apr 2002 02:02:04 +0000 (02:02 +0000)]
Display non-zero return codes in COL_INFO.

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

22 years agoFrom Michael Tuexen:
guy [Mon, 15 Apr 2002 21:53:55 +0000 (21:53 +0000)]
From Michael Tuexen:

- support for current SCTP checksum
- fix a bug for the -S parameter
- fix a bug in the displayed output for the TSN and PPI.

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

22 years agoASAP support, from Michael Tuexen.
guy [Mon, 15 Apr 2002 21:47:59 +0000 (21:47 +0000)]
ASAP support, from Michael Tuexen.

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

22 years agoFrom Jason Lango: a hack to get SDES length correct on QT packets.
guy [Mon, 15 Apr 2002 21:25:05 +0000 (21:25 +0000)]
From Jason Lango: a hack to get SDES length correct on QT packets.

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

22 years agoFrom Simharajan Srishylam:
guy [Mon, 15 Apr 2002 21:12:56 +0000 (21:12 +0000)]
From Simharajan Srishylam:

In capability element, length is for the value (excluding type &
len field) not for the whole element.  Results in packets not
being parsed correctly.

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

22 years agoFrom Ronnie Sahlberg: dissect_mount_dirpath_call()
girlich [Mon, 15 Apr 2002 08:55:03 +0000 (08:55 +0000)]
From Ronnie Sahlberg: dissect_mount_dirpath_call()
The sprintf() thingy failed to properly null terminate the string thus
causing damage.

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

22 years agoUse "CLEANUP_PUSH()" and "CLEANUP_CALL_AND_POP()" to plug potential
guy [Mon, 15 Apr 2002 00:10:26 +0000 (00:10 +0000)]
Use "CLEANUP_PUSH()" and "CLEANUP_CALL_AND_POP()" to plug potential
memory leaks.

Put "Requests", not "X11 request", in the Info column for packets to the
server - we already know it's X11, and there may be more than one
request in the packet.

Put "Replies/events", not "X11 event", in the Info column for packets
from the server - we already know it's X11, and there may be more than
one message, and the messages might be replies rather than events.

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

22 years agoFrom Joerg Mayer: get rid of some unused variables and arguments.
guy [Sun, 14 Apr 2002 23:22:22 +0000 (23:22 +0000)]
From Joerg Mayer: get rid of some unused variables and arguments.

Use "tvb_get_ntohs()" to fetch the checksum from a VJ compressed packet,
rather than doing the ntoh by hand.

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

22 years agoFrom Joerg Mayer:
guy [Sun, 14 Apr 2002 23:04:04 +0000 (23:04 +0000)]
From Joerg Mayer:

Declares some variables static.

Creates a new include file packet-rsvp.h, and make use of it
(change some extern decls to #inlcude).

Move the file packet-pgm.h into packet-pgm.c as it is not used
by anything outside packet-pgm.c.

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

22 years agoFrom Didier Gautheron: make the "code" field an signed decimal number.
guy [Sun, 14 Apr 2002 22:56:02 +0000 (22:56 +0000)]
From Didier Gautheron: make the "code" field an signed decimal number.

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

22 years agoM2UA support, from Michael Tuexen.
guy [Sun, 14 Apr 2002 22:52:49 +0000 (22:52 +0000)]
M2UA support, from Michael Tuexen.

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

22 years agoGet rid of another global variable.
guy [Sun, 14 Apr 2002 22:50:07 +0000 (22:50 +0000)]
Get rid of another global variable.

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

22 years agoDisplay Boolean bitfields that control whether other fields show up in a
guy [Sun, 14 Apr 2002 22:08:51 +0000 (22:08 +0000)]
Display Boolean bitfields that control whether other fields show up in a
message regardless of whether they're set or clear, so you can see not
only what flags are set, but also what flags aren't set.  (The previous
checkin only affected bitfields that don't control whether other fields
show up in a message.)

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

22 years agoDisplay Boolean bitfields regardless of whether they're set or clear, so
guy [Sun, 14 Apr 2002 21:44:48 +0000 (21:44 +0000)]
Display Boolean bitfields regardless of whether they're set or clear, so
you can see not only what flags are set, but also what flags aren't set.
Don't show reserved bits unless they're set, though.

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

22 years agoUpdate wiretapped mirror links.
gerald [Sun, 14 Apr 2002 20:06:04 +0000 (20:06 +0000)]
Update wiretapped mirror links.

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

22 years agoChange "http://netgroup-mirror.ethereal.com/winpcap" URLs to
gerald [Sun, 14 Apr 2002 19:24:26 +0000 (19:24 +0000)]
Change "netgroup-mirror.ethereal.com/winpcap" URLs to
"http://winpcap.mirror.ethereal.com/", since that's how we're mirroring
the Politecnico di Torino sites now.

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

22 years agoAdd an ett_ variable to the "ett[]" array; it was missing.
guy [Sat, 13 Apr 2002 22:34:17 +0000 (22:34 +0000)]
Add an ett_ variable to the "ett[]" array; it was missing.

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

22 years agoUpdate to reflect the replacement of "--enable-zlib"/"--disable-zlib"
guy [Sat, 13 Apr 2002 22:11:06 +0000 (22:11 +0000)]
Update to reflect the replacement of "--enable-zlib"/"--disable-zlib"
with "--with-zlib"/"--without-zlib", and the added support for
"--with-zlib=DIR".

Update to reflect the replacement of "--disable-snmp" with
"--without-ucdsnmp".

Note "--without-pcap" is what you'd use to build on a system without
libpcap.

Fix some typos.

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

22 years agoGet rid of another global variable.
guy [Sat, 13 Apr 2002 20:16:09 +0000 (20:16 +0000)]
Get rid of another global variable.

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

22 years agoFrom Jouni Malinen:
guy [Sat, 13 Apr 2002 18:41:47 +0000 (18:41 +0000)]
From Jouni Malinen:

Fix offset of challenge element in 802.11 dissector.
Show fragmented 802.11 frames as fragments.

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

22 years agoFrom Michael Tuexen:
guy [Sat, 13 Apr 2002 18:36:24 +0000 (18:36 +0000)]
From Michael Tuexen:

The -S option has been changed such that the payload protocol
identifier can be specified instead of the verification tag.

The error messages for -s -S have been corrected.

Update the text2pcap man page to reflect the "-S" change.

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

22 years agoFrom Aamer Akhter: fix initialization of ett_slarp in CHDLC dissector.
guy [Sat, 13 Apr 2002 09:22:39 +0000 (09:22 +0000)]
From Aamer Akhter: fix initialization of ett_slarp in CHDLC dissector.

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

22 years ago"pinfo->pseudo_header" might be null, even for link-layer types such as
guy [Sat, 13 Apr 2002 00:02:55 +0000 (00:02 +0000)]
"pinfo->pseudo_header" might be null, even for link-layer types such as
WTAP_ENCAP_CHDLC; check whether it's null before using it.

Use FROM_DCE rather than 0x80 to check the "this is DCE->DTE" bit in
"x25.flags".

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

22 years agoAdd (untested) routines to fetch IEEE single-precision and
guy [Fri, 12 Apr 2002 23:25:24 +0000 (23:25 +0000)]
Add (untested) routines to fetch IEEE single-precision and
double-precision floating-point numbers, in big-endian and little-endian
format (hopefully there aren't any middle-endian formats; if there are,
we'll have to add them), from a tvbuff, and to return floats (for
single-precision) and doubles (for double-precision).

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

22 years agoBug fix from Didier Gautheron.
guy [Fri, 12 Apr 2002 01:18:47 +0000 (01:18 +0000)]
Bug fix from Didier Gautheron.

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

22 years agoFrom Pasi Eronen: support for the PCT record layer, and fixes for a
guy [Thu, 11 Apr 2002 09:43:22 +0000 (09:43 +0000)]
From Pasi Eronen: support for the PCT record layer, and fixes for a
couple of bugs in the TCP desegmentation routines.

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

22 years agoFrom Joerg Mayer: get rid of some unused arguments, and make some
guy [Thu, 11 Apr 2002 09:38:03 +0000 (09:38 +0000)]
From Joerg Mayer: get rid of some unused arguments, and make some
routines not used outside the file in which they're defined static.

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

22 years agoFrom Pasi Eronen: add some items for the cipher suites for Microsoft's
guy [Thu, 11 Apr 2002 09:20:33 +0000 (09:20 +0000)]
From Pasi Eronen: add some items for the cipher suites for Microsoft's
old PCT protocol.

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

22 years agoFrom Tom Uijldert: create a subtree with "proto_item_add_subtree()",
guy [Thu, 11 Apr 2002 09:10:47 +0000 (09:10 +0000)]
From Tom Uijldert: create a subtree with "proto_item_add_subtree()",
rather than just using an item as a tree.

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

22 years agoUpdate the Win32 nmakefile to include "packet-lmp.c".
guy [Thu, 11 Apr 2002 09:01:52 +0000 (09:01 +0000)]
Update the Win32 nmakefile to include "packet-lmp.c".

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

22 years agoDo the "follow TCP stream" stuff before calling the subdissector, so
guy [Thu, 11 Apr 2002 08:59:43 +0000 (08:59 +0000)]
Do the "follow TCP stream" stuff before calling the subdissector, so
that it gets done even if the subdissector throws an exception (and so
that, if the subdissector modifies the addresses or ports, we still hand
the right values to "reassemble_tcp()").

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

22 years agoAdd "-" (hyphen) to the pattern for field-name/non-quoted string.
gram [Thu, 11 Apr 2002 03:26:26 +0000 (03:26 +0000)]
Add "-" (hyphen) to the pattern for field-name/non-quoted string.

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

22 years agoAdded support for the Link Management Protocol (LMP), used for optical
ashokn [Wed, 10 Apr 2002 22:00:49 +0000 (22:00 +0000)]
Added support for the Link Management Protocol (LMP), used for optical
signalling and Generalized MPLS. This commit contains code for the
protocol version described in draft-ietf-ccamp-lmp-03.txt.

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

22 years agoFixed two instances where si->sip was being not checked for NULL before
tpot [Tue, 9 Apr 2002 23:56:57 +0000 (23:56 +0000)]
Fixed two instances where si->sip was being not checked for NULL before
being dereferenced.

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

22 years agoFrom Joerg Mayer: remove unused parameters.
guy [Tue, 9 Apr 2002 09:04:33 +0000 (09:04 +0000)]
From Joerg Mayer: remove unused parameters.

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

22 years ago"dissect_frame()" is now static; don't declare it in "packet-frame.h".
guy [Tue, 9 Apr 2002 08:43:43 +0000 (08:43 +0000)]
"dissect_frame()" is now static; don't declare it in "packet-frame.h".

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

22 years agoMove the definition of the FROM_DCE bit in the "flags" field of a
guy [Tue, 9 Apr 2002 08:15:04 +0000 (08:15 +0000)]
Move the definition of the FROM_DCE bit in the "flags" field of a
"struct x25_phdr" to "wiretap/wtap.h".

Have two X.25 dissectors, one of which assumes that there's a "struct
x25_phdr" pseudo-header and one of which doesn't; the former uses the
information in that pseudo-header to determine whether the packet is
DTE->DCE or DCE->DTE, and the latter assumes it has no clue whether the
packet is DTE->DCE or DCE->TDE.  Use the former one in the LAPB
dissector, and the latter one in the XOT dissector and in the LLC
dissector table.

In the X.25-over-TCP dissector, handle multiple X.25 packets per TCP
segment, and handle X.25 packets split across TCP segments.

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

22 years agoGet rid of the extra "Header" entry, putting the tree back the way it
guy [Tue, 9 Apr 2002 06:02:24 +0000 (06:02 +0000)]
Get rid of the extra "Header" entry, putting the tree back the way it
was.

Get rid of variables unused as a result.

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

22 years agoDecode FORM_1 and FORM_REL flag values as value_strings.
tpot [Tue, 9 Apr 2002 04:41:40 +0000 (04:41 +0000)]
Decode FORM_1 and FORM_REL flag values as value_strings.

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

22 years agoMore static-ization.
gram [Mon, 8 Apr 2002 20:30:56 +0000 (20:30 +0000)]
More static-ization.

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

22 years agoMore static-ization. In util.c, I commented out the ASCII-to-EBCDIC
gram [Mon, 8 Apr 2002 20:23:55 +0000 (20:23 +0000)]
More static-ization. In util.c, I commented out the ASCII-to-EBCDIC
functions, until that time that we need them.

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

22 years agoMake some variables and functions static.
gram [Mon, 8 Apr 2002 20:11:31 +0000 (20:11 +0000)]
Make some variables and functions static.

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

22 years agoFrom Michael Tuexen:
guy [Mon, 8 Apr 2002 19:18:11 +0000 (19:18 +0000)]
From Michael Tuexen:

- fix a bug with the LI field
- remove some out of date comments
- remove some unnecessary #includes

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

22 years ago"expand_tree()" and "collapse_tree()" can be called on leaf nodes, so
guy [Mon, 8 Apr 2002 19:10:09 +0000 (19:10 +0000)]
"expand_tree()" and "collapse_tree()" can be called on leaf nodes, so
don't blow up if "finfo->tree_type" is -1, just don't expand anything.

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

22 years agoNote the AiroPeek support in the message for the file type.
guy [Mon, 8 Apr 2002 17:42:40 +0000 (17:42 +0000)]
Note the AiroPeek support in the message for the file type.

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

22 years agoFrom Scott Renfro: remove unused "pinfo" arguments.
guy [Mon, 8 Apr 2002 10:05:19 +0000 (10:05 +0000)]
From Scott Renfro: remove unused "pinfo" arguments.

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

22 years agoThe length passed into "seek_read" routines is the length supplied by
guy [Mon, 8 Apr 2002 10:01:26 +0000 (10:01 +0000)]
The length passed into "seek_read" routines is the length supplied by
the "read" routine, which means it's already had any end-of-frame
padding/FCS removed; we don't need to remove it in the "seek_read"
routine.

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

22 years agoUse WTAP_ENCAP_IEEE_802_11_WITH_RADIO for AiroPeek files, rather than
guy [Mon, 8 Apr 2002 09:44:42 +0000 (09:44 +0000)]
Use WTAP_ENCAP_IEEE_802_11_WITH_RADIO for AiroPeek files, rather than
having a special encapsulation type for AiroPeek files.

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

22 years agoAdd an encapsulation type for "802.11 with radio information"; that type
guy [Mon, 8 Apr 2002 09:09:49 +0000 (09:09 +0000)]
Add an encapsulation type for "802.11 with radio information"; that type
returns radio information such as signal strength, channel, and data
rate in a pseudo-header.  Add that pseudo-header.

Use the "802.11 with radio information" encapsulation type for Wireless
Sniffer files; extract the radio information from where it appears to be
in the header.

Add dissector code for that encapsulation type.

Fix an error in the code to put radio information into the AiroPeek
tree.

Make the "wrapped" flag for NetXRay/Windows Sniffer captures a
"gboolean".

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

22 years agoFix the transparency on each 16-color image in ethereal.ico.
gerald [Mon, 8 Apr 2002 02:18:14 +0000 (02:18 +0000)]
Fix the transparency on each 16-color image in ethereal.ico.

Add our own checkbox images to the NSIS installer.

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

22 years agoFrom Joerg Mayer; get rid of unused arguments, and make some variables
guy [Mon, 8 Apr 2002 02:13:36 +0000 (02:13 +0000)]
From Joerg Mayer; get rid of unused arguments, and make some variables
not used outside "packet-beep.c" static.

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

22 years agoYes, that stuff really *does* appear to be just padding. Go figure.
guy [Mon, 8 Apr 2002 02:11:24 +0000 (02:11 +0000)]
Yes, that stuff really *does* appear to be just padding.  Go figure.

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

22 years agoGet rid of an unused variable.
guy [Mon, 8 Apr 2002 02:02:27 +0000 (02:02 +0000)]
Get rid of an unused variable.

Don't register the PFLOG dissector by name; it's only called through the
"wtap_encap" dissector table.

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

22 years agoIf variables are used only if "HAVE_UCD_SNMP" is undefined, declare them
guy [Mon, 8 Apr 2002 01:55:05 +0000 (01:55 +0000)]
If variables are used only if "HAVE_UCD_SNMP" is undefined, declare them
only if "HAVE_UCD_SNMP" is undefined.

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

22 years agoClean up the "Use zlib library" message.
guy [Mon, 8 Apr 2002 01:39:02 +0000 (01:39 +0000)]
Clean up the "Use zlib library" message.

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

22 years agoReplace "--enable-zlib" with "--with-zlib", and have it take an optional
guy [Mon, 8 Apr 2002 01:34:39 +0000 (01:34 +0000)]
Replace "--enable-zlib" with "--with-zlib", and have it take an optional
"=DIR" argument to specify the directory in subdirectories of which
zlib's headers and libraries can be found.

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

22 years agoA devicemode contains a uint32 at the start which represents the size of
tpot [Mon, 8 Apr 2002 00:27:36 +0000 (00:27 +0000)]
A devicemode contains a uint32 at the start which represents the size of
the structure.

Fixed an off by one but in displaying the device mode in a PRINTER_INFO_2
structure.

The devicemode in a devicemode container is not a deferred pointer but
rather occurs immediately after the pointer if it is non-NULL.

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

22 years agoGet rid of the unused hf_ value "hf_isis_hello_clv_restart".
guy [Sun, 7 Apr 2002 23:39:00 +0000 (23:39 +0000)]
Get rid of the unused hf_ value "hf_isis_hello_clv_restart".

Use the "tree_id" argument to "isis_dissect_mt_clv()" for the 2-byte MT
IDs, and arrange that the two hf_ values passed as that argument
actually be defined for protocol fields.

Fix the loop in "isis_dissect_mt_clv()" so that it actually catches an
odd byte at the end (i.e., loop until there is data at all, not until
there is 1 or fewer bytes), and put that odd byte, if it exists, into
the tree as a 1-byte text item, not a 2-byte text item.

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

22 years agoGet rid of unused "pinfo" arguments.
guy [Sun, 7 Apr 2002 22:36:55 +0000 (22:36 +0000)]
Get rid of unused "pinfo" arguments.

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

22 years agoGet rid of unused "pinfo" arguments.
guy [Sun, 7 Apr 2002 22:00:34 +0000 (22:00 +0000)]
Get rid of unused "pinfo" arguments.

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

22 years agoGet rid of the unused "pinfo" argument to "dissect_osi_options()".
guy [Sun, 7 Apr 2002 21:54:48 +0000 (21:54 +0000)]
Get rid of the unused "pinfo" argument to "dissect_osi_options()".

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

22 years agoGet rid of an unused variable.
guy [Sun, 7 Apr 2002 21:47:50 +0000 (21:47 +0000)]
Get rid of an unused variable.

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

22 years agoGerald says the padding has values that don't look like FCSes; note that
guy [Sun, 7 Apr 2002 21:44:55 +0000 (21:44 +0000)]
Gerald says the padding has values that don't look like FCSes; note that
in the comment.

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

22 years agoMake the end-of-packet padding a per-capture-file property.
guy [Sun, 7 Apr 2002 21:29:01 +0000 (21:29 +0000)]
Make the end-of-packet padding a per-capture-file property.

Read in the entire packet, including the padding, and just tell our
caller about the non-padding part; that avoids doing a "file_seek()"
("fseek()"s are inefficient on some platforms, as they flush the
standard I/O buffers and do an "lseek()"), and would also let us supply
the padding to the caller if it turns out it's an FCS rather than
padding.

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

22 years agoAdd support for Sniffer 4.6 wireless captures.
gerald [Sun, 7 Apr 2002 19:10:10 +0000 (19:10 +0000)]
Add support for Sniffer 4.6 wireless captures.

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

22 years agoGet rid of the global variable referring to the current protocol tree;
guy [Fri, 5 Apr 2002 20:04:52 +0000 (20:04 +0000)]
Get rid of the global variable referring to the current protocol tree;
pass it as a parameter, instead.

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

22 years agoGive all subtrees an ett_ value.
guy [Fri, 5 Apr 2002 10:08:24 +0000 (10:08 +0000)]
Give all subtrees an ett_ value.

Clean up some case statements - instead of having most branches do
"return 0", and the default branch just break, with code after the case
statement handing that case and then returning 0, pull the code after
the case statement into the default case, and have the other cases just
break, with the "return 0" after the case statement.

Initialize some ett_ values that weren't getting initialized.

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

22 years agoGive the top-level tree for concatenated PDUs an ett_ value of ett_wtp.
guy [Fri, 5 Apr 2002 09:29:15 +0000 (09:29 +0000)]
Give the top-level tree for concatenated PDUs an ett_ value of ett_wtp.

Create a protocol tree item for the fixed part of the WTP header.

Don't assign the value of "proto_tree_add_XXX" routines to a variable if
you're not going to use the value.

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

22 years agoDecode some bits of the PRINTER_INFO_2 structure that we were missing
tpot [Fri, 5 Apr 2002 03:07:28 +0000 (03:07 +0000)]
Decode some bits of the PRINTER_INFO_2 structure that we were missing
before.

Display which info level a getprinter response contains in COL_INFO.

Fixed some bugs in dissecting devicemodes - the device name and form name
live in a 64-byte buffer instead of a NULL terminated unicode string.

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

22 years agoAdd ett_ values for subtrees.
guy [Thu, 4 Apr 2002 23:54:55 +0000 (23:54 +0000)]
Add ett_ values for subtrees.

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

22 years agoFrom Mark Burton: add an ett_iscsi ett_ value for the top-level tree
guy [Thu, 4 Apr 2002 23:24:09 +0000 (23:24 +0000)]
From Mark Burton: add an ett_iscsi ett_ value for the top-level tree
item.

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

22 years agoPut in the RFCs for RIPv1 and RIPv2.
guy [Thu, 4 Apr 2002 23:20:33 +0000 (23:20 +0000)]
Put in the RFCs for RIPv1 and RIPv2.

Handle an address family of 0; that means that the address wasn't
specified in the request, which is used for a "send me the whole routing
table" request.

Replace some "proto_tree_add_XXX" calls with "proto_tree_add_item"
calls.

Use FALSE, rather than TRUE, as the byte order argument in one
"proto_tree_add_item" call, for consistency with other calls; the field
is a string, so the byte order doesn't matter.

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

22 years agoBefore putting an item into a protocol tree, make sure the item above
guy [Thu, 4 Apr 2002 20:23:50 +0000 (20:23 +0000)]
Before putting an item into a protocol tree, make sure the item above
it, if it's going to be displayed (i.e., if it's not the root node), has
had an ett_ value associated with it.

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

22 years agoCompile fix from Mark Burton.
guy [Thu, 4 Apr 2002 10:20:24 +0000 (10:20 +0000)]
Compile fix from Mark Burton.

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

22 years agoMake "dissect_data()" static - it's only called through handles.
guy [Thu, 4 Apr 2002 05:16:15 +0000 (05:16 +0000)]
Make "dissect_data()" static - it's only called through handles.

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

22 years agoAdd _U_ to unused argument.
gram [Thu, 4 Apr 2002 03:52:47 +0000 (03:52 +0000)]
Add _U_ to unused argument.

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

22 years agoRemove unused variable.
gram [Thu, 4 Apr 2002 03:51:39 +0000 (03:51 +0000)]
Remove unused variable.

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

22 years agoInclude "packet-smb-common.h" to get the declaration of
guy [Thu, 4 Apr 2002 00:56:06 +0000 (00:56 +0000)]
Include "packet-smb-common.h" to get the declaration of
"dissect_nt_sec_desc()".

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

22 years agoDecode PRINTER_INFO_1 and PRINTER_INFO_3 structures.
tpot [Wed, 3 Apr 2002 23:32:23 +0000 (23:32 +0000)]
Decode PRINTER_INFO_1 and PRINTER_INFO_3 structures.

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

22 years agoUse the reported length, not the captured length, when saying how many
guy [Wed, 3 Apr 2002 22:35:08 +0000 (22:35 +0000)]
Use the reported length, not the captured length, when saying how many
bytes of FTP data there were in the frame.

Use -1 for the length in the top-level item for the FTP data.

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

22 years agoRemoved many senseless pinfo parameters in RPC dissection and the layers above.
girlich [Wed, 3 Apr 2002 13:24:13 +0000 (13:24 +0000)]
Removed many senseless pinfo parameters in RPC dissection and the layers above.

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

22 years agoFrom Jeff Morriss: get rid of an unused function argument.
guy [Tue, 2 Apr 2002 22:42:11 +0000 (22:42 +0000)]
From Jeff Morriss: get rid of an unused function argument.

Use -1 rather than "tvb_length(tvb)" as the length for the top-level
protocol item.

Don't initialize "sccp_item" - it's not used if "tree" is null.

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

22 years agoFrom Tom Uijldert: comment out an unused function.
guy [Tue, 2 Apr 2002 20:16:19 +0000 (20:16 +0000)]
From Tom Uijldert: comment out an unused function.

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

22 years agocode cleanup: removed unused parameter
girlich [Tue, 2 Apr 2002 06:29:48 +0000 (06:29 +0000)]
code cleanup: removed unused parameter

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

22 years agocode cleanup, removed unused parameters, inserted some _U_
girlich [Tue, 2 Apr 2002 06:28:16 +0000 (06:28 +0000)]
code cleanup, removed unused parameters, inserted some _U_

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

22 years agoAdd in the neighbor probe messages (but without any dissection of the
guy [Tue, 2 Apr 2002 05:12:12 +0000 (05:12 +0000)]
Add in the neighbor probe messages (but without any dissection of the
Neighbors 2 message).

Get rid of the unused "hf_naddr" field.

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

22 years agoIn the tree-printing code, we may be handed a leaf node, so don't
guy [Tue, 2 Apr 2002 05:07:36 +0000 (05:07 +0000)]
In the tree-printing code, we may be handed a leaf node, so don't
require that "fi->tree_type" be positive.

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

22 years agoFix a typo.
guy [Tue, 2 Apr 2002 01:34:15 +0000 (01:34 +0000)]
Fix a typo.

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

22 years agoFix a bunch of bits of code that used "tvb_get_ntohl()" to fetch IP
guy [Tue, 2 Apr 2002 01:32:46 +0000 (01:32 +0000)]
Fix a bunch of bits of code that used "tvb_get_ntohl()" to fetch IP
addresses and then tried to compensate for that error using "htonl()"
(or didn't bother compensating, in some cases).

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

22 years agoUse "tvb_memcpy()", not "tvb_get_ptr()" followed by "memcpy()".
guy [Tue, 2 Apr 2002 01:32:11 +0000 (01:32 +0000)]
Use "tvb_memcpy()", not "tvb_get_ptr()" followed by "memcpy()".

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

22 years agoFix a call to "proto_tree_add_ipv4()" that was supposed to be a call to
guy [Tue, 2 Apr 2002 01:28:14 +0000 (01:28 +0000)]
Fix a call to "proto_tree_add_ipv4()" that was supposed to be a call to
"proto_tree_add_item()".

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

22 years agoJust use "proto_tree_add_item()" to add IP addresses - don't bother
guy [Tue, 2 Apr 2002 01:25:08 +0000 (01:25 +0000)]
Just use "proto_tree_add_item()" to add IP addresses - don't bother
copying to a variable and then using that.

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

22 years agoGet rid of unused macro.
guy [Tue, 2 Apr 2002 00:18:53 +0000 (00:18 +0000)]
Get rid of unused macro.

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

22 years agoGet rid of declarations of routines and structures and function types
guy [Tue, 2 Apr 2002 00:04:18 +0000 (00:04 +0000)]
Get rid of declarations of routines and structures and function types
that we no longer use as of 0.9.0 (when we got rid of support for
non-tvbuffified dissectors).

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

22 years agoMake some routines not used outside "packet-rpc.c" static.
guy [Mon, 1 Apr 2002 23:56:41 +0000 (23:56 +0000)]
Make some routines not used outside "packet-rpc.c" static.

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

22 years agoUse "proto_tree_add_item()" to add IP addresses; that eliminates a bunch
guy [Mon, 1 Apr 2002 22:40:20 +0000 (22:40 +0000)]
Use "proto_tree_add_item()" to add IP addresses; that eliminates a bunch
of work *and* gets rid of the incorrect "convert from network to host
byte order and then byte-swap" code.

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