aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-erf.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-08From Stephen Donnelly:etxrab1-1/+10
InfiniBand Link Packet (flow control) dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4656 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32425 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-02From Stephen Donnelly:etxrab1-7/+94
Endace ATM and AAL2 enhancements. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4447 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31766 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-21Sanitize epan includeskrj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29499 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-92/+92
(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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27050 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-02Trivial warning fixesjmayer1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26899 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-30Add a cast to avoid a warning.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26315 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-30Minor proto_reg_handoff cleanup: use find_dissector when appropriate.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26308 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-29From Francesco Fusco:etxrab1-6/+273
Endace ERFII (extension header) support. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26287 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-14Just have a scalar handle_t for the Infiniband handle, for now. (Theguy1-20/+17
old code had the type value past the end of the array.) Rename the handle variables. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25739 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-14Rename the ERF "erfhdlc" preference to "hdlc_type" ("erf" is redundant,guy1-25/+42
and "hdlc" doesn't indicate that it's a protocol type), and, instead of a "raw" option, have a "try to guess the traffic type" option - for now, if the first byte is 0x0f or 0x8f, treat it as Cisco HDLC, otherwise treat it as PPP. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25737 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-14Replace the old "erfatm" preference for the ERF dissector with anguy1-47/+77
"aal5_type" dissector, which offers only "guess the traffic type" and "LLC multiplexed" as options, defaulting to "guess the type". Add a separate preference to control whether to treat single ATM cells as raw data or as the first cell of an AAL5 PDU (and dissecting them as short AAL5 PDUs). Don't reach inside the tvbuff to get the data and the length; use tvb_length() and tvb_get_ptr(). Pass the data *after* the AAL5 header to the "guess the traffic type" routine. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25736 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-12Make erf.ethfcs a Boolean, with "FCS present" and "FCS not present" theguy1-32/+12
only options, and default to "FCS present". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25724 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-12Rename the preference values to something that leaves out the "eth" (asguy1-3/+3
it's redundant). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25720 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-12ERF Ethernet records always contain Ethernet packets, as the nameguy1-20/+20
indicates; replace the "erf.eth" preference with an "erf.ethfcs" preference, specifying whether the FCS is present in Ethernet frames, and offer the options "present", "not present", and "maybe present" - for "maybe present", call the regular Ethernet dissector, which tries to figure out whether there's an FCS at the end of the packet or not. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25719 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-26Make the default for HDLC traffic "Raw data", just as it is for otherguy1-1/+1
record types, so that people know they have to set the preference. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25609 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-26Make the preference settings for the dissector to use for various ERFguy1-68/+52
link-layer types static. If the preference is set to "raw data" for any of those types, display the raw data with an indication that the preference in question has been set to "raw data", so people don't just wonder why ERF files aren't working right any more. (See bug 2641; I had the same surprise when I tried it on some ERF captures I have.) Pull the dissect_erf_header() code into dissect_erf() - it's dissecting the *payload*, not the *header*. Fill in the Info column with the record type. When using tvb_new_subset() to chop a header off of a tvbuff, just specify lengths of -1, so we go all the way to the end. Clean up the Infiniband dissector call. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25608 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-11Convert C++ style comments ...wmeier1-3/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25273 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-14From Stephen Donnelly via bug 2235:gerald1-0/+27
This plugin implements a dissector for Infiniband. It is released under the GPL v2. Rather than using say libpcap to capture raw (unframed) IP packets from near the top of an IPoIB stack, this plugin dissects link level Infiniband frames. Infiniband trace files can be read from Endace ERF format trace files, or from libpcap DLT_ERF files containing ERF TYPE_INFINIBAND records. There is currently no native DLT_INFINIBAND in libpcap. Each record contains a hardware timestamp, capture metadata such as port Id, and a complete link level Infiniband frame starting from the Local Route Header. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24628 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-08Added missing "svn:keywords Id" and "svn:eol-style native" for somestig1-0/+2
c and h files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24290 f5534014-38df-0310-8fa8-9805f1628bb7
2008-01-10pinfo->pseudo_header can and should be assumed to be non-null by aguy1-133/+140
dissector. This fixes Coverity CID 238 (as we *were* assuming it was non-null in one statement, and then only checking it later). Set pinfo->p2p_dir to one of P2P_DIR_RECV or P2P_DIR_SENT, as it's supposed to be, not to a Boolean value, and explain the basis on which it's being set. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24055 f5534014-38df-0310-8fa8-9805f1628bb7
2007-12-18Bugfix: Array overflow (found by gcc43)jmayer1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23907 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-08From Florent DROUIN:etxrab1-0/+944
This is a replacement of the existing decoding of ERF files (Extensible Record Format from Endace). For the decoding of the ERF files, according to the "type of record" given in the ERF header, several decoders can be used. Up to now, the decoder is determined according to an environment variable, or with a kind of heuristic. And, all the treatment is done during the file extraction. The new architecture, will separate the ERF file decoding, and the ERF record decoding. The ERF records will be decoded with a specific dissector. This dissector can be configured with options, to replace the environment variable. http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1839 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23092 f5534014-38df-0310-8fa8-9805f1628bb7