aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gmhdr.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-2/+2
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-12Fix some proto_tree_add_item() FT_ABSOLUTE_TIME encoding parameters:wmeier1-1/+1
Again: a tip o'the hat to Guy. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39383 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-6/+6
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-1/+1
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-1/+1
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-11Fix an error in a comment I added last week.morriss1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34480 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-08Don't use a TRY/CATCH block just to ignore any exceptions thrown bymorriss1-13/+11
tvb_get_ntohs(): check the remaining tvb length instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34435 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-14From tieuthunhi:etxrab1-3/+6
Add new time source for Gigamon header. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5210 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34114 f5534014-38df-0310-8fa8-9805f1628bb7
2010-07-09Check our field lengths. Should fix the recent randpkt errors.gerald1-0/+14
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33481 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-23Strengthen test for Gigamon trailer;wmeier1-41/+41
Change some indentation/spacing. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33293 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-22Ensure no exceptions thrown while checking for Gigamon trailer.wmeier1-14/+15
(Builds upon the previous commit by Anders). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33291 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-22If the trailer is less than 4 bytes it's not a Gigamon hdr.etxrab1-0/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33287 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-21Corrected copyright header.stig1-2/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33276 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-21Added volatile to 'offset' (needed by my version of gcc).martinm1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33275 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-20Properly terminate gmhdr_ftype_timestamp[].guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33273 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-20Mark pinfo as unused.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33272 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-20More rework of the code:wmeier1-138/+86
- Refactor to use a separate function for common code; - Prefs callback not required; - Use val_to_str(...); - Fix issues relating to incorrect bytes highlighted in the hex view; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33271 f5534014-38df-0310-8fa8-9805f1628bb7
2010-06-19From tieuthunhi via bug 4887:stig1-0/+351
Add support for Gigamon headers (timestamp, source port, length, etc) that are inserted by Gigamon network equipments. From me: Various cleanup: - Register to "eth.trailer" heuristics for trailer. - Use standard dumping of timestamp. - Rewrote gmhdr_plfm_str handling. - Dump srcport details in a subtree. - Removed packte-gmhdr.h. - Ensure the while-loop will end. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33256 f5534014-38df-0310-8fa8-9805f1628bb7