metze/wireshark/wip.git
21 years agoA small fix to NFSv4 to properly decode the secinfo response array, the array
Richard Sharpe [Thu, 22 May 2003 21:37:54 +0000 (21:37 -0000)]
A small fix to NFSv4 to properly decode the secinfo response array, the array
of secinfo flavors returned.

svn path=/trunk/; revision=7717

21 years agoPut in some missing contributor addresses.
Guy Harris [Thu, 22 May 2003 20:33:04 +0000 (20:33 -0000)]
Put in some missing contributor addresses.

svn path=/trunk/; revision=7716

21 years agoA small fix to packet-rpc.c noticed by Tony Schene.
Richard Sharpe [Thu, 22 May 2003 17:11:18 +0000 (17:11 -0000)]
A small fix to packet-rpc.c noticed by Tony Schene.
Fixes a mistake I introduced ...

I am still seeing malformed packets on secinfo stuff, which I hope to fix
soon.

svn path=/trunk/; revision=7715

21 years agoremove unused include that was added by mistake
Ronnie Sahlberg [Thu, 22 May 2003 11:58:54 +0000 (11:58 -0000)]
remove unused include that was added by mistake

svn path=/trunk/; revision=7714

21 years agoAdd snooping of sid->domain mapping from POLICY_ACCOUNT_DOMAIN_INFO structures
Ronnie Sahlberg [Thu, 22 May 2003 11:48:28 +0000 (11:48 -0000)]
Add snooping of sid->domain mapping from POLICY_ACCOUNT_DOMAIN_INFO structures

svn path=/trunk/; revision=7713

21 years agomake dissect_nt_sid() return a sid string that also contains the proper name for...
Ronnie Sahlberg [Thu, 22 May 2003 11:32:06 +0000 (11:32 -0000)]
make dissect_nt_sid() return a sid string that also contains the proper name for the sid.
this prettifies some dcerpc interfaces

svn path=/trunk/; revision=7712

21 years agoRearrange sid snooping a bit.
Ronnie Sahlberg [Thu, 22 May 2003 11:03:15 +0000 (11:03 -0000)]
Rearrange sid snooping a bit.
Add snooping of sid->domain mapping for POLICY_DNS_DOMAIN_INFO

svn path=/trunk/; revision=7711

21 years ago Update with J Bruce Field's changes to support RPCSEC_GSS.
Richard Sharpe [Thu, 22 May 2003 05:49:23 +0000 (05:49 -0000)]
  Update with J Bruce Field's changes to support RPCSEC_GSS.

svn path=/trunk/; revision=7710

21 years agoMake one QIP infolevel specify a sid hf field and update the embryonic sid snooping...
Ronnie Sahlberg [Wed, 21 May 2003 10:39:19 +0000 (10:39 -0000)]
Make one QIP infolevel specify a sid hf field and update the embryonic sid snooping framework to handle the new hw name

svn path=/trunk/; revision=7709

21 years agoChange the interface to dissect_nt_sid so that we can provide a hf field to use
Ronnie Sahlberg [Wed, 21 May 2003 10:16:10 +0000 (10:16 -0000)]
Change the interface to dissect_nt_sid so that we can provide a hf field to use
to describe the sid instead of the default smb.sid one

svn path=/trunk/; revision=7708

21 years agoChange the interface to dissect_ndr_nt_SID to take the extra parameter hf_sid
Ronnie Sahlberg [Wed, 21 May 2003 10:06:29 +0000 (10:06 -0000)]
Change the interface to dissect_ndr_nt_SID to take the extra parameter hf_sid
if the caller wants something else instead of "smb.sid"

svn path=/trunk/; revision=7707

21 years agoChange the interface to dissect_ndr_nt_PSID to take one extra parameter which if...
Ronnie Sahlberg [Wed, 21 May 2003 09:34:54 +0000 (09:34 -0000)]
Change the interface to dissect_ndr_nt_PSID to take one extra parameter which if !=-1 is a hf field for the sid  to use instead of the default smb.sid one.

svn path=/trunk/; revision=7706

21 years agoIf the reported length of the TCP packet is less than the TCP header
Guy Harris [Wed, 21 May 2003 06:28:03 +0000 (06:28 -0000)]
If the reported length of the TCP packet is less than the TCP header
length, we can't get the segment length (although we can at least try to
dissect the header).  If that's the case, put in Ronnie's "short
segment" note.

Also, put into the information we pass to TCP taps an indication of
whether the segment length is valid or not.

svn path=/trunk/; revision=7705

21 years agoIf we're inside an error packet, don't assume we know the length of the
Guy Harris [Wed, 21 May 2003 05:57:24 +0000 (05:57 -0000)]
If we're inside an error packet, don't assume we know the length of the
TCP segment, as we might not have the entire segment.

