aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-srvloc.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-11Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-3/+6
proto_tree_add_item() calls. (We actually need to support additional encodings with ENC_ values and use them.) svn path=/trunk/; revision=42558
2012-03-31Fix off by one shift errors introduced in r39530 where it seemed proper[1]Jakub Zawadzki1-4/+4
[1] I'm unsure of packet-dtpt, so I haven't patch it. svn path=/trunk/; revision=41873
2011-10-26Fix Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-2/+3
svn path=/trunk/; revision=39608
2011-10-23Replace use of tvb_get_ephemeral_faked_unicode() by use of ↵Bill Meier1-5/+5
tvb_get_ephemeral_unicode_string(); Fix encoding arg as needed. svn path=/trunk/; revision=39530
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-2/+2
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵Bill Meier1-28/+28
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). svn path=/trunk/; revision=39426
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-14/+14
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 svn path=/trunk/; revision=39288
2011-04-22Fix various warnings found by clang 3.0 (trunk 129935) complier:Stephen Fisher1-2/+1
- Extraneous parentheses - Use _U_ for unused function parameters instead of assigning the variable to itself svn path=/trunk/; revision=36826
2011-01-16There's no need to pass the result of tvb_get_ptr() as the 'value' inJeff Morriss1-2/+2
proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string() or tvb_get_const_stringz(). Use tvb_memeql() & tvb_memcmp(). svn path=/trunk/; revision=35558
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-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.) svn path=/trunk/; revision=35224
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-2/+2
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL == (int)BASE_NONE, so there's no source or binary compatiblity issue, although we might want to eliminate BASE_NONE at some point and have the BASE_ values used with integral types start at 0, so that you can't specify BASE_NONE for an integral field. svn path=/trunk/; revision=31319
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29340
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-59/+59
(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 svn path=/trunk/; revision=28770
2009-05-05The expert_item pointers and expert_status values don't need to beGuy Harris1-519/+519
static; make them auto variables. Make sure that expert information is added outside "if (tree) { }", so it gets added even if we're not building the protocol tree. Clean up white space. svn path=/trunk/; revision=28281
2009-03-31#include reassemble.h not req'dBill Meier1-1/+0
svn path=/trunk/; revision=27911
2009-03-29More size_t casts.Anders Broman1-3/+3
svn path=/trunk/; revision=27887
2008-12-17Fix some typos and spelling (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27037
2008-07-11Fix a couple signed/unsigned char mismatches (still more here)Jeff Morriss1-4/+4
svn path=/trunk/; revision=25713
2008-02-02Rewrote some prohibited APIs in epan/dissectors/ (sprintf, strcpy, strcat).Stig Bjørlykke1-2/+2
If we get some truncated strings we probably overwrote some buffers... svn path=/trunk/; revision=24249
2008-01-25From Bill Florac:Jaap Keuter1-10/+10
Corrected ATTRRPLY dissection. Removed a few unnecessary semi-colons. svn path=/trunk/; revision=24193
2008-01-25From Bill Florac::Jaap Keuter1-59/+111
Corrected display of attributes from previous patch (24165) For V2, if field length was 0, do not display the empty field. This makes it easier to read. I only did V2 as I do not have means to test V1. svn path=/trunk/; revision=24189
2008-01-22From Bill Florac:Jaap Keuter1-1/+1
Patch in revision 24163 is missing same fix needed for "case SRVREG", at line 1156. svn path=/trunk/; revision=24165
2008-01-22From Bill Florac:Jaap Keuter1-3/+52
The displaying of attribute-lists in an "Attribute Reply" (ATTRRPLY) seems to be written to display some special non-conforming attributes. Conforming attributes are either displayed wrong or not displayed at all. When displaying an attributes-list in a "Service Registration" (SRVREG), the attribute list is only displayed as a single string (and usually truncated). While this is not wrong, it should be broken up into the comma separated attributes as "Attribute Requests" tries to do. svn path=/trunk/; revision=24163
2006-10-31change the signature for the get_pdu_len() function pointer passed to ↵Ronnie Sahlberg1-1/+1
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 svn path=/trunk/; revision=19751
2006-08-28Fix the decoding of SLP attributes. Open SLP has the ability to pass back ↵Greg Morris1-60/+97
multiple attribute types in each reply. Previously the dissector only would dissect address attributes. The change adds parsing of attributes and proper dissection of names and address attributes contained in the same reply payload. svn path=/trunk/; revision=19060
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-4/+4
svn path=/trunk/; revision=18196
2006-03-20waste a couple of bytes per tcp conversation and make the tree for ↵Ronnie Sahlberg1-1/+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 . svn path=/trunk/; revision=17681
2006-01-11If we pass a short length to unicode_to_bytes(), return an empty stringGerald Combs1-29/+33
instead of clobbering a canary. This replicates its pre-canarification behavior (which may not be correct). Fixup whitespace. svn path=/trunk/; revision=17001
2005-11-23From Greg Morris:Anders Broman1-12/+63
This update adds info column data for srvloc request/reply to display SLP version and XID information. Also adds expert data for srvloc error conditions svn path=/trunk/; revision=16571
2005-10-12Don't use a static, fixed-length buffer for the result ofGuy Harris1-1/+21
unicode_to_bytes() - allocate one large enough for the string we'll be generating, using ep_alloc(). svn path=/trunk/; revision=16206
2005-08-10convert some tvb_fake_unicode() to tvb_get_ephemeral_faked_unicode()Ronnie Sahlberg1-6/+3
svn path=/trunk/; revision=15272
2005-04-25Fix an infinite loop.Gerald Combs1-1/+1
svn path=/trunk/; revision=14182
2005-04-20Use proto_tree_add_time() for hf_srvloc_authblkv2_timestamp. Fixes bug 81.Gerald Combs1-1/+4
svn path=/trunk/; revision=14150
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-1/+1
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
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
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-21Prevent the word "desegmentation" at the GUI, but use reassembling at that ↵Ulf Lamping1-2/+3
places, as we also use "defragmentation" and "reassembling". Use reassembling as the general term for such actions. I (hopefully) didn't changed any protocol fields or preference file names, but only the GUI labels appearing in the protocol display and the protocol preferences. Also added a note to the protocol preferences (where appropriate), that you have to enable "Allow subdissectors to reassemble TCP streams" at the corresponding protocol settings for TCP reassembling to take effect. If you encounter any mistakes I've made here, please let me know... svn path=/trunk/; revision=11784
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1699
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. svn path=/trunk/; revision=11410