Commit Graph

17486 Commits

Author SHA1 Message Date
Ronnie Sahlberg 9481eac669 make dissect_scsi_rsp() take an exchange structure as parameter instead of just a lun.
this finally allows us to have scsi.time  for scsi transactions   but we need to cleanup and refactor the other three scsi entrypoints before we should implement scsi srt    to make the other three also take an exchange data structure as parameter from their transports (and get rid of the pinfo->private_data )


svn path=/trunk/; revision=17838
2006-04-07 10:15:15 +00:00
Anders Broman 5683612f36 Fix bug 851
svn path=/trunk/; revision=17837
2006-04-06 20:50:48 +00:00
Jaap Keuter cdc0de3de5 Better read NTP LSW from the right spot
svn path=/trunk/; revision=17836
2006-04-06 20:47:22 +00:00
Guy Harris 2f42327a63 Handle a filter that evaluates to an empty "matches everything" filter.
svn path=/trunk/; revision=17835
2006-04-06 20:07:16 +00:00
Jaap Keuter 0834b09ca2 From: Martin Mathieson
- fixes bug 863 (RTCP sender report's NTP time display incorrect - use using wrong bytes)
- makes NTP timestamp MSW and LSW proper filterable fields, displaying them in dec and hex
- when doing roundtrip calculations, rationalise fields added, add link to LSR frame whenever it matches

svn path=/trunk/; revision=17834
2006-04-06 13:30:45 +00:00
Ronnie Sahlberg 2fbe952694 change iscsi to track transaction data in a fc_exchange_data structure just as the fc / fcp transport does.
while reusing this structure for multi-purpose would make it berret suited to move the struct from packet-fc.h to packet-scsi.h
we would have to include packet-scsi.h   for everyone that includes packet-fc.h  and that are a few dependencies.
(would have to include it even in packet-llc.c)

so leave it as a fc structure for now.




svn path=/trunk/; revision=17833
2006-04-06 11:05:18 +00:00
Ronnie Sahlberg 26bbda330d remove the hashtables for pdu tracking and replace with an se_tree
indexed by itt


svn path=/trunk/; revision=17832
2006-04-06 10:41:49 +00:00
Ronnie Sahlberg ab6c16c365 attach the iscsi_session to the conversation instead of using a hashtable to map conversation to iscsi_session.
use the pointer to iscsi_Session  as conversation index for the exchange tracking for now,   it works just as well   and will be replaced with better exchange tracking shortly  anyway



svn path=/trunk/; revision=17831
2006-04-06 09:47:31 +00:00
Ronnie Sahlberg 2536bbc863 get rid of a field we are not using
svn path=/trunk/; revision=17830
2006-04-06 09:16:10 +00:00
Ronnie Sahlberg 0257503efc add a field for storing the scsi opcode in the exchange struct.
it is silly that scsi has to track these things itself  when all the transports
already keep track of exchanges.

the scsi transports should all use the fc_exchange_data structure to pass lun to scsi and where scsi kan store the opcode between requests and data/response packets




svn path=/trunk/; revision=17829
2006-04-06 08:33:08 +00:00
Anders Broman d422653d53 Add two missing *-exp.cnf files
tcap.asn - whitespace changes

svn path=/trunk/; revision=17828
2006-04-06 05:09:45 +00:00
Ronnie Sahlberg 4aa5a68788 use the fc exchange structure to track LUN values from fcp command all the way through to the response
and get rid of the broken hashtable used for the same purpose previously.

some additional cleanups.


svn path=/trunk/; revision=17827
2006-04-06 03:15:16 +00:00
Ronnie Sahlberg 507b3a384f use the fc exchange data to track fcp response times
svn path=/trunk/; revision=17826
2006-04-06 02:46:41 +00:00
Ronnie Sahlberg 33af09f927 make fc pass the fchdr structure as pinfo->private data to higher layer protocols
svn path=/trunk/; revision=17825
2006-04-06 02:15:41 +00:00
Ronnie Sahlberg ec77d1cc28 remove another field from a structure that we never use.
svn path=/trunk/; revision=17824
2006-04-06 02:04:22 +00:00
Ronnie Sahlberg dd62a0f458 remove a field we no longer use in this dissector from the conversation structure.
svn path=/trunk/; revision=17823
2006-04-06 01:17:36 +00:00
Ronnie Sahlberg a72a698985 move conversation tracking out from the type specific subdissectors and track them in the main entry point for the protocol dissector instead.
this is semi-temporary though since FCP will always sit ontop of FC which also tracks the same conversations  so there is no need to do a redundant conversation tracking in fcp itself.



svn path=/trunk/; revision=17822
2006-04-06 01:16:23 +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
Michael Tüxen 083cda3e63 Update PPIDs to latest IANA regsitration status.
svn path=/trunk/; revision=17819
2006-04-05 20:24:48 +00:00
Anders Broman 5426b944ee Expand some value strings, get map_error from gsm_map use the added IE's.
svn path=/trunk/; revision=17818
2006-04-05 18:54:43 +00:00
Anders Broman d66ccda16a Add some IE:s
svn path=/trunk/; revision=17817
2006-04-05 16:05:29 +00:00
Anders Broman a12aba1d39 From Martin Mathieson:
This patch fixes the decode problem mentioned in this bug report:

"3. Frames 9 and 13 are only partially decoded and show up as "Packet size limited during capture" It looks like the decode chokes on the DQ-RI line."

DQ-RI is a localconnectionoptions parameter and shouldn't appear as a top-level parameter. This patch makes sure that all of the single-character top-level parmeter codes are followed immediately by a ':'.

svn path=/trunk/; revision=17816
2006-04-05 16:04:46 +00:00
Anders Broman ba35e5d4d9 Frof Jeff Morriss:
The attached patch adds support for the Japan SS7 variants (TTC/NTT) to 
the MTP3, MTP3MG, SCCP, and SCCPMG dissectors.  It's not as thoroughly 
implemented nor tested as I'd like, but it does a good job of at least 
the basic dissection and I'm out of time for now.

It also fixes bug I found in the SCCP dissector where it would show an 
End of Optional parameter even when the Optional pointer was 0.

svn path=/trunk/; revision=17815
2006-04-05 16:03:36 +00:00
Ronnie Sahlberg 5e89308fe3 from previous commit
dont dereference cdata null pointer


svn path=/trunk/; revision=17814
2006-04-05 10:07:49 +00:00
Ronnie Sahlberg 4a8bcee67f create the protocol tree in the main function and not down in the individual helper functions
svn path=/trunk/; revision=17813
2006-04-05 09:51:14 +00:00
Ronnie Sahlberg 342c290c42 remove some crap
svn path=/trunk/; revision=17812
2006-04-05 08:58:16 +00:00
Ronnie Sahlberg a9f636b41d imake fcp responses that do carry a scsi response code
call the scsi response dissector as well
(so that eventually we can do things like SRT for SCSI)


it doesnt work yet since fcp is using some incredibly broken logic to
track state between frames.

the cdata stuff can just not ever work exscept for single scan tethereal dissection.
is there noone at all looking at these protocols wioth ethereal?
has noone noticed it is completely broken yet?


sigh,    soon   i think i will be able to add the originally estimated trivial to implement   SCSI SRT



svn path=/trunk/; revision=17811
2006-04-05 08:51:45 +00:00
Ronnie Sahlberg 6fd403ee95 make reportluns use the new macros to catch and flag alloclen truncation
svn path=/trunk/; revision=17810
2006-04-05 07:25:57 +00:00
Ronnie Sahlberg d06fea3fa6 cleaning up bits and pieces
replacing the hashtables with a better exchange   se_tree



svn path=/trunk/; revision=17809
2006-04-05 05:51:51 +00:00
Anders Broman 0d4dbda02b Add a dissector for Nortels LGE Monitor protocol.
svn path=/trunk/; revision=17808
2006-04-05 05:05:42 +00:00
Ronnie Sahlberg 1808675f72 add dissection of the fcp response bidir read residual field
svn path=/trunk/; revision=17807
2006-04-05 01:17:32 +00:00
Ronnie Sahlberg a7dd0aeac8 move some arrays from the header to fcp.c
svn path=/trunk/; revision=17806
2006-04-04 22:22:18 +00:00
Ronnie Sahlberg cd7baad861 refactoring of the fcp response dissector
add missing flags to the dissection   and during refactoring fix several things that just can not have worked previously.




svn path=/trunk/; revision=17805
2006-04-04 22:21:48 +00:00
Ronnie Sahlberg 0283e3ab17 major refactoring of the ifcp dissector.
remove the port preference setting and replace it with strong heuristics instead
(attempt but fail to set a conversation dissector when the heuristics and the dissection match)

use tcp_dissect_pdus() for reassembly and pdu tracking and get rid of the try-to-step-through-the-pdu-to-find-where-the-next-pdu-starts thing.




svn path=/trunk/; revision=17804
2006-04-04 11:58:56 +00:00
Michael Tüxen 501a66109d From Irene: Make buttons unselecable when nothing would happen.
svn path=/trunk/; revision=17803
2006-04-04 09:04:08 +00:00
Ronnie Sahlberg 94f416ca62 fix for bug #856
dont try to lookup a NULL string since this string will be dereferenced
in the ghashtable   hash callback



svn path=/trunk/; revision=17802
2006-04-04 07:53:39 +00:00
Ronnie Sahlberg ab9b2e6836 dislay a flags field as "Flags" instead of "SCCS Flags"
svn path=/trunk/; revision=17801
2006-04-03 20:39:55 +00:00
Ronnie Sahlberg 54d8591809 use col_set_fence() after we have populated the info column with the SCSI details so that if there are other pdus followinf this scsi pdu in the packet they will not overwrite it
svn path=/trunk/; revision=17800
2006-04-03 20:29:53 +00:00
Ronnie Sahlberg 5ee1c8d1e4 add dissection of the inq sync flag
sort the entries in scsi_verdesc_val   so it is easier to add missing entries


svn path=/trunk/; revision=17799
2006-04-03 20:12:24 +00:00
Anders Broman e47e1c864d Fix bug http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=850 problems with tagged assignments.
Add som OID names. 

svn path=/trunk/; revision=17798
2006-04-03 19:07:52 +00:00
Gerald Combs 34335a2bc1 Add a null pointer check. Fixes the current Buildbot menagerie failure.
svn path=/trunk/; revision=17797
2006-04-03 14:44:56 +00:00
Ronnie Sahlberg 10a0fd2105 a krb_error pdu with the error_code ERR_CLIENT_REVOKED
issued by ms kdc contains a PA_DATA structure with a salt that contains an
nt_status code explaining why the client was not allowed to get a (tgt) ticket



svn path=/trunk/; revision=17796
2006-04-03 08:55:04 +00:00
Ronnie Sahlberg f886744b64 further prettification of the inq dissector.
further refactorinf of  the scsi  alloc_len macros



svn path=/trunk/; revision=17795
2006-04-03 08:20:54 +00:00
Ronnie Sahlberg 700a7f527a dissect byte 7 of the inq response
svn path=/trunk/; revision=17794
2006-04-03 03:19:52 +00:00
Guy Harris bd847a5617 Don't report the interface name unconditionally.
svn path=/trunk/; revision=17793
2006-04-03 03:15:29 +00:00
Guy Harris ef0c0e16a5 Set the right structure member.
svn path=/trunk/; revision=17792
2006-04-03 03:12:32 +00:00
Ronnie Sahlberg 0f1f0c8d8a add dissection of byte 6 of inq response
(except fopr 3 bits that only exist for pscsi)


svn path=/trunk/; revision=17791
2006-04-03 02:40:07 +00:00
Guy Harris 813af87c83 Clean up if CreateProcess() fails.
svn path=/trunk/; revision=17790
2006-04-03 01:58:43 +00:00
Guy Harris d260003026 Put the low-level sync routines into a common file so they can be shared
by dumpcap and Ethereal (so that, on UN*X, the child process can report
a detailed "can't exec dumpcap" error).

Rename most of the "sync_pipe_XXX_to_parent()" routines, as they're also
in Tethereal, which doesn't have a sync pipe.

svn path=/trunk/; revision=17789
2006-04-03 01:56:53 +00:00