Bill Meier
bab856a504
General cleanup including as appropriate:
...
- Remove unneeded #include files (string.h, addr_resolv.h);
- Remove unneeded 'if(!initialized){...}' in proto_reg_handoff();
- Reformat hf[] entries;
- Remove unneeded variable initializations;
- "localize" some variables;
- Whitespace/indentation/long lines/formatting
(in one case: re-order code slightly to not do col_set_str() & etc until
after initial "frame acceptance testing" by dissector.
svn path=/trunk/; revision=42683
2012-05-17 20:13:22 +00:00
Bill Meier
87cf82e056
Use tvb_new_subset_remaining() rather than tvb_new_subset();
...
#include <styring.h> not req'd (in a few cases);
Minor reformating & whitespace cleanup.
svn path=/trunk/; revision=41374
2012-03-06 16:58:09 +00:00
Bill Meier
126aa85393
Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, 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-15 18:46:26 +00:00
Jaap Keuter
39d38636d1
From Håkon Nessjøen
...
Additions:
More correct way of checking direction of packets
Support for two new packet types: ping, pingreply
svn path=/trunk/; revision=36042
2011-02-24 06:22:52 +00:00
Jeff Morriss
6e0fcb7ab5
Introduce, and start using, tvb_eth_to_str().
...
Export tvb_*_to_str() and put them in alphabetical order.
svn path=/trunk/; revision=35602
2011-01-21 02:48:55 +00:00
Guy Harris
a8bc4a0d13
Rename the routines that handle dissector tables with unsigned integer
...
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
2010-12-20 05:35:29 +00:00
Bill Meier
5a7cd67ec7
Use ENC_NA rather than FALSE.
...
svn path=/trunk/; revision=33308
2010-06-23 20:17:33 +00:00
Stig Bjørlykke
800a4fff2d
Use correct data type for port number.
...
svn path=/trunk/; revision=33306
2010-06-23 19:59:35 +00:00
Bill Meier
d0d5de6d1e
- Use tvb_reported_length() instead of tvb_length() in a few cases;
...
- col_clear() not req'd;
- Use guint32 for offset;
- Minor whitespace/indentation cleanup.
svn path=/trunk/; revision=33302
2010-06-23 14:24:09 +00:00
Stig Bjørlykke
2b829eaebb
Added link to a protocol description.
...
Show the control packet magic number.
Set correct length on the control packet item.
Corrected some blurbs.
svn path=/trunk/; revision=33295
2010-06-23 07:26:50 +00:00
Stig Bjørlykke
86abd88b20
From Håkon Nessjøen:
...
Added configurability of port number.
From me:
Removed some unneeded variable inits.
svn path=/trunk/; revision=33292
2010-06-22 16:56:07 +00:00
Stig Bjørlykke
babe65cbab
From Håkon Nessjøen via bug 4899:
...
Dissector for Mikrotik RouterOS protocol for telneting without using IP
addresses.
From me:
Code cleanup.
svn path=/trunk/; revision=33289
2010-06-22 15:12:20 +00:00