aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-s5066.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-95/+95
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-6/+6
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
2011-08-08Dissectors don't need to #include <gmodule.h>wmeier1-1/+1
Also: #include <stdlib.h> not req'd in some cases. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38409 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-2/+2
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-01-19Fix a few gcc _Wshadow warnings ....wmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31580 f5534014-38df-0310-8fa8-9805f1628bb7
2010-01-13From Didier Gautheron:etxrab1-1/+0
col_clear.diff Remove calls to col_clear : - called twice. - before functions which also clear the column - by replacing col_clear + col_append_xxx with col_add_xxx https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4394 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31517 f5534014-38df-0310-8fa8-9805f1628bb7
2009-11-09Fixed a return statement.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30906 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29346 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_checkkrj1-3/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29345 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-98/+98
(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
2009-03-12From Menno Andriesse:stig1-3/+3
Check for correct tx_mode in dissect_s5066_21() and dissect_s5066_25(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27714 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-20Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27065 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix some typos and spelling (mostly in text strings)wmeier1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27037 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-17Fix typos and spelling (mostly in text strings) wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27028 f5534014-38df-0310-8fa8-9805f1628bb7
2008-09-15proto_reg_handoff: fix so port pref change works; gen'l cleanuopwmeier1-10/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26208 f5534014-38df-0310-8fa8-9805f1628bb7
2008-08-26#include <emem.h> not req'dwmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26091 f5534014-38df-0310-8fa8-9805f1628bb7
2008-07-11prefs_register_uint_preference() takes a pointer to a guint, not a pointer ↵morriss1-13/+13
to gint. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25711 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵sahlberg1-2/+2
tcp_dissect_pdus() to also include a packet_info pointer. there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19751 f5534014-38df-0310-8fa8-9805f1628bb7
2006-09-12from Taner Kurtulus and Menno Andriessesahlberg1-14/+83
Hi folks, We think we've found a bug in STANAG 5066 SIS layer dissector. Problem is at S_EXPEDITED_UNIDATA_INDICATION S_Prim's parser and occurs when we receive a U_PDU via expedited unidata channel. Dissector tries to parse first 2 bytes of U_PDU as a header size of type 21 s_prim (S_UNIDATA_INDICATION). But, this is not an wanted process on that parser. Maybe, it was forgotten unchanged from S_UNIDATA_INDICATION dissector while copying it. So it shows data (U_PDU) 2 bytes short. Moreover, if data is just 1-byte, TCP datagrams receive TCP checksum error. Confirmed. It was indeed a "copy-paste-did not edit correctly" bug. While going over the code once more, I found: 1 - One bug in the heuristic. (Changed '&&' to '||') 2 - One to-do that was already done. (Removed the /* TODO */) 3 - One to-do that is now done. ;-) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19210 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-04From Menno Andriessejake1-1/+5
By popular request (sort of...) here is a patch for the S5066 dissector to enable TCP port preference. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18092 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵sahlberg1-0/+1
acked_packets (i.e. packets that have interesting tcp properties such as being retransmissions etc) hang off the per conversation tcpd struct instead of being global. while this should improve performance by unmeasurably little it does have the sideeffect that once we finish the rewrite tcp analysis might actually work and work well even for tcp over tcp tunnelling. this also means that if you include packet-tcp.h you also need to include emem.h . git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17681 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-16From Graeme Lunt:etxrab1-2/+2
Here are a number of small patches for asn1 based dissectors: acse: release request/response column information (many X.400/X.500 unbinds are empty) "standardised" PNAME to "ISO 8650-1 OSI Association Control Service" fix for crash when using EXTERNAL dissector rtse: column information when attempting a resume x509if: generation of LDAP-style DNs from RDNSequences new function x509if_get_last_dn() to get the last DN generated. x509af: DSS parameters certificate extension naming subject naming of certificate x509sat: Guide syntax (as SET now supported) PDU exports. cms: verification of message digest attribute (SHA-1 and MD5) ess: enumerated/restrictive/permissive/informative security categories x411: generation of string encoding of X.400 addresses, trace information and message identifiers. s4406: separate types for primary and copy precedence to allow better filtering (e.g. primary precedence = flash) priority-level-qualifier git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16508 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-07Use "proto_tree_add_item()", not "proto_tree_add_bytes()", if you'reguy1-7/+6
just supplying the result of "tvb_get_ptr()" with the same tvbuff, offset, and length as the byte array. Get rid of an unused variable. Set svn:keywords and svn:eol-style appropriately. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16430 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-07Fix bug 575, from Menno Andriesse:gerald1-51/+53
In two functions that call proto_tree_add_bytes I forgot the 'tvb_get_ptr' function, the argument was 'FALSE' instead. This gave a predictable 'NULL' pointer bug... Fix an ftsanity.py error. Fixup whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16428 f5534014-38df-0310-8fa8-9805f1628bb7
2005-11-04From Menno Andriessesahlberg1-0/+1293
New protocol : STANAG 5066 I changed it from being a plugin to a builtin dissector and also changed a couple of small bugs git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16390 f5534014-38df-0310-8fa8-9805f1628bb7