svn path=/trunk/; revision=7704

21 years agoIf we were handed a fragmented packet, don't do anything that depends on
Guy Harris [Wed, 21 May 2003 05:43:27 +0000 (05:43 -0000)]
If we were handed a fragmented packet, don't do anything that depends on
knowing the actual length of the packet, as we don't know that length
(IP fragments don't contain the length of the full packet - you don't
know how big the reassembled packet is until you reassemble it).

We don't have to worry about dissecting the TCP header in them, though.

svn path=/trunk/; revision=7703

21 years agoMake dissect_rpc_opaque_data available and allow it to take a dissection
Richard Sharpe [Wed, 21 May 2003 02:48:40 +0000 (02:48 -0000)]
Make dissect_rpc_opaque_data available and allow it to take a dissection
routine ...

I am not happy with the signature for it as yet, though.

svn path=/trunk/; revision=7702

21 years agoFrom Miha Jemec: clean up and simplify the RTP dissector and tap code.
Guy Harris [Tue, 20 May 2003 21:22:59 +0000 (21:22 -0000)]
From Miha Jemec: clean up and simplify the RTP dissector and tap code.

svn path=/trunk/; revision=7701

21 years agoLump TCPIPtrace and UCX$TRACE together and add TCPtrace to the mix.
Guy Harris [Tue, 20 May 2003 20:26:05 +0000 (20:26 -0000)]
Lump TCPIPtrace and UCX$TRACE together and add TCPtrace to the mix.

svn path=/trunk/; revision=7700

21 years agoFrom Martin Warnes: fix to check the "XXXtrace" part of the per-packet
Guy Harris [Tue, 20 May 2003 20:17:03 +0000 (20:17 -0000)]
From Martin Warnes: fix to check the "XXXtrace" part of the per-packet
line, not the "RCV packet" part, so that we recognize files even if they
don't have an "RCV packet" line in the first 200 lines.

svn path=/trunk/; revision=7699

21 years agoDo not decode the full tcp header if the reported length is less than 20
Ronnie Sahlberg [Tue, 20 May 2003 10:14:20 +0000 (10:14 -0000)]
Do not decode the full tcp header if the reported length is less than 20
or the reported tcp header length.
This is probably caused either by a very very short capture length or by
nmap or someone playing firewall fragment games to the tcp flags field.

svn path=/trunk/; revision=7698

