aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fc.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-09From kahou:Jaap Keuter1-3/+7
FCSOF incorrect checksum calculation. svn path=/trunk/; revision=29815
2009-08-23From kahou:Jaap Keuter1-2/+194
Add Fibre Channel Delimiter Dissector for Fibre Channel FC2. svn path=/trunk/; revision=29531
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()Kovarththanan Rajaratnam1-3/+3
svn path=/trunk/; revision=29446
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-6/+2
svn path=/trunk/; revision=29345
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29342
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-6/+3
svn path=/trunk/; revision=29340
2009-07-16From Kahou via bug 3739:Stig Bjørlykke1-0/+5
New DLT value is added for Fibre Channel FC2. svn path=/trunk/; revision=29115
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-25/+25
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-05-13Apply some of the patches from:Anders Broman1-2/+1
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356
2009-05-08FT_BOOLEAN fields w/o bitmasks really should use BASE_NONE (not BASE_DEC,...).Bill Meier1-1/+1
svn path=/trunk/; revision=28317
2008-12-17Fix some typos and spelling (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27037
2008-05-14Fix some of the Errors/warnings detected by checkapi.Bill Meier1-18/+24
svn path=/trunk/; revision=25290
2007-09-16The Fibre Channel protocol defines a virtual fabric tag (VFT) similar toJaap Keuter1-25/+93
ethernet's VLAN tag. It is sometimes called the VSAN tag. It used to be proprietary, but now it's standard. Wireshark currently displays it as an 8-byte field without dissecting it further. It'd be nice to have it broken down into fields. A patch is attached. svn path=/trunk/; revision=22879
2007-06-13Fix for bug 1633:Jaap Keuter1-4/+10
Adding BLS ABTS handling. svn path=/trunk/; revision=22087
2007-04-14fix MacOSX gcc-3.3 warnings about unused tfs/value_string variablesSebastien Tandel1-1/+1
most have been tagged unused (few have been deleted if dissector has not been modified since a long time) move packet-ssl-utils.c to DISSECTOR_SRC svn path=/trunk/; revision=21431
2006-10-13if FC type is FPC/SCSI and the relative offset bit is set in f_ctl then the ↵Ronnie Sahlberg1-0/+14
parameter field is 4 bytes and contain the relative offset of the data for data in/out decode this field as relative offset and also store it in the fc_hdr structure so that FCP can pick it up and pass if to the SCSI payload data in/out dissector later svn path=/trunk/; revision=19510
2006-10-11add a task_flags bitmap and two lengths (data and bidirectional data)Ronnie Sahlberg1-0/+3
so that the two scsi transports FCP and ISCSI can provide the expected data transfer lengths to SCSI to allow SCSI reassembly. NDMP does not really need these hints since for NDMP (and also iscsi-lite) there is conceptually always both data in and data out phases and there is never any fragmentation. svn path=/trunk/; revision=19493
2006-10-11move the ITL and the ITLQ structure to packet-scsi.h where it belongsRonnie Sahlberg1-0/+1
svn path=/trunk/; revision=19492
2006-09-30add an extra_data pointer to the itlq structure where specific ↵Ronnie Sahlberg1-0/+1
commandsets/cdbs can hang additional data that are unique to that commandset/cdb make the scsi osd service action and getsetattributetype use this facility furhter enhancements to scsi osd svn path=/trunk/; revision=19374
2006-08-14rename some structures and defines from the se_tree to the emem_tree prefixRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18894
2006-06-24coverity 149 dead codeRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18571
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2006-04-22the scsi transports (fc/fcp and iscsi) now track both itl and itlqRonnie Sahlberg1-0/+2
structures for scsi. we no longer need the scsi_task_id structure passed by pinfo->private_data so get rid of it. we no longer need the (broken by design) scsi_task_data hash table since this has been replaced byt hte itl and itlq structures and tracking svn path=/trunk/; revision=17952
2006-04-21updates to get the fc and scsi dissectorsRonnie Sahlberg1-0/+1
and get rid of some breakage in the design let the scsi transport keep track of itl (initiator, target, lun) matching and let it pass a itl structure to scsi that is persistent across packets. let scsi use this itl structure to track device type for a specific itl instead of the (must have been) broken hashtable. update both iscsi and fc to track the itl structure for scsi and schange the scsi signature to accept itl as a parameter. more to come. svn path=/trunk/; revision=17942
2006-04-20rename hte itlq structures to itlqRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=17922
2006-04-20rename the fc_exchange_data structure to the more appropriate itlq_nexus_tRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=17921
2006-04-06add a field for storing the scsi opcode in the exchange struct.Ronnie Sahlberg1-0/+1
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-06use the fc exchange structure to track LUN values from fcp command all the ↵Ronnie Sahlberg1-0/+1
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-06make fc pass the fchdr structure as pinfo->private data to higher layer ↵Ronnie Sahlberg1-0/+7
protocols svn path=/trunk/; revision=17825
2006-04-05cleaning up bits and piecesRonnie Sahlberg1-167/+78
replacing the hashtables with a better exchange se_tree svn path=/trunk/; revision=17809
2005-09-27remove all strcpy from fcelsRonnie Sahlberg1-19/+21
ito make it easier to read use doublespace to separate the items on the expansion line instead of ',' since so many of the strings contain spaces. cleanup fc slightly and remove a redundant parameter svn path=/trunk/; revision=16019
2005-09-26remove all strcpy() from packet-fc.cRonnie Sahlberg1-154/+73
rewrite the functions to do proto_item_append_text() instead of building a string and then printing it. The new function is functionally equivalent to the previous function except it does not print the values of the multi-bit fields to the expansion (the expansion line is already a km wide as it is) there are now only 202 strcpy() left in epan/dissectors down from 300+ instances some weeks ago. svn path=/trunk/; revision=16009
2005-09-17Move a pile of protocol-related headers from the top-level sourceGuy Harris1-1/+1
directory to the epan directory. Some of them should perhaps ultimately be moved to epan/dissectors, if they pertain only to stuff exported by a particular dissector. Fix Gerald's e-mail address in files we're moving. svn path=/trunk/; revision=15844
2005-09-15Fix fragment length checks. Fixes bugs 440 and 442-446.Gerald Combs1-2/+2
svn path=/trunk/; revision=15824
2005-09-14From Dinesh G DuttAnders Broman1-8/+20
Support some new messages and fix a couple of bugs. packet-fc.h - Added a #define for a Cisco MDS-specific frame called OHMS (online health mgmt srv) packet-fc.c - Support for OHMS frame, fixed an incorrect "malformed frame" error caused on ACK1 frames (they don't contain anything but (encap hdr + FC hdr + encap trailer), fixed incorrect detection of last-data-frame packet-fcct.h - Support for new service type, "Fabric Controller", used in conjunction with FC-SW3 ESS message, exported the service name value string definitions and packet-fcct.c - Support for recognizing "Fabric Controller" service type and "vendor-specific" service packet-fcswils.h - Support for ESS & MRRA messages, defined as part of FC-SW3 packet-fcswils.c - Support for ESS & MRRA messages, defined as part of FC-SW3 packet-scsi.c - Support for Verify and Write&Verify SBC commands. svn path=/trunk/; revision=15799
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-10/+4
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-16gcc4 gets confused by the break statements, and I guess it thinks youGuy Harris1-7/+0
can reach them, and thus thinks you can fall off the end of "fc_get_ftype()". svn path=/trunk/; revision=15367
2005-08-12gmemchunk -> se_alloc() improvementsRonnie Sahlberg1-27/+4
svn path=/trunk/; revision=15322
2005-08-08various code cleanup:Ulf Lamping1-4/+0
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-07-26iFCP uses one dedicated TCP session per fc-endpoint pair.Ronnie Sahlberg1-10/+40
The FC D_id and S_id fields in teh FC frame encapsulated inside iFCP unfortunately has "undefined" (semi-random) values so we can not use th S_/D_id matching in FC when transported atop iFCP. Change iFCP to call a new fc_ifcp handler instead of the fc handler. Add a new handler to FC specific to iFCP. Only set the pinfo->src/dst fields to the S_id/D_id fields IFF the FC frame was NOT transported ontop of iFCP. Othervise we just use the TCP/IP values that are already stored there. Some Hosts use RelativeOffset fields for FC. We can only dissect the RelOff field with offset 0. Change FC to only call the FCP subdissector if offset==0 when relative offsets are used. Some hosts when using relative offsets do not specify a proper value for rxid in teh commands instead htey lkeave it as 0xffff Change the FCP conversation matching to ignore RXID when searching for a conversation. svn path=/trunk/; revision=15076
2005-04-20From Dinesh Dutt: Improve reassembly checking. Replace a match_strval()Gerald Combs1-28/+42
with a val_to_str(). svn path=/trunk/; revision=14154
2005-04-17Make sure frag_size doesn't underflow, which would make us to try toGerald Combs1-0/+7
allocate a huge amount of memory. Fixed bug 63. svn path=/trunk/; revision=14115
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-1/+1
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-02-02From Jon Ringle:Anders Broman1-2/+2
1) Added a setup_frame parameter to conversation_t 2) Used the conversation_t next to maintain a list of conversations with the same src/dest tuple but different setup_frame number. 3) Changed the signature of find_conversation() and conversation_new() to pass in the frame number. 4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image are present, and T.38 conversation if only m=image is present. I expect that RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 packets. svn path=/trunk/; revision=13243
2004-12-31Don't assign the const pointers passed to hash routines to non-constGuy Harris1-3/+3
pointers. svn path=/trunk/; revision=12890
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-23We are not guaranteed that "fchdr.r_ctl & 0x0F" is a valid frame type,Guy Harris1-2/+3
so don't use "match_strval()", use "val_to_str()". svn path=/trunk/; revision=11474
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1454
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410