AndersBroman
95f138e407
Replace deprecated tvb_length APIs
...
Change-Id: Idfd3bed012e823de544fe4de483c8f095fc7c65d
Reviewed-on: https://code.wireshark.org/review/8086
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-04-16 11:36:43 +00:00
Alexis La Goutte
e2fa5a516d
CTDB: fix Copy-paste error (CID 11158596)
...
Change-Id: Ieaa70505f4b880569be6126166a71f32d84f79a8
Reviewed-on: https://code.wireshark.org/review/6470
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-10 15:55:15 +00:00
Bill Meier
b5d7b7ab6e
Cleanup use of #includes in non-generated epan/dissector/*.c
...
Specifically:
- Set packet.h to be the first wireshark #include after
config.h and "system" #includes.
packet.h added as an #include in some cases when missing.
- Remove some #includes included (directly/indirectly) in
packet.h. E.g., glib.h.
(Done only for those files including packet.h).
- As needed, move "system" #includes to be after config.h and
before wireshark #includes.
- Rework various #include file specifications for consistency.
- Misc.
Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95
Reviewed-on: https://code.wireshark.org/review/5923
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-12-21 05:46:22 +00:00
Bill Meier
482e8e5651
Add editor modelines & adjust indentation/whitespace as needed.
...
Change-Id: Ice2d93632cd42dfcef3bfbf0e15f2a8a147278fc
Reviewed-on: https://code.wireshark.org/review/4433
Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-10-02 22:30:52 +00:00
Guy Harris
ce3d2ff3de
Rename dissector_add_handle() to dissector_add_for_decode_as().
...
Hopefully that name makes it clear what the routiner's purpose is, and
will encourage people to use it rather than using dissector_add_uint()
with a bogus integer value.
Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8
Reviewed-on: https://code.wireshark.org/review/2483
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-20 16:43:56 +00:00
Michael Mann
14824e6adf
Revert "Fixup: tvb_* -> tvb_captured"
...
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html
This reverts commit 246fe2ca4c
.
Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f
Reviewed-on: https://code.wireshark.org/review/2430
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19 18:25:59 +00:00
Dario Lombardo
246fe2ca4c
Fixup: tvb_* -> tvb_captured
...
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f
Reviewed-on: https://code.wireshark.org/review/2377
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-18 14:14:58 +00:00
Alexis La Goutte
296591399f
Remove all $Id$ from top of file
...
(Using sed : sed -i '/^ \* \$Id\$/,+1 d')
Fix manually some typo (in export_object_dicom.c and crc16-plain.c)
Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8
Reviewed-on: https://code.wireshark.org/review/497
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04 14:27:33 +00:00
Jakub Zawadzki
ae59b09443
Add missing includes in order to remove exceptions.h from proto.h (next commit).
...
svn path=/trunk/; revision=53230
2013-11-10 15:59:37 +00:00
Michael Mann
9e3f9b449f
expert_add_info_format_text -> expert_add_info_format
...
svn path=/trunk/; revision=51852
2013-09-09 00:44:09 +00:00
Evan Huus
58804a6f15
Convert another 10 dissectors to wmem.
...
svn path=/trunk/; revision=51612
2013-08-31 14:32:01 +00:00
Michael Mann
7e8e5b347e
Batch of filterable expert_infos.
...
svn path=/trunk/; revision=49581
2013-05-25 17:06:40 +00:00
Anders Broman
5a85b7fed2
[-Wmissing-prototypes]
...
Use explicit casts.
svn path=/trunk/; revision=48338
2013-03-16 08:52:09 +00:00
Jeff Morriss
2552c750e5
We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
...
svn path=/trunk/; revision=45017
2012-09-20 02:03:38 +00:00
Jakub Zawadzki
5a8783f5b1
Initial commit to support yet another method of passing data between dissectors.
...
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL
svn path=/trunk/; revision=44860
2012-09-10 21:40:21 +00:00
Gerald Combs
54fcbe03ff
Add a check for the number of nodes. Fixes a DoS in bug 7573 reported by
...
Ben Schmidt.
svn path=/trunk/; revision=44403
2012-08-09 22:04:46 +00:00
Jakub Zawadzki
b18e880040
Update FSF address - part II.
...
svn path=/trunk/; revision=43538
2012-06-28 23:18:38 +00:00
Alexis La Goutte
52ba0a20db
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
...
svn path=/trunk/; revision=39607
2011-10-26 18:01:12 +00:00
Anders Broman
fc447d3377
Get rid of check_col, while at it set ENC.
...
svn path=/trunk/; revision=39147
2011-09-26 09:01:17 +00:00
Bill Meier
2bf572bc41
Remove unneeded #includes: proto.h,tvbuff.h,value_string.h,stdlib.h,...
...
svn path=/trunk/; revision=38413
2011-08-08 17:59:32 +00:00
Bill Meier
e7568712ef
Define some fcns & vars as static;
...
Minor whitespace and comments cleanup.
svn path=/trunk/; revision=34477
2010-10-11 19:00:55 +00:00
Jeff Morriss
0ff5638f37
Replace blurbs that match the name (case insensitive) with NULL.
...
svn path=/trunk/; revision=34227
2010-09-23 21:46:31 +00:00
Bill Meier
055dd62063
#include <string.h> not needed.
...
svn path=/trunk/; revision=32410
2010-04-06 21:14:01 +00:00
Bill Meier
09764dd969
Remove unneeded #include <stdio.h>
...
svn path=/trunk/; revision=32367
2010-04-03 21:55:23 +00:00
Kovarththanan Rajaratnam
65c53fedb6
Don't guard col_append_str with check_col
...
svn path=/trunk/; revision=30125
2009-09-24 20:00:21 +00:00
Kovarththanan Rajaratnam
ac463d2697
Don't guard col_clear with col_check
...
svn path=/trunk/; revision=29346
2009-08-09 08:14:59 +00:00
Kovarththanan Rajaratnam
6110a96f68
Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_check
...
svn path=/trunk/; revision=29345
2009-08-09 07:59:51 +00:00
Stig Bjørlykke
b228488bc0
From Kovarththanan Rajaratnam via bug 3548:
...
(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-06-18 21:30:42 +00:00
Bill Meier
09d097e7a7
#include <conversation.h> not req'd ....
...
svn path=/trunk/; revision=27389
2009-02-06 20:33:53 +00:00
Bill Meier
77b81b391b
#include <prefs.h> not req'd
...
svn path=/trunk/; revision=26089
2008-08-25 22:06:20 +00:00
Guy Harris
82177e1b32
Frame numbers are unsigned, so 0xffffffff isn't a special out-of-band
...
value. They start at 1, though, so 0 *is* a special out-of-band value.
There is no guarantee that you can use a pointer as a 32-bit integral
value; the compiler warns if you do, at least on some platforms.
svn path=/trunk/; revision=25744
2008-07-15 07:08:30 +00:00
Anders Broman
1950ffc214
Apply the small performance enhancment patches for:
...
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster.
Replace
- col_append_fstr() with faster col_append_str()
- col_add_str() with col_set_str()
when it's safe
svn path=/trunk/; revision=23252
2007-10-23 05:50:00 +00:00
Ronnie Sahlberg
cca87411fa
get rid of a check for null we dont need
...
coverity 257
svn path=/trunk/; revision=23044
2007-10-02 08:21:25 +00:00
Ronnie Sahlberg
d7c58bc829
add more control names
...
svn path=/trunk/; revision=22944
2007-09-25 03:38:28 +00:00
Ronnie Sahlberg
90b34f5b69
improve the ctdb dissector to track request/responses for controls and
...
start decoding some control payload
svn path=/trunk/; revision=22700
2007-08-28 07:34:05 +00:00
Ronnie Sahlberg
a17d4a117b
add the name for the keeaplive pdu
...
svn path=/trunk/; revision=22035
2007-06-04 07:35:05 +00:00
Ronnie Sahlberg
c2456b8f4a
there is no longer a FINISHED pdu in the protocol
...
svn path=/trunk/; revision=22034
2007-06-04 07:24:55 +00:00
Ronnie Sahlberg
ff26c88dca
srvid is also aligned to an 8 byte boundary
...
svn path=/trunk/; revision=22029
2007-06-02 23:08:21 +00:00
Ronnie Sahlberg
1445df7446
add a new field to one of the pdus
...
rsn in dmaster request/response is aligned to a 64 bit bundary
svn path=/trunk/; revision=22028
2007-06-02 22:50:31 +00:00
Ronnie Sahlberg
add05b70d7
show the database name for ctdb.dbid fields
...
svn path=/trunk/; revision=22027
2007-06-02 22:31:12 +00:00
Ronnie Sahlberg
16453761ca
update the ctdb controls to match the current version of the protocol
...
svn path=/trunk/; revision=22023
2007-06-02 08:20:58 +00:00
Jaap Keuter
e51904c765
Fix the windows build by changing uint32_t into guint32.
...
svn path=/trunk/; revision=21648
2007-05-02 18:42:53 +00:00
Ronnie Sahlberg
46602a91ae
updates to the ctdb dissector to follow the latest protocol
...
svn path=/trunk/; revision=21646
2007-05-02 13:32:07 +00:00
Ronnie Sahlberg
c84eda3a80
add request/response matching for ctdb
...
svn path=/trunk/; revision=21523
2007-04-23 09:44:13 +00:00
Ronnie Sahlberg
5f469a9e5a
update of dissector to reflect wire format changes
...
svn path=/trunk/; revision=21345
2007-04-06 05:02:41 +00:00
Ronnie Sahlberg
d7d047acb2
initial CTDB dissector
...
svn path=/trunk/; revision=21344
2007-04-06 04:27:59 +00:00