21 years agoClean "dissect_rpc_opaque_data()" up a bit; for example, there's no need
Guy Harris [Tue, 20 May 2003 07:56:46 +0000 (07:56 -0000)]
Clean "dissect_rpc_opaque_data()" up a bit; for example, there's no need
to do a "proto_tree_add_string_hidden()" to add the string data to the
protocol tree, given that we explicitly add it as a non-hidden item
(regardless of whether it's string data or binary data).

svn path=/trunk/; revision=7697

21 years agoFix even more indentation.
Guy Harris [Tue, 20 May 2003 07:38:55 +0000 (07:38 -0000)]
Fix even more indentation.

svn path=/trunk/; revision=7696

21 years agoFix more indentation.
Guy Harris [Tue, 20 May 2003 07:37:37 +0000 (07:37 -0000)]
Fix more indentation.

svn path=/trunk/; revision=7695

21 years agoFix indentation.
Guy Harris [Tue, 20 May 2003 07:35:09 +0000 (07:35 -0000)]
Fix indentation.

svn path=/trunk/; revision=7694

21 years agoTimo Sirainen pointed out a few problems with string handling in the
Gerald Combs [Tue, 20 May 2003 03:01:21 +0000 (03:01 -0000)]
Timo Sirainen pointed out a few problems with string handling in the
BGP code.  Replace many strings with GStrings.

svn path=/trunk/; revision=7693

21 years agoFrom Martin Warnes: support for VMS UCX$TRACE output in wiretap.
Guy Harris [Mon, 19 May 2003 20:58:18 +0000 (20:58 -0000)]
From Martin Warnes: support for VMS UCX$TRACE output in wiretap.

svn path=/trunk/; revision=7692

21 years agoFrom Motonori Shindo: update to support
Guy Harris [Mon, 19 May 2003 20:36:49 +0000 (20:36 -0000)]
From Motonori Shindo: update to support
draft-ietf-idr-bgp-ext-communities rather than
draft-ramachandra-bgp-ext-communities, and get rid of unused
MAX_SIZE_OF_EXT_COM_NAMES #define.

svn path=/trunk/; revision=7691

21 years agoFrom Olivier Biot: fix incorrect tvbuff definition in the WTP PDU
Guy Harris [Mon, 19 May 2003 20:23:29 +0000 (20:23 -0000)]
From Olivier Biot: fix incorrect tvbuff definition in the WTP PDU
concatenation situation.  Now the WSP dissector wanting to display the
entire PDU will stick to the sub-tvbuff boundaries in the data highlight
pane.

svn path=/trunk/; revision=7690

21 years agoFix a -z io,users,ip calculations bug.
Ronnie Sahlberg [Mon, 19 May 2003 11:16:29 +0000 (11:16 -0000)]
Fix a -z io,users,ip calculations bug.
stats were calculated for the wrong direction.

From Martin Visser

svn path=/trunk/; revision=7689

21 years agoMore tvb_get_nstringz0() fixes. Timo Sirainen pointed out that Bad
Gerald Combs [Mon, 19 May 2003 03:23:12 +0000 (03:23 -0000)]
More tvb_get_nstringz0() fixes.  Timo Sirainen pointed out that Bad
Things can happen if we pass a zero buffer length to tvb_get_nstringz0().
Throw an exception if this happens.

In various dissectors make sure the tvb_get_nstringz0()'s buffer length
is greater than zero.

svn path=/trunk/; revision=7688

21 years agoNote that the output format list is displayed by the "-h" flag.
Gerald Combs [Sat, 17 May 2003 17:05:12 +0000 (17:05 -0000)]
Note that the output format list is displayed by the "-h" flag.

svn path=/trunk/; revision=7687

21 years agoAdd the list of output file format specs to Tethereal's man page.
Gerald Combs [Sat, 17 May 2003 17:02:02 +0000 (17:02 -0000)]
Add the list of output file format specs to Tethereal's man page.

At some point we should probably add the list automatically, like we do
the filter fields.

svn path=/trunk/; revision=7686

21 years agoUpdate the tcp sequence analysis to understand and decode properly
Ronnie Sahlberg [Fri, 16 May 2003 10:35:19 +0000 (10:35 -0000)]
Update the tcp sequence analysis to understand and decode properly
the rather brilliant keep-alive packets solaris use.

Solaris does not do RFC793 keepalives at all, instead they do a quite
brilliant workalike that gies them reliable keepalives.

svn path=/trunk/; revision=7685

21 years agoTap SMB packets before we call the dissecotrs so that even if there
Ronnie Sahlberg [Fri, 16 May 2003 10:24:13 +0000 (10:24 -0000)]
Tap SMB packets before we call the dissecotrs so that even if there
is an exception (i.e. short packet) the tap listener will still
be alled.

svn path=/trunk/; revision=7684

21 years agoUpdates to the TODO list.
Guy Harris [Fri, 16 May 2003 01:12:55 +0000 (01:12 -0000)]
Updates to the TODO list.

svn path=/trunk/; revision=7683

21 years agoSquelch some compiler complaints.
Guy Harris [Fri, 16 May 2003 00:48:26 +0000 (00:48 -0000)]
Squelch some compiler complaints.

svn path=/trunk/; revision=7682

21 years agoFix a typo.
Guy Harris [Fri, 16 May 2003 00:34:33 +0000 (00:34 -0000)]
Fix a typo.

svn path=/trunk/; revision=7681

21 years agoNot all platforms have "u_int32_t"; use "guint32" instead.
Guy Harris [Fri, 16 May 2003 00:30:54 +0000 (00:30 -0000)]
Not all platforms have "u_int32_t"; use "guint32" instead.

svn path=/trunk/; revision=7680

21 years agoChange address for Tony Schene, at his request.
Guy Harris [Thu, 15 May 2003 22:11:15 +0000 (22:11 -0000)]
Change address for Tony Schene, at his request.

svn path=/trunk/; revision=7679

21 years agoImplement a ring buffer switch duration:
Laurent Deniel [Thu, 15 May 2003 13:40:20 +0000 (13:40 -0000)]
Implement a ring buffer switch duration:

when the new "Rotate capture file every n second(s)" checkbox or the
-b <# of file>[:<duration>] argument are used, [t]ethereal will skip to the
next ring buffer file if the specified duration has elapsed (even if the
specified capture size is not reached). This is useful when you want to have
separate capture files per hour or day for instance.

I let the autostop filesize parameter mandatory (i.e. the "rotate capture
file after n kilobytes") but this could be no longer strictly necessary when
that new feature is used ...

Another point: it might be interesting to really truncate the file at the
switch and not the closure ... According to user comments and my own real
case tests, I might plan to enhance this point and others (still ring buffer
related) in the future.

svn path=/trunk/; revision=7678

21 years agoFrom Richard Urwin:
Guy Harris [Thu, 15 May 2003 07:44:54 +0000 (07:44 -0000)]
From Richard Urwin:

add support for a system-wide color filter file;

fix a bug where "read_filters()" didn't close the file handle.

Use the "get_datafile_path()" routine he added to construct the pathname
of the Diameter directory, the global preferences file, and the manuf
file.

svn path=/trunk/; revision=7677

21 years agoFrom Can Erkin Acar: OpenBSD is now using tcpdump.org-assigned DLT_
Guy Harris [Thu, 15 May 2003 07:14:46 +0000 (07:14 -0000)]
From Can Erkin Acar: OpenBSD is now using tcpdump.org-assigned DLT_
value for DLT_PFLOG, and that goes along with a change to the link-layer
header for DLT_PFLOG - support both the old and new values and format.

svn path=/trunk/; revision=7676

21 years agoFrom Laurent Rabret:
Guy Harris [Thu, 15 May 2003 06:35:02 +0000 (06:35 -0000)]
From Laurent Rabret:

fix a bug where bad IPv4 and IPv6 prefix lengths could cause a
buffer overflow;

check the checksum in LSP packets.

svn path=/trunk/; revision=7675

21 years agoFrom Didier Gautheron: add the right decoding for AFP3.1 FPCatSearchExt
Guy Harris [Thu, 15 May 2003 05:53:43 +0000 (05:53 -0000)]
From Didier Gautheron: add the right decoding for AFP3.1 FPCatSearchExt
call.

svn path=/trunk/; revision=7674

21 years agoFix the call that adds the local preference to the tree.
Guy Harris [Thu, 15 May 2003 05:35:42 +0000 (05:35 -0000)]
Fix the call that adds the local preference to the tree.

svn path=/trunk/; revision=7673

21 years agoMove the value_string of platform ID values to "packet-dcerpc-nt.c", and
Guy Harris [Thu, 15 May 2003 05:24:19 +0000 (05:24 -0000)]
Move the value_string of platform ID values to "packet-dcerpc-nt.c", and
declare it in "packet-dcerpc-nt.h", as it's used both by the srvsvc and
wkssvc dissectors.

svn path=/trunk/; revision=7672

21 years ago"tvb_get_nstringz0()" now expects, as an argument, a value 1 greater
Guy Harris [Thu, 15 May 2003 05:18:17 +0000 (05:18 -0000)]
"tvb_get_nstringz0()" now expects, as an argument, a value 1 greater
than the number of bytes to copy, as the value includes the terminating
'\0' added on.

svn path=/trunk/; revision=7671

21 years agoMove dissection of NETLOGON secure channel auth verifier into
Tim Potter [Thu, 15 May 2003 04:58:53 +0000 (04:58 -0000)]
Move dissection of NETLOGON secure channel auth verifier into
packet-dcerpc-netlogon.c

svn path=/trunk/; revision=7670

21 years agoMore work on dissecting generic and standard mappings for NT access masks.
Tim Potter [Thu, 15 May 2003 02:15:13 +0000 (02:15 -0000)]
More work on dissecting generic and standard mappings for NT access masks.

Also, it turns out that there are three types of specific access permissions
for printing - printer, print server and job specific bits.

svn path=/trunk/; revision=7669

21 years agoMore work on dissecting generic and standard mappings for NT access masks.
Tim Potter [Thu, 15 May 2003 02:14:00 +0000 (02:14 -0000)]
More work on dissecting generic and standard mappings for NT access masks.

svn path=/trunk/; revision=7668

21 years agoDissect authentication data for netlogon secure channel bind and bind acks.
Tim Potter [Thu, 15 May 2003 02:01:39 +0000 (02:01 -0000)]
Dissect authentication data for netlogon secure channel bind and bind acks.

svn path=/trunk/; revision=7667

21 years agoDissect authentication data for netlogon secure channel bind and bind acks.
Tim Potter [Thu, 15 May 2003 01:59:23 +0000 (01:59 -0000)]
Dissect authentication data for netlogon secure channel bind and bind acks.

Also, recommit a change lost in the hardware failure which was to note the
type of a DCE/RPC fragment when noting it in COL_INFO.  A fragment can be
either a first, middle, last or whole (first+last) fragment.

svn path=/trunk/; revision=7666

21 years agoRe-commit stuff that was lost...
Richard Sharpe [Wed, 14 May 2003 22:09:52 +0000 (22:09 -0000)]
Re-commit stuff that was lost...

This contains an initial break-out of the verifier for secure-channel and
maybe more ...

svn path=/trunk/; revision=7665

21 years agoA correct programming practice is to save errno and restore its value
Laurent Deniel [Wed, 14 May 2003 10:31:15 +0000 (10:31 -0000)]
A correct programming practice is to save errno and restore its value
in all signal handlers that could modify it (i.e. by calling system
calls or worst standard C library functions).

Else the following code for instance is buggy if a signal arises between
the tests:

if (system_call() == -1) {
  if (errno == Exxx) {
   ...
  } else {
   ...
  }
}

And MANY (open source or not) programs are broken that way ...

svn path=/trunk/; revision=7664

21 years ago"tvb_get_nstringz0()" now expects its third argument to be the maximum
Guy Harris [Sun, 11 May 2003 02:40:36 +0000 (02:40 -0000)]
"tvb_get_nstringz0()" now expects its third argument to be the maximum
number of bytes to put into the string, including the trailing '\0', not
the maximum number of real characters in the string; fix the call
appropriately (and make the buffer big enough to hold a null-terminated
string with MAX_BUDDYNAME_LENGTH characters).

svn path=/trunk/; revision=7663

21 years agoFrom Graeme Hewson: fix "eth_hdr" to put the destination and source
Guy Harris [Sun, 11 May 2003 01:12:33 +0000 (01:12 -0000)]
From Graeme Hewson: fix "eth_hdr" to put the destination and source
addresses in the right order.

svn path=/trunk/; revision=7662

21 years agoHave "dissect_ndr_cvstring()" set the length of the top-level item to
Guy Harris [Sat, 10 May 2003 02:29:44 +0000 (02:29 -0000)]
Have "dissect_ndr_cvstring()" set the length of the top-level item to
cover all the parts of the item, rather than just making it be 0.

svn path=/trunk/; revision=7661

21 years agoA quantity dissected as 6 unknown bytes in a logon reply actually
Guy Harris [Sat, 10 May 2003 02:15:04 +0000 (02:15 -0000)]
A quantity dissected as 6 unknown bytes in a logon reply actually
appears to be a 4-byte aligned quantity, with the other 2 bytes
presumably seen by whoever added the code to dissect those 6 bytes
being, most likely, padding to align the 4-byte quantity.

svn path=/trunk/; revision=7660

21 years agoExpand some comments.
Guy Harris [Sat, 10 May 2003 02:00:41 +0000 (02:00 -0000)]
Expand some comments.

Do the "tvb_ensure_bytes_exist()" check, and the check for a zero-length
bit string, in the code to process a bit string.

svn path=/trunk/; revision=7659

21 years agoUse "tvb_ensure_bytes_exist()" to cause an exception to be thrown
Guy Harris [Sat, 10 May 2003 01:57:53 +0000 (01:57 -0000)]
Use "tvb_ensure_bytes_exist()" to cause an exception to be thrown
*before* attempting to allocate a buffer for a string, if the copy into
the buffer will thrown an exception; that prevents us from

1) leaking memory if we can allocate the buffer (we'd throw an
   exception before we freed the buffer);

2) crashing if we can't allocate the buffer because the length
   is bogus and large.

