metze/wireshark/wip.git
10 years agoFun and games with const.
Guy Harris [Wed, 15 Jan 2014 08:36:09 +0000 (08:36 -0000)]
Fun and games with const.

svn path=/trunk/; revision=54817

10 years agoExplain casting away const.
Guy Harris [Wed, 15 Jan 2014 08:35:55 +0000 (08:35 -0000)]
Explain casting away const.

svn path=/trunk/; revision=54816

10 years agoUpdate to version V12.3.0 (2013-12).
Anders Broman [Wed, 15 Jan 2014 07:13:23 +0000 (07:13 -0000)]
Update to version V12.3.0 (2013-12).

svn path=/trunk/; revision=54815

10 years agoDon't cast away constness.
Guy Harris [Wed, 15 Jan 2014 03:37:06 +0000 (03:37 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54814

10 years agoDon't cast away constness.
Guy Harris [Wed, 15 Jan 2014 03:35:44 +0000 (03:35 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54813

10 years agoReject pcap files that claim on-the-wire packet sizes > 64MB. This fixes many
Evan Huus [Wed, 15 Jan 2014 02:09:11 +0000 (02:09 -0000)]
Reject pcap files that claim on-the-wire packet sizes > 64MB. This fixes many
heuristic cases broken in r49999 when we permitted packets > 64KB, since that
relaxed so severely the definition of a valid packet header.

64MB is an arbitrary and perhaps suboptimal number, but it seems to do the right
thing in all the examples I have handy.

Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9634

svn path=/trunk/; revision=54812

10 years agoEliminate fvalue_set() in favor of routines that take arguments
Guy Harris [Wed, 15 Jan 2014 01:05:03 +0000 (01:05 -0000)]
Eliminate fvalue_set() in favor of routines that take arguments
appropriate for particular FT_ types.  This lets us do some more type
checking and lets us use const pointers when appropriate.

Constify a bunch of stuff, and don't cast away constness.

svn path=/trunk/; revision=54811

10 years agoMake it more clear that we're faking a git description for now.
Gerald Combs [Wed, 15 Jan 2014 00:52:27 +0000 (00:52 -0000)]
Make it more clear that we're faking a git description for now.

svn path=/trunk/; revision=54810

10 years agoCopy over recent changes from trunk-1.8 along with some local
Gerald Combs [Wed, 15 Jan 2014 00:51:38 +0000 (00:51 -0000)]
Copy over recent changes from trunk-1.8 along with some local
modifications.

  ------------------------------------------------------------------------
  r54807 | gerald | 2014-01-14 16:35:34 -0800 (Tue, 14 Jan 2014) | 2 lines

  Start using the output of 'git describe'.
  ------------------------------------------------------------------------
  r54805 | gerald | 2014-01-14 15:38:16 -0800 (Tue, 14 Jan 2014) | 2 lines

  Start adding support for plain git.
  ------------------------------------------------------------------------

svn path=/trunk/; revision=54809

10 years agoFix typo (Direcly => Directly)
Alexis La Goutte [Tue, 14 Jan 2014 20:48:30 +0000 (20:48 -0000)]
Fix typo (Direcly => Directly)

svn path=/trunk/; revision=54804

10 years agoAdd filetap/abi* to .gitignore
Alexis La Goutte [Tue, 14 Jan 2014 20:37:23 +0000 (20:37 -0000)]
Add filetap/abi* to .gitignore

svn path=/trunk/; revision=54803

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 18:42:54 +0000 (18:42 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54802

10 years agoWe have to cast away constness here, because C doesn't have
Guy Harris [Tue, 14 Jan 2014 18:42:16 +0000 (18:42 -0000)]
We have to cast away constness here, because C doesn't have
parameterized types.

svn path=/trunk/; revision=54801

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 18:35:36 +0000 (18:35 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54800

10 years agoRegenerate ANSI TCAP dissector from the changes in r54499.
Guy Harris [Tue, 14 Jan 2014 18:34:01 +0000 (18:34 -0000)]
Regenerate ANSI TCAP dissector from the changes in r54499.

svn path=/trunk/; revision=54799

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 18:19:31 +0000 (18:19 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54798

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 18:16:12 +0000 (18:16 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54797

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 18:12:14 +0000 (18:12 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54796

10 years agoConsistently use "guint8" for "8-bit byte".
Guy Harris [Tue, 14 Jan 2014 18:03:54 +0000 (18:03 -0000)]
Consistently use "guint8" for "8-bit byte".

Constify.

For routines that manipulate sequences of 8-bit bytes, have them take
guint8 pointers rather than void pointers.

Don't cast away constness.

svn path=/trunk/; revision=54795

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 17:49:50 +0000 (17:49 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54794

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 17:47:31 +0000 (17:47 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54793

10 years agoDon't make claims of constness that can't be guaranteed in terms the C
Guy Harris [Tue, 14 Jan 2014 17:45:03 +0000 (17:45 -0000)]
Don't make claims of constness that can't be guaranteed in terms the C
compiler can verify.

svn path=/trunk/; revision=54792

10 years agoFix -Wsometimes-uninitialized found by Clang
Alexis La Goutte [Tue, 14 Jan 2014 17:44:21 +0000 (17:44 -0000)]
Fix -Wsometimes-uninitialized found by Clang

packet-pdcp-lte.c:1397:9: error: variable 'decrypted_data' is used uninitialized whenever 'if' condition is false
packet-pdcp-lte.c:1469:50: note: uninitialized use occurs here
    decrypted_tvb = tvb_new_child_real_data(tvb, decrypted_data, payload_length, payload_length);
packet-pdcp-lte.c:1353:27: note: initialize the variable 'decrypted_data' to silence this warning

packet-pdcp-lte.c:1397:9: error: variable 'payload_length' is used uninitialized whenever 'if' condition is false
packet-pdcp-lte.c:1469:66: note: uninitialized use occurs here
    decrypted_tvb = tvb_new_child_real_data(tvb, decrypted_data, payload_length, payload_length);
packet-pdcp-lte.c:1354:24: note: initialize the variable 'payload_length' to silence this warning

svn path=/trunk/; revision=54791

10 years agoFix unused const variable found by Clang 3.4
Alexis La Goutte [Tue, 14 Jan 2014 17:44:07 +0000 (17:44 -0000)]
Fix unused const variable found by Clang 3.4

svn path=/trunk/; revision=54790

10 years agoUpgrade LTE RRC dissector to v11.6.0
Pascal Quantin [Tue, 14 Jan 2014 16:51:10 +0000 (16:51 -0000)]
Upgrade LTE RRC dissector to v11.6.0

svn path=/trunk/; revision=54789

10 years agoSNOW3G is not available on default Wireshark
Pascal Quantin [Tue, 14 Jan 2014 16:48:43 +0000 (16:48 -0000)]
SNOW3G is not available on default Wireshark

svn path=/trunk/; revision=54788

10 years agoFix dissection of 3GPP2 SMS encoded in UCS2
Pascal Quantin [Tue, 14 Jan 2014 16:23:38 +0000 (16:23 -0000)]
Fix dissection of 3GPP2 SMS encoded in UCS2

svn path=/trunk/; revision=54787

10 years agoMake sure we allocate bytes for snow3g at least rounded up to next 4 byte boundary
Martin Mathieson [Tue, 14 Jan 2014 16:22:44 +0000 (16:22 -0000)]
Make sure we allocate bytes for snow3g at least rounded up to next 4 byte boundary

svn path=/trunk/; revision=54786

10 years agoUpdate a comment
Martin Mathieson [Tue, 14 Jan 2014 15:11:35 +0000 (15:11 -0000)]
Update a comment

svn path=/trunk/; revision=54785

10 years agoAdd snow3g integrity (not quite working for me), but rework how integrity and cipheri...
Martin Mathieson [Tue, 14 Jan 2014 15:07:20 +0000 (15:07 -0000)]
Add snow3g integrity (not quite working for me), but rework how integrity and ciphering functions and conditional compilation is done

svn path=/trunk/; revision=54784

10 years agoUCS2 encoded SMS is directly read from data -> remove PROTO_ITEM_SET_GENERATED()
Pascal Quantin [Tue, 14 Jan 2014 14:01:03 +0000 (14:01 -0000)]
UCS2 encoded SMS is directly read from data -> remove PROTO_ITEM_SET_GENERATED()

svn path=/trunk/; revision=54783

10 years agoProvide hook for calling EEA1 implementation (Snow3G). Implementation not supplied...
Martin Mathieson [Tue, 14 Jan 2014 11:09:47 +0000 (11:09 -0000)]
Provide hook for calling EEA1 implementation (Snow3G).  Implementation not supplied due to licensing conditions.  TODO: EIA1.

svn path=/trunk/; revision=54782

10 years agoWhoever in GLibland was responsible for defining the signature of
Guy Harris [Tue, 14 Jan 2014 10:50:26 +0000 (10:50 -0000)]
Whoever in GLibland was responsible for defining the signature of
g_snprintf() owes the world a huge apology.  They *could* have just used
size_t, or they *could* at least have, if they insisted on having GLib
types to mirror regular types, made gsize an alias for size_t and,
whatever they did with gsize, they *could* have used it as the argument
for the size of the buffer for g_snprintf(), but no, they had to use
gulong.

svn path=/trunk/; revision=54781

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:32:50 +0000 (08:32 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54780

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:30:45 +0000 (08:30 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54779

10 years agoBut *do* cast const void * to the appropriate type.
Guy Harris [Tue, 14 Jan 2014 08:30:24 +0000 (08:30 -0000)]
But *do* cast const void * to the appropriate type.

svn path=/trunk/; revision=54778

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:26:24 +0000 (08:26 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54777

10 years agoDon't assign away constness.
Guy Harris [Tue, 14 Jan 2014 08:22:38 +0000 (08:22 -0000)]
Don't assign away constness.

svn path=/trunk/; revision=54776

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:14:28 +0000 (08:14 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54775

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:12:45 +0000 (08:12 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54774

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 08:09:33 +0000 (08:09 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54773

10 years agogsize, not gusize. Whatever.
Guy Harris [Tue, 14 Jan 2014 07:59:58 +0000 (07:59 -0000)]
gsize, not gusize.  Whatever.

svn path=/trunk/; revision=54772

10 years agoGlib, gotta love it. No, gusize isn't the same as size_t, it's long,
Guy Harris [Tue, 14 Jan 2014 07:58:18 +0000 (07:58 -0000)]
Glib, gotta love it.  No, gusize isn't the same as size_t, it's long,
which is Too Damn Short on Windows.  (Microsoft, gotta love 'em.  I
guess even more Windows programmers than UN*X programmers thought long
was 32 bits, now and forever, world without end, amen.)

svn path=/trunk/; revision=54771

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 07:56:43 +0000 (07:56 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54770

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 05:49:04 +0000 (05:49 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54769

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 05:47:50 +0000 (05:47 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54768

10 years agoHave ip6_to_str() and tvb_ip6_to_str() return const pointers, as the
Guy Harris [Tue, 14 Jan 2014 05:39:57 +0000 (05:39 -0000)]
Have ip6_to_str() and tvb_ip6_to_str() return const pointers, as the
ip_to_str equivalents do.

Don't cast away constness, and don't make it necessary to do so.

svn path=/trunk/; revision=54767

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 05:29:02 +0000 (05:29 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54766

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 05:25:51 +0000 (05:25 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54765

10 years agoDon't cast away constness. In one place, this requires that we use one
Guy Harris [Tue, 14 Jan 2014 05:23:48 +0000 (05:23 -0000)]
Don't cast away constness.  In one place, this requires that we use one
pointer while we're filling in a string and then assigning it to a const
pointer when we're done.

Don't use guint16 as a size value; it does no good (it doesn't magically
protect you againt too-long strings), it runs the potential risk of
overflow, it doesn't save time for arithmetic (32-bit or 64-bit
arithmetic may well be faster, and will at least be as fast), and it
doesn't save space (if it fits in a register, you save nothing, and if
it's on the stack, there will probably be padding.

svn path=/trunk/; revision=54764

10 years agoCast away constness.
Guy Harris [Tue, 14 Jan 2014 05:17:06 +0000 (05:17 -0000)]
Cast away constness.

svn path=/trunk/; revision=54763

10 years agoConstification.
Guy Harris [Tue, 14 Jan 2014 04:09:21 +0000 (04:09 -0000)]
Constification.

svn path=/trunk/; revision=54762

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 04:05:23 +0000 (04:05 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54761

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 04:01:59 +0000 (04:01 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54760

10 years agoAnd more constification.
Guy Harris [Tue, 14 Jan 2014 04:01:34 +0000 (04:01 -0000)]
And more constification.

svn path=/trunk/; revision=54759

10 years agoMore constification.
Guy Harris [Tue, 14 Jan 2014 03:56:36 +0000 (03:56 -0000)]
More constification.

svn path=/trunk/; revision=54758

10 years agoDon't make promises of constness that we can't honor.
Guy Harris [Tue, 14 Jan 2014 03:24:37 +0000 (03:24 -0000)]
Don't make promises of constness that we can't honor.

svn path=/trunk/; revision=54757

10 years agoDon't cast away constness when you don't have to.
Guy Harris [Tue, 14 Jan 2014 03:16:27 +0000 (03:16 -0000)]
Don't cast away constness when you don't have to.

svn path=/trunk/; revision=54756

10 years agoSquelch some casting-away-constness warnings.
Guy Harris [Tue, 14 Jan 2014 03:06:40 +0000 (03:06 -0000)]
Squelch some casting-away-constness warnings.

svn path=/trunk/; revision=54755

10 years agoClean up references to an address and squelch some warnings.
Guy Harris [Tue, 14 Jan 2014 02:30:05 +0000 (02:30 -0000)]
Clean up references to an address and squelch some warnings.

svn path=/trunk/; revision=54754

10 years agoDon't cast away constness.
Guy Harris [Tue, 14 Jan 2014 02:25:20 +0000 (02:25 -0000)]
Don't cast away constness.

svn path=/trunk/; revision=54753

10 years agoMore prototype cleanup.
Guy Harris [Tue, 14 Jan 2014 02:17:16 +0000 (02:17 -0000)]
More prototype cleanup.

svn path=/trunk/; revision=54752

10 years agoMake a routine not used outside the SNMP dissector static.
Guy Harris [Tue, 14 Jan 2014 02:06:42 +0000 (02:06 -0000)]
Make a routine not used outside the SNMP dissector static.

svn path=/trunk/; revision=54751

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Tue, 14 Jan 2014 01:44:36 +0000 (01:44 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

Said header declares pipe_input_cb_t, so we don't have to do it
ourselves.

svn path=/trunk/; revision=54750

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Tue, 14 Jan 2014 01:41:38 +0000 (01:41 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

svn path=/trunk/; revision=54749

10 years agoDetangle the #ifdefs a bit.
Guy Harris [Tue, 14 Jan 2014 01:40:09 +0000 (01:40 -0000)]
Detangle the #ifdefs a bit.

svn path=/trunk/; revision=54748

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Tue, 14 Jan 2014 01:35:13 +0000 (01:35 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

Don't cast away constness when passing something to a routine that takes
a const pointer argument.

svn path=/trunk/; revision=54747

10 years agoMake a routine not used outside this file static.
Guy Harris [Tue, 14 Jan 2014 01:31:49 +0000 (01:31 -0000)]
Make a routine not used outside this file static.

svn path=/trunk/; revision=54746

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Tue, 14 Jan 2014 01:29:16 +0000 (01:29 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

svn path=/trunk/; revision=54745

10 years agoInclude ui/progress_dlg.h to get the declaration of
Guy Harris [Tue, 14 Jan 2014 01:26:51 +0000 (01:26 -0000)]
Include ui/progress_dlg.h to get the declaration of
delayed_create_progress_dlg().

svn path=/trunk/; revision=54744

10 years ago#if 0 out an unused routine.
Guy Harris [Tue, 14 Jan 2014 01:23:49 +0000 (01:23 -0000)]
#if 0 out an unused routine.

svn path=/trunk/; revision=54743

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Tue, 14 Jan 2014 01:16:55 +0000 (01:16 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

svn path=/trunk/; revision=54742

10 years agoMake a routine used only in this file static.
Guy Harris [Tue, 14 Jan 2014 01:11:42 +0000 (01:11 -0000)]
Make a routine used only in this file static.

svn path=/trunk/; revision=54741

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Mon, 13 Jan 2014 23:05:44 +0000 (23:05 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so - which means
creating the header file in the first place.

Also, declare proto_register_wimax_compact_dlmap_ie() early in
wimax_compact_dlmap_ie_decoder.c, similar to what we do in
wimax_copact_ulmap_ie_decoder.c.

svn path=/trunk/; revision=54739

10 years agotvparse_until() is used, so don't make it static.
Guy Harris [Mon, 13 Jan 2014 23:03:30 +0000 (23:03 -0000)]
tvparse_until() is used, so don't make it static.

svn path=/trunk/; revision=54738

10 years agoUpgrade LPP dissector to v11.5.0
Pascal Quantin [Mon, 13 Jan 2014 22:57:31 +0000 (22:57 -0000)]
Upgrade LPP dissector to v11.5.0

svn path=/trunk/; revision=54737

10 years agoUpdate SVN properties
Pascal Quantin [Mon, 13 Jan 2014 22:54:41 +0000 (22:54 -0000)]
Update SVN properties

svn path=/trunk/; revision=54736

10 years agodissect_CBA_Connection_Data() isn't used outside packet-dcom-cba-acco.c,
Guy Harris [Mon, 13 Jan 2014 22:46:05 +0000 (22:46 -0000)]
dissect_CBA_Connection_Data() isn't used outside packet-dcom-cba-acco.c,
so make it static - and get rid of the #if 0'ed out declaration in
packet-dcom-cba-acco.h.

svn path=/trunk/; revision=54735

10 years agoNo reason for decode_bgp_rd()'s return value to be non-const, so make it
Guy Harris [Mon, 13 Jan 2014 22:38:56 +0000 (22:38 -0000)]
No reason for decode_bgp_rd()'s return value to be non-const, so make it
const.

svn path=/trunk/; revision=54734

10 years agoMove dissect_pn_uint16_ret_item() to packet-pn.c, to be with its sibling
Guy Harris [Mon, 13 Jan 2014 22:36:52 +0000 (22:36 -0000)]
Move dissect_pn_uint16_ret_item() to packet-pn.c, to be with its sibling
dissect_pn_uint16().  Declare it in packet-pn.h.

svn path=/trunk/; revision=54733

10 years agoFix Dead Store (Dead assignement/Dead increment) warning found by Clang
Alexis La Goutte [Mon, 13 Jan 2014 22:25:13 +0000 (22:25 -0000)]
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang

svn path=/trunk/; revision=54732

10 years agoFix Dead Store (Dead assignement/Dead increment) warning found by Clang
Alexis La Goutte [Mon, 13 Jan 2014 22:25:03 +0000 (22:25 -0000)]
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang

svn path=/trunk/; revision=54731

10 years agodispatchService() is imported from other code; declare it in
Guy Harris [Mon, 13 Jan 2014 22:24:54 +0000 (22:24 -0000)]
dispatchService() is imported from other code; declare it in
opcua_transport_layer.h, not opcua_transport_layer.c.

svn path=/trunk/; revision=54730

10 years agoFrom Kevin Loewen via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9631
Alexis La Goutte [Mon, 13 Jan 2014 22:24:53 +0000 (22:24 -0000)]
From Kevin Loewen via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9631

Add dissector for Pathport Protocol

From me :
* Fix indent (use 4 spaces)
* Remove unused variable and fix Clang warning

svn path=/trunk/; revision=54729

10 years agoFrom Miroslav Miklus via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9504...
Alexis La Goutte [Mon, 13 Jan 2014 22:24:32 +0000 (22:24 -0000)]
From Miroslav Miklus via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9504 Enhance BGP dissector : bgp-ls dissector (draft-ietf-idr-ls-distribution-04)

BGPTYPE_LINK_STATE_ATTR is temporarily set to 99, would need change when IANA allocate a Path Attribute value for BGP-LS

From me :
* Fix indent
* fix arg encoding (via encoding-args tools)

svn path=/trunk/; revision=54728

10 years ago#if 0 out unused routines claimed to be "untested" and #if 0'ed out in
Guy Harris [Mon, 13 Jan 2014 22:20:25 +0000 (22:20 -0000)]
#if 0 out unused routines claimed to be "untested" and #if 0'ed out in
epan/tvparse.h, and static routines used by that code.

svn path=/trunk/; revision=54727

10 years agoGet rid of unused routine (the initialization is done in
Guy Harris [Mon, 13 Jan 2014 22:14:38 +0000 (22:14 -0000)]
Get rid of unused routine (the initialization is done in
geoip_db_post_update_cb() - as the comment says, "and also once on
startup").

svn path=/trunk/; revision=54726

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Mon, 13 Jan 2014 22:06:12 +0000 (22:06 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so - which means
creating the header file in the first place.

That means luaopen_bit() doesn't need to, and shouldn't be, declared in
wslua.h.

Have make-reg.pl generate a #include of lua_bitop.h.  Also fix the "this
is autogenerated" warning.

svn path=/trunk/; revision=54725

10 years agof_k() is used outside packet-gsm_a_rr.c, so it can't be static.
Guy Harris [Mon, 13 Jan 2014 21:36:43 +0000 (21:36 -0000)]
f_k() is used outside packet-gsm_a_rr.c, so it can't be static.

In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so - which means
creating the header file in the first place.

That means f_k() doesn't need to, and shouldn't be, declared in
packet-gsm_rlcmac.h.  Include packet-gsm_a_rr.h in packet-gsm_rlcmac.c.

svn path=/trunk/; revision=54724

10 years agolsarpc_dissect_sec_desc_buf() and lsarpc_dissect_struct_dom_sid2() are
Guy Harris [Mon, 13 Jan 2014 21:23:46 +0000 (21:23 -0000)]
lsarpc_dissect_sec_desc_buf() and lsarpc_dissect_struct_dom_sid2() are
used in the Netlogon dissector, so don't make them static.

Now that we've added HEADER START/HEADER END to Pidl, use it to declare
those routines in packet-dcerpc-lsa.h.  Don't declare them in
packet-dcerpc-netlogon.c, as they're now declared in the header.

svn path=/trunk/; revision=54723

10 years agoFix crash when exporting to CSV file
Pascal Quantin [Mon, 13 Jan 2014 21:23:36 +0000 (21:23 -0000)]
Fix crash when exporting to CSV file

svn path=/trunk/; revision=54722

10 years agoDocument {CODE,HEADER} {START,END}.
Guy Harris [Mon, 13 Jan 2014 21:18:29 +0000 (21:18 -0000)]
Document {CODE,HEADER} {START,END}.

Clean up indentation.

svn path=/trunk/; revision=54721

10 years agoAdd HEADER START and HEADER END, similar to CODE START and CODE END, to
Guy Harris [Mon, 13 Jan 2014 21:05:44 +0000 (21:05 -0000)]
Add HEADER START and HEADER END, similar to CODE START and CODE END, to
allow stuff to be put into the .h file; that way, if you put helper
functions into the .c file, for use by dissectors other than the one
being generated, you can put declarations for them into the .h file.

Do some checks for mis-nesting of CODE and HEADER blocks.

Clean up the "this is generated code" header.

svn path=/trunk/; revision=54720

10 years agoMake a routine not used outside this file static.
Guy Harris [Mon, 13 Jan 2014 20:17:20 +0000 (20:17 -0000)]
Make a routine not used outside this file static.

svn path=/trunk/; revision=54719

10 years agoMake a routine not used outside this file static.
Guy Harris [Mon, 13 Jan 2014 20:14:00 +0000 (20:14 -0000)]
Make a routine not used outside this file static.

svn path=/trunk/; revision=54718

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Mon, 13 Jan 2014 20:12:14 +0000 (20:12 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so - which means
creating the header file in the first place.

svn path=/trunk/; revision=54717

10 years agoIn a source file that defines external functions, the header file that
Guy Harris [Mon, 13 Jan 2014 19:49:12 +0000 (19:49 -0000)]
In a source file that defines external functions, the header file that
declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so.

They *didn't* match; fix that.

Do *not* use 16-bit tvbuff offsets; there is no advantage to that (and,
in fact, 32-bit arithmetic may be easier on some platforms), and it has
the disadvantage that you're more likely to have the offset overflow.

dissect_cbs_serial_number() returns the new offset, not the length of
the item it dissected; don't add its return value to the offset, set the
offset to its return value.

Make dissect_cbs_message_identifier() return the new offset as well, for
consistency, and don't add *its* return value to the offset.

svn path=/trunk/; revision=54714

10 years agoIn a file that defines external routines, the header file that declares
Guy Harris [Mon, 13 Jan 2014 19:32:10 +0000 (19:32 -0000)]
In a file that defines external routines, the header file that declares
them should be included, to make sure the declaration and definition
match.  Make it so.

svn path=/trunk/; revision=54713

10 years agoMake routines not used outside packet-dcerpc-lsa.c static.
Guy Harris [Mon, 13 Jan 2014 19:29:21 +0000 (19:29 -0000)]
Make routines not used outside packet-dcerpc-lsa.c static.

svn path=/trunk/; revision=54712

10 years agoSquelch some warnings.
Guy Harris [Mon, 13 Jan 2014 19:07:48 +0000 (19:07 -0000)]
Squelch some warnings.

svn path=/trunk/; revision=54711