Commit Graph

150 Commits

Author SHA1 Message Date
Bill Meier 7172127412 #include reassemble.h not req'd
svn path=/trunk/; revision=27911
2009-03-31 12:08:44 +00:00
Bill Meier 1391addb5a Modified version of a fix from Christopher Maynard as reported in bug 2822.
svn path=/trunk/; revision=26054
2008-08-21 18:51:17 +00:00
Ronnie Sahlberg 861761ef7c dissect te lock structures in the LOCK request
svn path=/trunk/; revision=25378
2008-05-26 02:51:36 +00:00
Ronnie Sahlberg bf7660d271 add more dissection of FIND infolevels
update the BREAK dissection


svn path=/trunk/; revision=25371
2008-05-23 11:31:01 +00:00
Ronnie Sahlberg af748dc493 add dissectors for some more FIND info levels FileBothDirectoryInfo and
FileIdBothDirectoryInfo


svn path=/trunk/; revision=25366
2008-05-23 04:44:23 +00:00
Ronnie Sahlberg e98012570b enhance the FIND dissector
svn path=/trunk/; revision=25365
2008-05-23 04:20:54 +00:00
Ronnie Sahlberg 9aa916dc74 update the dissection of NOTIFY
svn path=/trunk/; revision=25364
2008-05-23 02:51:14 +00:00
Ronnie Sahlberg 60d4c486f9 updte the CLOSE dissector
svn path=/trunk/; revision=25359
2008-05-23 01:28:11 +00:00
Ronnie Sahlberg cdc9669337 update to the ioctl dissector
svn path=/trunk/; revision=25358
2008-05-23 01:07:22 +00:00
Ronnie Sahlberg 425861d446 iupdates to the dissection of READ and LOCK for smb2
svn path=/trunk/; revision=25355
2008-05-23 00:21:58 +00:00
Ronnie Sahlberg d426498171 fixup and improve create
svn path=/trunk/; revision=24327
2008-02-14 06:08:11 +00:00
Ronnie Sahlberg 2d63ba2674 fixum tree disconnect
svn path=/trunk/; revision=24326
2008-02-14 05:15:20 +00:00
Ronnie Sahlberg f8660c6806 fixup tree connect
svn path=/trunk/; revision=24325
2008-02-14 05:13:29 +00:00
Ronnie Sahlberg eb2f7475f2 fixup sessionlogoff
svn path=/trunk/; revision=24324
2008-02-14 04:19:51 +00:00
Ronnie Sahlberg 0d97477e6d fixup sessionsetup
svn path=/trunk/; revision=24323
2008-02-14 04:16:11 +00:00
Ronnie Sahlberg bb9f7a373e update dissection of negprot
svn path=/trunk/; revision=24322
2008-02-14 03:38:29 +00:00
Ronnie Sahlberg d399fc0a1f fixup SMB2 header and decode async commands correctly
svn path=/trunk/; revision=24321
2008-02-14 02:36:43 +00:00
Anders Broman 6226035893 Apply yet another set of the optimization patches:
When offset parameter is 0 replace tvb_bytes_exist() with the faster tvb_length().