svn path=/trunk/; revision=7658

21 years agoDissect a ntlmv2 response if found in a samlogon request.
Tim Potter [Fri, 9 May 2003 01:46:13 +0000 (01:46 -0000)]
Dissect a ntlmv2 response if found in a samlogon request.

svn path=/trunk/; revision=7657

21 years agoAdd a dissect_ndr_counted_byte_array_cb function which can take a callback
Tim Potter [Fri, 9 May 2003 01:43:59 +0000 (01:43 -0000)]
Add a dissect_ndr_counted_byte_array_cb function which can take a callback
to call when dissecting the array data.

svn path=/trunk/; revision=7656

21 years agoMove the ntlmv2 response dissection out of packet-ntlmssp.c and in to
Tim Potter [Fri, 9 May 2003 01:41:28 +0000 (01:41 -0000)]
Move the ntlmv2 response dissection out of packet-ntlmssp.c and in to
packet-smb-common.c so it can be used elsewhere.

Dissect a ntlmv2 response in a session setup SMB if detected.

svn path=/trunk/; revision=7655

21 years agoBased on a patch from Jean-Baptiste Marchand, mark stub data as
Guy Harris [Thu, 8 May 2003 19:26:08 +0000 (19:26 -0000)]
Based on a patch from Jean-Baptiste Marchand, mark stub data as
encrypted if appropriate; this change adds a "show_stub_data()" to
handle that, and that routine also cleans up the stub data display a bit
in some other ways.

