aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
AgeCommit message (Collapse)AuthorFilesLines
2005-01-16From Jon Ringle:Guy Harris1-82/+78
don't dissect attributes if there aren't any; put each attribute into a subtree; register the dissector by name. Use "match_strval()" to check whether the message type is a known STUN message type, and to generate the message type for the Info column. Don't use "tvb_bytes_exist()" to check when we run out of data - use the length fields from the packet. Check the sanity of those lengths, too. svn path=/trunk/; revision=13063
2005-01-16The keycode_first and keycode_count arguments to "listOfKeysyms()" canGuy Harris1-4/+8
come directly from packet data, so don't abort if they define a sequence of keycodes that goes past 255 - just report errors for the keycodes past 255. Clean up indentation. svn path=/trunk/; revision=13059
2005-01-16Revert to the previous formatting of the item.Guy Harris1-7/+3
svn path=/trunk/; revision=13058
2005-01-16Display the keycode list for a modifier a bit differently (don't listGuy Harris1-12/+12
the modifier name for every keycode, just give the modifier name once and then show all the keycodes), and use "proto_item_append_text()" rather than building a string. Clean up white space. svn path=/trunk/; revision=13057
2005-01-15Correction for TP-Validity-Period extended format, from Victor Stratan:Guy Harris1-4/+5
Fix 1: Offset not incremented for relative type Fix 2: Semioctets not reversed for HHMMSS relative type svn path=/trunk/; revision=13056
2005-01-15From Carlos Pignataro: Layer Two Tunneling Protocol version 3 [L2TPv3]Guy Harris2-55/+362
updates and enhancements: - Added Cookie and L2-Specific sublayer support via preferences dialog. - Added carried payload dissecting support from draft-ietf-l2tpext-pwe3-* and draft-townsley-l2tpv3-mpls-02.txt - Completed missing message types (call types) and result codes for stopccn and cdn. - Fixed conditionals for avp_vendor_id (Vendor-Specific AVPs) - Changed Pseudowire Capabilities List AVPs to use subtree instead of tab - Added numeric value of result and error codes - Added Session ID for v3 data packets and missing flags and reserved - Added version to the L2TPv3 protocol tree - Changed `Tunnel Id' to `Control Connection Id' for v3 - Fixed offset for ctrl_tree on L2TPv3 over UDP - Added `L2TPv3' in the COL_PROTOCOL and fixed handling of L2TP version svn path=/trunk/; revision=13055
2005-01-15From Yann: handle OLSR messages with an unknown message type, using theGuy Harris1-16/+44
message length. svn path=/trunk/; revision=13044
2005-01-14Add support for extended sequence numbers as specified in Annex A of Q.703.Michael Tüxen1-60/+132
svn path=/trunk/; revision=13042
2005-01-14If an item in a source description chunk begins with 4 bytes of zero,Guy Harris1-16/+7
that doesn't mean it's padding at the end of a previous item - it might, for example, be the *first* item in the chunk. Don't treat it as padding. Do, however, treat an item that begins with a zero byte as an item, but break out of the loop processing items as soon as the item type is put into the protocol tree, as there's no length field or data in an RTCP_SDES_END item. Fix the comment for that loop to indicate that the loop checks both for end-of-frame and for an RTCP_SDES_END item. svn path=/trunk/; revision=13040
2005-01-14Pass 0, not FALSE, as the FCS length argument (FALSE is defined as 0,Guy Harris1-2/+2
but the field is integral, not Boolean, so it's clearer if it's passed as 0). svn path=/trunk/; revision=13039
2005-01-14From Greg Morris: Improve malformed packet handling.Gerald Combs1-3/+3
svn path=/trunk/; revision=13034
2005-01-14Fix indentation.Guy Harris1-73/+98
Catch size values >= 0x80000000 and throw an exception rather than crashing with an assertion. svn path=/trunk/; revision=13032
2005-01-14From Rene Pilz:Guy Harris2-47/+1791
- Fix partly wrong cause values in the gmm (found by Miklos Szurdi) - Fix high/low nibble swap of the force to standby field (found by Miklos Szurdi) - Dissect all elements svn path=/trunk/; revision=13030
2005-01-14From Stefano Pettini: RMT support for ALC and NORM.Guy Harris11-0/+1973
svn path=/trunk/; revision=13029
2005-01-13Some minor bugfixes to H225 functions exported and an OID added and one OID ↵Anders Broman4-37/+39
for H245 svn path=/trunk/; revision=13024
2005-01-13Use tcp_dissect_pdus() for DLSw-over-TCP.Guy Harris1-40/+156
Have the DLSw dissector reject packets with an unknown version field. Leave out some more fields when dissecting Capability Exchange packets, as they're not used in those packets. Show numbers in hex when appropriate. Show the individual subfields of the flow control and SSP flags fields. Show the frame direction field with val_to_str(), and show the raw value. Clean up indentation. svn path=/trunk/; revision=13019
2005-01-13Updates from Susanne Edlund.Guy Harris1-127/+1
Remove bogus boilerplate from introductory comment. svn path=/trunk/; revision=13018
2005-01-13OPT RRs don't have a class field.Guy Harris1-4/+7
svn path=/trunk/; revision=13016
2005-01-13Use symbolic names for ARP types.Guy Harris1-5/+7
Clean up indentation. svn path=/trunk/; revision=13015
2005-01-13HTTP requests have no content if there's no Content-Length header and noGuy Harris1-9/+51
Transfer-Encoding header. svn path=/trunk/; revision=13014
2005-01-13Display PER booleans the way other bitfields are displayed.Guy Harris1-2/+2
svn path=/trunk/; revision=13013
2005-01-13Don't crash on a negative lengthAnders Broman1-0/+4
svn path=/trunk/; revision=13012
2005-01-12add new function dissect_dcerpc_uuid_t and let dissect_ndr_uuid_t call itUlf Lamping4-78/+60
svn path=/trunk/; revision=13006
2005-01-09From Deepak Jain: L2TP v3 (draft 15) support.Guy Harris1-633/+1198
Add VENDOR_IETF to <epan/sminmpec.h>, and add an entry for it to sminmpec_values[], so that the L2TP dissector can use them rather than defining its own copy of the private enterprise number values and table - and make it do so. svn path=/trunk/; revision=12999
2005-01-09Properly declare "dissect_h245()" and "dissect_h245_h245()" as returningGuy Harris2-3/+5
nothing. svn path=/trunk/; revision=12998
2005-01-08Get rid of some of the boilerplate comments from the sample dissector,Guy Harris1-8/+3
and de-boilerplate another part of the comment. Fix a test of "octet_aligned" that was setting it to false rather than testing whether it was false. svn path=/trunk/; revision=12996
2005-01-08Reinsert dissection of h450 messagesAnders Broman1-5/+22
svn path=/trunk/; revision=12994
2005-01-08Add a dissector for RTP payload AMR RFC 3267Anders Broman2-0/+256
svn path=/trunk/; revision=12993
2005-01-08Generate "conversations" code correctly, adaptions to changes in asn2eth ↵Anders Broman3-478/+530
generator. Regenerate with latest asn2eth compiler. svn path=/trunk/; revision=12992
2005-01-07Use BASE_NONE, not FT_NONE, for the "base" value of an FT_STRING field.Guy Harris1-1/+1
svn path=/trunk/; revision=12987
2005-01-07Get rid of duplicate "element signature" field.Guy Harris1-65/+39
Clean up indentation. The signatures are 4-byte strings - treat them as such. Don't hide fields - dissectors should show what all bytes, other than perhaps padding bytes, are. Don't use the tvb_format_text-ified versions of strings as the value - Ethereal already deals with non-printable characters when displaying them. When creating a subset tvbuff that runs to the end of the parent, use -1 as the length, don't calculate the length ourselves. Use "tvb_reported_length()", not "tvb_length()", in loops that parse the entire packet. svn path=/trunk/; revision=12986
2005-01-07Define data_handle at startup.Gerald Combs1-0/+2
svn path=/trunk/; revision=12984
2005-01-07From Mike Duigou: JXTA protocol support.Guy Harris2-0/+549
svn path=/trunk/; revision=12982
2005-01-07From Carlos Pignataro:Guy Harris2-1/+215
o BGPv4 SAFI-Specific Attribute support - draft-kapoor-nalawade-idr-bgp-ssa-00.txt o Tunnel SAFI support for BGP - draft-nalawade-kapoor-tunnel-safi-02.txt o Small length fix svn path=/trunk/; revision=12977
2005-01-07From Chris Maynard: free strings fetched with "tvb_fake_unicode()" whenGuy Harris1-1/+5
we're done with them. svn path=/trunk/; revision=12974
2005-01-07From Chris Maynard: free mallocated strings when we're done with them. Guy Harris1-20/+20
(There's still the risk of a leak if we throw an exception before we free the string.) Clean up indentation. svn path=/trunk/; revision=12973
2005-01-07From Chris Maynard: free strings fetched with "tvb_get_string()".Guy Harris1-184/+333
Use "format_text()" or "tvb_format_text()" with the %s format, to handle non-printable characters. When uncompressing data into a new tvbuff, add it to the list of data sources as we do elsewhere. When putting items into the protocol tree from an uncompressed tvbuff, use the offset into the tvbuff and the length of the item. Fetch string lengths into a variable and use the variable rather than repeatedly fetching the length from a tvbuff. Use -1 rather than tvb_length_remaining() when putting a "to the end of the tvbuff" item into the protocol tree. Use "proto_tree_add_item()" to put items into the tree, rather than "proto_tree_add_xxx" calls with a "tvb_get_yyy" call as the argument. If we've fetched a value into a variable, don't re-fetch it in "proto_tree_add_xxx" calls. svn path=/trunk/; revision=12971
2005-01-06Add a dissector to handle IEEE 802a's OUI Extended Ethertype; dissectorsGuy Harris4-0/+230
can register an OUI, and PIDs for that OUI, in the same fashion that they can do so for SNAP (after which the 802a OUI Extended Ethertype is clearly modeled). svn path=/trunk/; revision=12967
2005-01-06Handle the case where nobody registers any OUIs and oui_info_table isGuy Harris1-3/+6
thus null. svn path=/trunk/; revision=12966
2005-01-05From Chris Maynard: catch a case where a string allocated withGuy Harris1-1/+1
"tvb_get_string()" wasn't freed. (It appears there can also be leaks if an exception is thrown while dissecting.) svn path=/trunk/; revision=12965
2005-01-05Use tvb_format_text() with %s format items, to handle non-printableGuy Harris1-5/+5
characters. Clean up indentation. svn path=/trunk/; revision=12964
2005-01-05From Chris Maynard: don't extract strings with "tvb_get_string()" ifGuy Harris1-6/+8
we're not going to use them, and free them when we're done with them. Clean up white space. svn path=/trunk/; revision=12963
2005-01-05From Chris Maynard: free strings allocated by "tvb_get_string()" afterGuy Harris1-0/+1
we're done with them. svn path=/trunk/; revision=12962
2005-01-05From Chris Maynard: free strings allocated by "tvb_fake_unicode()" afterGuy Harris1-0/+1
we're done with them. svn path=/trunk/; revision=12961
2005-01-05From Chris Maynard: free mallocated data.Guy Harris1-5/+14
Don't assign the result of a routine that mallocates data to a const pointer - that forces us to cast the pointer when freeing the data. svn path=/trunk/; revision=12960
2005-01-05From Chris Maynard: free strings even if we don't put them into theGuy Harris1-1/+1
protocol tree. svn path=/trunk/; revision=12959
2005-01-05From Chris Maynard: free strings fetched with "tvb_fake_unicode()".Guy Harris1-0/+1
svn path=/trunk/; revision=12956
2005-01-05Free the image type string as soon as we're done with it, so that weGuy Harris1-1/+8
don't leak it (even if we throw an exception processing the image). svn path=/trunk/; revision=12955
2005-01-05From Chris Maynard: add a missing free of a string fetched withGuy Harris1-0/+2
tvb_get_string(). svn path=/trunk/; revision=12954
2005-01-05From Chris Maynard: don't fetch a string if we're not going to use it.Guy Harris1-7/+5
Also, move up the freeing of the tag string to immediately after we're done with it, so we don't leak it if we throw an exception getting the value. svn path=/trunk/; revision=12953