On the other hand 
	if (tvb_bytes_exist(tvb, 0, 20)
is more readable than
	if (tvb_length(tvb) >= 20

so only do it in heuristic function

svn path=/trunk/; revision=23412
2007-11-09 06:01:18 +00:00
Anders Broman 1950ffc214 Apply the small performance enhancment patches for:
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster.
Replace 
- col_append_fstr() with faster  col_append_str() 
- col_add_str() with col_set_str()
when it's safe

svn path=/trunk/; revision=23252
2007-10-23 05:50:00 +00:00
Jaap Keuter 4c22ba92f9 Flag error
svn path=/trunk/; revision=23218
2007-10-17 18:25:01 +00:00
Ronnie Sahlberg 8fde3b7561 rename dcerpc_smb_store_pol_name to dcerpc_store_polhnd_name
rename dcerpc_smb_fetch_pol  to dcerpc_fetch_polhnd_data and also make 
it take an additional parameter to return the "type" of the policy 
handle, if such a type was stored.

extend the pol_value structure used to track policy handles to also 
store a type to represent what created the policy handle
types could be USER/ALIAS/CONNECT/... etc handles returned from the 
SAMR interface

add a new helper function  dcerpc_store_polhnd_type()

track policy handles between request/responses for dcerpc

update the samr.cnf file to make the samr dissectors for
SetSecurity/QuerySecurity dissect the specific bits for the security 
descriptor correctly based on whether the policy handle refers to a 
CONNECT/DOMAIN/USER/ALIAS or GROUP



svn path=/trunk/; revision=22703
2007-08-28 11:45:08 +00:00
Guy Harris 5a43799a17 Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib
routines and routines using those routines.  GLib might use different
modifiers for 64-bit quantities than the platform's C library does.

svn path=/trunk/; revision=21990
2007-05-29 18:52:42 +00:00
Ronnie Sahlberg fce276b898 additional smb2 fixes from metze
svn path=/trunk/; revision=21860
2007-05-21 10:19:29 +00:00
Ronnie Sahlberg f4da83544d from metze
improved handling of smb2 errors


svn path=/trunk/; revision=21859
2007-05-21 10:16:21 +00:00
Ronnie Sahlberg 2c0a600046 from metze
prettify dissection of multiple chained smb2 pdus in one frame


svn path=/trunk/; revision=21801
2007-05-16 06:50:19 +00:00
Ronnie Sahlberg 99c98d6c6e when spawning off to the next smb2 pdu in a chain we need to create a
new tvb for it    or else the offset/length calculations for where blobs 
a		next_tvb=tvb_new_subset(tvb, chain_offset, MIN((int)len, 
tvb_length_remaining(tvb, off)), len);
re in the packets are wrong.



svn path=/trunk/; revision=21795
2007-05-15 20:46:45 +00:00
Ronnie Sahlberg 827df92fb1 add dissection of the end_of_chain bit in the header flags
svn path=/trunk/; revision=21794
2007-05-15 20:33:44 +00:00
Ronnie Sahlberg 9498ad3a2d from metze
patch to find and enhancement of extra_info handling


svn path=/trunk/; revision=21793
2007-05-15 20:13:30 +00:00
Ronnie Sahlberg 0977ea7e74 from metze
add support for smb2 chaining

rename sessionsetupandz to sessionsetup


svn path=/trunk/; revision=21792
2007-05-15 20:07:58 +00:00
Ronnie Sahlberg 0eae1cc0bd add dissection of smb1 ioctl data by tying it into the dissectors for
ioctl data that already exists for smb2


svn path=/trunk/; revision=21713
2007-05-07 09:07:29 +00:00
Ronnie Sahlberg 34afdc5fc3 change the smb2 ioctl function to take a pointer to a uint32 (ioctl
function code) instead of a structure

extend the nt trans structure to contain a ioctl function code for smb1


svn path=/trunk/; revision=21712
2007-05-07 08:11:59 +00:00
Ronnie Sahlberg bda722d3bf remove the ioctl function and table from the smb dissector and just use
the one in smb2 instead since the smb2 one is more developed.


svn path=/trunk/; revision=21711
2007-05-07 07:41:35 +00:00
Stephen Fisher 8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Stephen Fisher 85a464c980 Fix a bunch of warnings, add svn:keywords Id and svn:eol-style native
to packet-iuup.c.
 

svn path=/trunk/; revision=21244
2007-03-28 07:06:39 +00:00
Jeff Morriss 109388d263 Clean up some more warnings: unused variables, unitialized variables, wrong format (%ld instead of %d) in packet-sccp.c
svn path=/trunk/; revision=21167
2007-03-24 13:46:41 +00:00
Ulf Lamping 411249419d fix some more warnings (type casts)
svn path=/trunk/; revision=21141
2007-03-23 00:51:21 +00:00
Anders Broman b6bec03bfc From Stefan (metze) Metzmacher:
small typo fix in smb2 dissector

svn path=/trunk/; revision=18724
2006-07-12 20:44:54 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Ronnie Sahlberg 26f24ec097 decode the first two bytes of the negotiate protocol request as buffercode
svn path=/trunk/; revision=17821
2006-04-05 23:33:35 +00:00
Ronnie Sahlberg fb2cf0df34 from metze
dissect smb2 break responses   used by a server to break an oplock


these unsolicited responses are sent with a commandseqnum of -1   so mark these in the header as unsolicited as well



svn path=/trunk/; revision=17820
2006-04-05 21:38:41 +00:00
Gerald Combs 172556500d Remove MIN and MAX defines, which GLib provides.
svn path=/trunk/; revision=17551
2006-03-09 16:00:33 +00:00
Guy Harris 08182946ce Constify some items, and make one item static, so we don't initialize
stack copies at run time.

svn path=/trunk/; revision=17433
2006-03-01 00:14:12 +00:00
Ronnie Sahlberg 6fcf2d8c66 smb2:
if the secblob starts with 'NTLMSSP'   call the ntlmssp handle directly and not the gssapi one

ntlmssp:
dont change offset when dissecting a client_time,   offset will be changed properly later outside the switch.



svn path=/trunk/; revision=17215
2006-02-08 08:48:23 +00:00
Ronnie Sahlberg 3cb23ec4f8 smb2 signing
add dissection of the "Signature present" bit
and the 16 byte signature field in the header


svn path=/trunk/; revision=17206
2006-02-07 21:30:21 +00:00
Ronnie Sahlberg dd2f806e15 handmerged patch from metze it conflicted with recent P bit patch i checked in
svn path=/trunk/; revision=17202
2006-02-07 12:01:34 +00:00
Ronnie Sahlberg c35dfab4e9 rename Logoff to SessionLogoff to make it consistent with
TreeConnect/TreeDisconnect



svn path=/trunk/; revision=17201
2006-02-07 11:32:10 +00:00
Ronnie Sahlberg 5036c5cc54 add dissection of the P (PID Valid) bit in the header
If the P bit is NOT set, then flag the PID field as "(not valid)"
Sicne the TID might be undefined/0 in the response to a "pending" read
we cant use that solely to determine if a read was for a named/pipe (==dcerpc)
Assume that only NamedPipe reads can be STATUS_PENDING and thus have the P bit set and assume it IS dcerpc if the P bit is set.




svn path=/trunk/; revision=17197
2006-02-07 09:28:02 +00:00
Ronnie Sahlberg baed8f0888 add dissection of
SMB/SetFileInfo level 1023
SMB2/SetInfo/FILE_INFO level 0x17

FILE_PIPE_INFO   infolevel


svn path=/trunk/; revision=17195
2006-02-07 08:48:51 +00:00
Ronnie Sahlberg 0c350fb5b6 prettify class/infolevel for GetInfo/SetInfo
svn path=/trunk/; revision=17186
2006-02-06 13:17:11 +00:00
Ronnie Sahlberg 4a2048a5ef dissect the TWrp chain element
svn path=/trunk/; revision=17180
2006-02-06 09:51:42 +00:00