svn path=/trunk/; revision=7654

21 years agoFrom Olivier Biot: fix WTP sub-PDU size presentation in the protocol
Guy Harris [Thu, 8 May 2003 18:49:20 +0000 (18:49 -0000)]
From Olivier Biot: fix WTP sub-PDU size presentation in the protocol
tree (display size in decimal instead of the highlighted bytes).

svn path=/trunk/; revision=7653

21 years agoThe authentication data field in "simple password" authentication is 64
Guy Harris [Thu, 8 May 2003 10:16:31 +0000 (10:16 -0000)]
The authentication data field in "simple password" authentication is 64
bits, or 8 bytes; that means that, if it's to be interpreted as a
string, it should be extracted into an 8+1 byte buffer, leaving room for
a trailing '\0', and that means the buffer size argument to
"tvb_get_nstringz0()" should be 8+1 as well.

svn path=/trunk/; revision=7652

21 years agoFrom Olivier Biot:
Guy Harris [Thu, 8 May 2003 08:36:25 +0000 (08:36 -0000)]
From Olivier Biot:

* Add decoding of Basic authentication scheme for the Authorization
  and Proxy-Authorization headers, and create a summary line
  with proto_item_append_text().
* Update Warning header decoding: warn code mapping to warn text,
  and create a summary line with proto_item_append_text().

