aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mip.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.wmeier1-5/+5
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-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵wmeier1-2/+2
FT_STRINGZ, FT_UINT_STRING as follows: 1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39426 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-11Fix several cases wherein proto_tree_add_uint() was intended iso ↵wmeier1-7/+6
proto_tree_add_item(); One case would have caused display of a FT_UINT16 field with the wrong endianness. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39358 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-11Revert SVN #39347; There's a better way.wmeier1-6/+7
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39357 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10Fix additiuonal bugs in some proto_tree_add_item() 'encoding' args;wmeier1-7/+6
Two of the bugs would appear to have caused display of a FT_UINT16 field with the wrong endianness. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39347 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10Fix benign bug in some proto_tree_add_item() 'encoding' args;wmeier1-848/+846
Use consistent indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39346 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-10/+10
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_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39328 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-25/+25
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-7/+7
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-02-08Add NTP times using proto_tree_add_item().morriss1-13/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35876 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-14Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().morriss1-46/+46
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s. Replace some memcpy()+tvb_get_ptr() with tvb_memcpy(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35529 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-09-17Use val_to_str_ext() & friends to access sminmpec_values[];wmeier1-1/+1
Also: packet-nhrp.c: #include sminmpec.h not req'd; git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34143 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-06#include <string.h> not needed.wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32410 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-10No need for cvse_reserved as a variable; getting rid of it squelches aguy1-5/+3
compiler warning. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31854 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-10Define VENDOR_VERIZON in sminmpec.hetxrab1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31853 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-10From yi ren:etxrab1-57/+184
CVSE fields for MIP protocol is not correctly decoded. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4477 From me: - Fixed hf blurbs. - FT_BYTES, BASE_NONE - Updated value_strings from IANA registery. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31852 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-11From Martin Willi:jake1-5/+1
The attached patch fixes the check for types with the long extension format and re-enables it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31244 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-09From Didier Gautheron:etxrab1-5/+7
Dissectors using call_dissector() function inside a 'if (tree) {}' block. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4107 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30415 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()krj1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29446 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 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-07-06OK, nobody cared about the waring, so just remove thejmayer1-0/+4
test for now. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28958 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-22/+22
(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-22P64 changes: Fix some cases for which size_t is not requiredwmeier1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27822 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-18From Munenori Ohuchi:etxrab1-4/+162
Enhacement to support 'WiMAX Forum/3GPP2 Proxy Mobile IPv4'. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27770 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-19Back out r27047 and r27053.gerald1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27062 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Update calls to proto_tree_add_bytes_format to reflect r27047.gerald1-2/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27053 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-26From Ville Nuorvala :standel1-32/+512
adds support for the following RFCs (and RFC-to-be): - RFC 3519 Mobile IP Traversal of Network Address Translation (NAT) Devices - RFC 3543 Registration Revocation in Mobile IPv4 - RFC 4433 Mobile IPv4 Dynamic Home Agent (HA) Assignment (including the not yet published errata about the message extension using the short message extension format) - draft-ietf-mip4-message-string-ext Mobile IPv4 Message String Extension git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21948 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2006-01-05Bill Meier:jmayer1-1/+1
Spelling fixes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16956 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-20From jaap Keuter:etxrab1-0/+1
Taking a random dissector from the list on the Wiki I picked packet-enip.c. Nothing wrong with this one, I still ememified it. From Bart Braem: packet-mip.c does not have support for all registration denials by the foreign agent, code 77 was left out. The attached patch fixes that. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16868 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-21get rid of strcpy in packet-ntp.csahlberg1-3/+2
at the same time change ntp_fmt_ts to return a pointer to ian ep-allocated buffer. remove the redundant buffer parameter in the signature and change all callers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15939 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-01Show NTP times correctly.guy1-11/+16
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13560 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-0/+519
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7