Commit Graph

15 Commits

Author SHA1 Message Date
Bill Meier 82ffa86cd3 Mark a function arg as _U_
svn path=/trunk/; revision=37246
2011-05-18 17:19:42 +00:00
Bill Meier 5a243ce86f Don't assign to an unused 'proto_item *': Coverity 939 [UNUSED];
Don't create a subtree which is never used: Coverity 940 [UNUSED].

svn path=/trunk/; revision=37243
2011-05-18 16:52:45 +00:00
Jeff Morriss d553df218e Use tvb_memeql().
Use tvb_ip_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 to ensure the
return string is NULL terminated.

svn path=/trunk/; revision=35547
2011-01-16 03:46:16 +00:00
Bill Meier 69df32fb11 #include <string.h> not needed.
svn path=/trunk/; revision=32411
2010-04-06 22:09:47 +00:00
Bill Meier 09764dd969 Remove unneeded #include <stdio.h>
svn path=/trunk/; revision=32367
2010-04-03 21:55:23 +00:00
Bill Meier b52d95d591 #include <emem.h> not req'd
svn path=/trunk/; revision=26091
2008-08-26 01:28:50 +00:00
Guy Harris 83fc9d5e09 Constify a bunch of stuff, to squelch -Wwrite-strings warnings.
epan/dissectors/packet-ncp2222.inc is a bit hard to fix, so we're not
ready to enable that warning by default yet.

Throw in some casts to handle GLib routines that take arbitrary
non-const pointers (they can later return the pointers, and some
callers might want to modify or free up those pointers in cases where
they're known to be writable or allocated).

Use ep_tvb_memdup() rather than a combination of ep_alloc() and
tvb_memcpy().

Clean up some indentation.

svn path=/trunk/; revision=25601
2008-06-25 09:12:35 +00:00
Gerald Combs 106968d7e8 From Hariharan Ananthakrishnan:
I have added two new display filters to support filtering based on LSP-ID and
hostname for ISIS protocol. 

svn path=/trunk/; revision=24621
2008-03-13 23:45:48 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Guy Harris b7b80d94be Move a pile of protocol-related headers from the top-level source
directory to the epan directory.  Some of them should perhaps ultimately
be moved to epan/dissectors, if they pertain only to stuff exported by a
particular dissector.

Fix Gerald's e-mail address in files we're moving.

svn path=/trunk/; revision=15844
2005-09-17 00:02:31 +00:00
Guy Harris 802dc99d45 Use "proto_item_append_text()" rather than filling up an allocated
buffer.  This fixes one place where the "NLPID(s):" wasn't being put
into the protocol tree item.

svn path=/trunk/; revision=15658
2005-09-01 11:34:10 +00:00
Ronnie Sahlberg d4c04e3c57 move an array off the stack into emem allocated memory
svn path=/trunk/; revision=15619
2005-08-30 08:47:25 +00:00
Ronnie Sahlberg 4d2b9df7e0 change g_string_sprintf() into g_snprintf()
svn path=/trunk/; revision=15618
2005-08-30 08:41:18 +00:00
Gerald Combs 1906593816 Fix a buffer overflow in isis_dissect_nlpid_clv().
svn path=/trunk/; revision=14161
2005-04-22 04:07:56 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
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
2004-07-18 18:06:47 +00:00