svn path=/trunk/; revision=7651

21 years agoFrom Stephen Shelley: the unit ID and function code fields in the Modbus
Guy Harris [Thu, 8 May 2003 00:42:28 +0000 (00:42 -0000)]
From Stephen Shelley: the unit ID and function code fields in the Modbus
header are unsigned - make them so.

While we're at it, make them "guint8" rather than "guchar", to make it
explicit that they're one byte long.

svn path=/trunk/; revision=7650

21 years agoFrom Olivier Biot: if we have PYTHON defined, use the Python script
Guy Harris [Thu, 8 May 2003 00:18:47 +0000 (00:18 -0000)]
From Olivier Biot: if we have PYTHON defined, use the Python script
rather than the shell script to make "register.c".

svn path=/trunk/; revision=7649

21 years agoWhoops - had that test reversed.
Tim Potter [Wed, 7 May 2003 07:12:50 +0000 (07:12 -0000)]
Whoops - had that test reversed.

svn path=/trunk/; revision=7648

21 years agoDon't try and dissect a zero length NTLM response as a NTLMv2 response.
Tim Potter [Wed, 7 May 2003 04:32:59 +0000 (04:32 -0000)]
Don't try and dissect a zero length NTLM response as a NTLMv2 response.

svn path=/trunk/; revision=7647

21 years agoParse a NTLMv2 response blob as documented in
Tim Potter [Wed, 7 May 2003 04:07:45 +0000 (04:07 -0000)]
Parse a NTLMv2 response blob as documented in
http://ubiqx.org/cifs/SMB.html#8, para 2.8.5.3

Convert some magic numbers to constants in dissect_ntlmssp_address_list()

svn path=/trunk/; revision=7646

21 years agoFrom Yaniv Kaul: show MBZ flags as either OK if 0 or incorrect if not 0.
Guy Harris [Wed, 7 May 2003 03:00:32 +0000 (03:00 -0000)]
From Yaniv Kaul: show MBZ flags as either OK if 0 or incorrect if not 0.

svn path=/trunk/; revision=7645

21 years agoDeclare "host_name_lookup_process()" regardless of whether HAVE_GNU_ADNS
Guy Harris [Mon, 5 May 2003 08:20:01 +0000 (08:20 -0000)]
Declare "host_name_lookup_process()" regardless of whether HAVE_GNU_ADNS
is defined (as it's defined, and called, regardless of whether
HAVE_GNU_ADNS is defined), and get rid of the extra declarations of the
ADNS support routines.

svn path=/trunk/; revision=7644

21 years agoFrom Yaniv Kaul: handle DNSSEC DO/OK bit in OPT pseudo-RR.
Guy Harris [Mon, 5 May 2003 08:14:31 +0000 (08:14 -0000)]
From Yaniv Kaul: handle DNSSEC DO/OK bit in OPT pseudo-RR.

svn path=/trunk/; revision=7643

21 years agoFrom Mark C. Brown:
Guy Harris [Mon, 5 May 2003 01:01:36 +0000 (01:01 -0000)]
From Mark C. Brown:

Following fixes for nettl (HP-UX):

1) Fixed 11.X timestamp issue
      there is no difference in 10.X/11.X timestamps, so no
      need to shift 11.X timestamps
2) Fixed NS_LS_DRIVER trace record handling
      now works rather than throwing "...network type that
      Ethereal doesn't support" error
3) Fixed handling of traces with sliced packets (nettl -m xx)
      now uses correct packet and capture lengths
4) Additional ethernet card support
      now handles btlan[1,3-6],gelan,igelan,intl100 driver
      trace records

svn path=/trunk/; revision=7642

21 years agoProvide stub versions of "host_name_lookup_init()",
Guy Harris [Mon, 5 May 2003 00:53:06 +0000 (00:53 -0000)]
Provide stub versions of "host_name_lookup_init()",
"host_name_lookup_process()", and "host_name_lookup_cleanup()" if we
don't have GNU ADNS, so that Ethereal compiles without GNU ADNS.

Declare the argument lists of "host_name_lookup_init()" and
"host_name_lookup_cleanup()" as empty, C89-style, rather than as
unknown.

svn path=/trunk/; revision=7641

21 years agoAdd support for asynchronous DNS updates using the GNU ADNS library.
Gerald Combs [Sun, 4 May 2003 18:50:56 +0000 (18:50 -0000)]
Add support for asynchronous DNS updates using the GNU ADNS library.
Support can be enabled at configure time by using "--with-adns=DIR".
If support is enabled, async queries happen whenever host name resolution
is enabled.  Do we need a separate preference for async queries?

Currently, only IPv4 reverse queries are supported.  I can add IPv4 forward
lookup support, but I don't have any way to test IPv6 queries.

svn path=/trunk/; revision=7640

21 years agoUpdated the version 06 of the ID support to version 08. Therefore versions
Michael Tüxen [Sun, 4 May 2003 09:43:49 +0000 (09:43 -0000)]
Updated the version 06 of the ID support to version 08. Therefore versions
02 and 08 are now supported.

svn path=/trunk/; revision=7639

21 years agofixed a bug in te handling of the message type field for version 06 of the ID.
Michael Tüxen [Sun, 4 May 2003 09:33:15 +0000 (09:33 -0000)]
fixed a bug in te handling of the message type field for version 06 of the ID.

svn path=/trunk/; revision=7638

21 years agoSNMP dissector enhancements:
Laurent Deniel [Sat, 3 May 2003 15:23:15 +0000 (15:23 -0000)]
SNMP dissector enhancements:

- display OID in info column

- preference added to disable such a display

- add new function new_format_oid to retrieve both
  decoded and non decoded OID strings

- add OID display filter for both decoded and non decoded strings

- add Error Status display filter

svn path=/trunk/; revision=7637

21 years agoAdd a note about the "val_to_string_repr" and "string_repr_len" for
Guy Harris [Sat, 3 May 2003 01:11:29 +0000 (01:11 -0000)]
Add a note about the "val_to_string_repr" and "string_repr_len" for
ftypes, and how to add them to more types and use them in more places.

svn path=/trunk/; revision=7636

21 years agoRename "proto_alloc_dfilter_string()" to
Guy Harris [Sat, 3 May 2003 00:48:37 +0000 (00:48 -0000)]
Rename "proto_alloc_dfilter_string()" to
"proto_construct_dfilter_string()", to more accurately reflect what it
does.

Give it, and "proto_can_match_selected()", an "epan_dissect_t *"
argument, which replaces the raw data pointer argument to
"proto_construct_dfilter_string()".

For fields that don't have a type we can directly filter on, we don't
support filtering on the field as raw data if:

the "epan_dissect_t *" argument is null;

the data source tvbuff for the field isn't the tvbuff for the
"epan_dissect_t" in question (i.e., it's in the result of a
reassembly, and "frame[N:M]" can't get at it).

Trim the length the raw data in the case of such a field to the length
of the tvbuff for the "epan_dissect_t" in question, so we don't go past
it.  Fetch the raw data bytes to match from that tvbuff.

Have "proto_construct_dfilter_string()" return a null pointer if it
can't construct the filter string, and have "protocolinfo_packet()" in
the tap-protocolinfo tap ignore a field if
"proto_construct_dfilter_string()" can't construct a filter string for
it - and have it pass NULL as the "epan_dissect_t *", for now.  If
somebody decides it makes sense to dump out a "frame[N:M] =" value for
non-registered fields, it can be changed to pass "edt".

svn path=/trunk/; revision=7635

21 years agoFrom Tony Schene: AUTH_GSSAPI support.
Guy Harris [Fri, 2 May 2003 21:58:23 +0000 (21:58 -0000)]
From Tony Schene: AUTH_GSSAPI support.

Replace "proto_item_set_len()" with "proto_item_set_end()", and get rid
of the "old_offset" variables the "proto_item_set_len()" calls required.

svn path=/trunk/; revision=7634

21 years agoFrom Greg Morris: change the endianness of CCFilehandle to match other
Guy Harris [Fri, 2 May 2003 21:26:47 +0000 (21:26 -0000)]
From Greg Morris: change the endianness of CCFilehandle to match other
NCP's.

svn path=/trunk/; revision=7633

21 years agoFinal changes for 0.9.12.
Gerald Combs [Fri, 2 May 2003 00:46:18 +0000 (00:46 -0000)]
Final changes for 0.9.12.

svn path=/trunk/; revision=7631

21 years agoFrom Jeff Morriss: clean up some column setting calls (as a result of
Guy Harris [Thu, 1 May 2003 21:42:56 +0000 (21:42 -0000)]
From Jeff Morriss: clean up some column setting calls (as a result of
the recent changes to use the column fence stuff?).

svn path=/trunk/; revision=7630

21 years agoFrom Jeff Morriss: fetch both bytes of the message type in V2 and V6
Guy Harris [Thu, 1 May 2003 21:38:43 +0000 (21:38 -0000)]
From Jeff Morriss: fetch both bytes of the message type in V2 and V6
headers.

svn path=/trunk/; revision=7629

21 years agoFrom Matthijs Melchior: don't export functions also implemented as
Guy Harris [Thu, 1 May 2003 21:10:43 +0000 (21:10 -0000)]
From Matthijs Melchior: don't export functions also implemented as
macros, and do export "except_pop()" and "except_setup_try()".

svn path=/trunk/; revision=7628

21 years agoFix up the name of NetWkstaUserEnum and add NetWkstaTransportEnum
Richard Sharpe [Thu, 1 May 2003 19:51:37 +0000 (19:51 -0000)]
Fix up the name of NetWkstaUserEnum and add NetWkstaTransportEnum

svn path=/trunk/; revision=7627

21 years agoFrom Olivier Biot:
Guy Harris [Thu, 1 May 2003 18:18:20 +0000 (18:18 -0000)]
From Olivier Biot:

* Support correct processing of code page switches
* Provide a new datatype containing scarce array of
  const value_string arrays (value_valuestring)
  allowing an efficient support for WBXML code pages.
* Minor fix (XML PI was always decoded without
  mapping known tokens)
* Add support for decoding of more WBXML content
  types (SyncML 1.0, SyncML 1.1, CHANNEL 1.0, EMN 1.0).

svn path=/trunk/; revision=7626

21 years agoFrom Jim McDonough: add names for some additional SAM messages.
Guy Harris [Thu, 1 May 2003 18:11:20 +0000 (18:11 -0000)]
From Jim McDonough: add names for some additional SAM messages.

svn path=/trunk/; revision=7625

21 years agoFrom Lars Roland: set "patable.p_asn1_string_decode" to point to
Guy Harris [Thu, 1 May 2003 18:05:27 +0000 (18:05 -0000)]
From Lars Roland: set "patable.p_asn1_string_decode" to point to
"asn1_string_decode()", not to "asn1_octet_string_decode()".

svn path=/trunk/; revision=7624

21 years agoSome more hacking to add NetWkstaTransportEnum recognition and fill in
Richard Sharpe [Thu, 1 May 2003 17:53:22 +0000 (17:53 -0000)]
Some more hacking to add NetWkstaTransportEnum recognition and fill in
the two holes with unknowns.

svn path=/trunk/; revision=7623

21 years agoBump the version number to 0.9.12. Make NEWS and ChangeLog current.
Gerald Combs [Thu, 1 May 2003 03:09:54 +0000 (03:09 -0000)]
Bump the version number to 0.9.12.  Make NEWS and ChangeLog current.

The next release will likely be tomorrow (May 1).

svn path=/trunk/; revision=7622

21 years agoAdded the OS/2 info levels. Now only go a few of the NT ones left. About 15.
Richard Sharpe [Thu, 1 May 2003 00:43:37 +0000 (00:43 -0000)]
Added the OS/2 info levels. Now only go a few of the NT ones left. About 15.

svn path=/trunk/; revision=7621

21 years agoAdd some more info levels to the NetWkstaSetInfo stuff ...
Richard Sharpe [Thu, 1 May 2003 00:23:47 +0000 (00:23 -0000)]
Add some more info levels to the NetWkstaSetInfo stuff ...

It is actually dissected in common with both GetInfo and SetInfo, but we
should never see many of these info levels with GetInfo.

There are some more levels to do, esp some relevant to OS/2 etc ...

svn path=/trunk/; revision=7620

21 years agoComplete the dissection of NetWkstaSetInfo, wheeee, this is fun, plonk.
Richard Sharpe [Wed, 30 Apr 2003 23:53:42 +0000 (23:53 -0000)]
Complete the dissection of NetWkstaSetInfo, wheeee, this is fun, plonk.

There are still some info levels that are not dissected, so I will fill
those in over the next few days, unless someone else gets to it first.

svn path=/trunk/; revision=7619

21 years agoThe typedefs in plugins/plugin_table.h must have "addr_" in front of the
Guy Harris [Wed, 30 Apr 2003 23:40:43 +0000 (23:40 -0000)]
The typedefs in plugins/plugin_table.h must have "addr_" in front of the
function name; make it so.

Eliminate the duplicate entry for "except_throw" and the duplicate code
for it.

svn path=/trunk/; revision=7618

21 years agoThis is fun, write a small bit of code in VC++, and I get another one
Richard Sharpe [Wed, 30 Apr 2003 23:31:51 +0000 (23:31 -0000)]
This is fun, write a small bit of code in VC++, and I get another one
of the WKSSVC RPCs. Here we have NetWkstaSetInfo, but we don't know the
info levels as yet. However, it looks like lmwksta.h has all the info we
need.

svn path=/trunk/; revision=7617