aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-llrp.c7
-rw-r--r--epan/dissectors/packet-moldudp.c23
-rw-r--r--epan/dissectors/packet-moldudp64.c20
3 files changed, 24 insertions, 26 deletions
diff --git a/epan/dissectors/packet-llrp.c b/epan/dissectors/packet-llrp.c
index 814560843a..702989594a 100644
--- a/epan/dissectors/packet-llrp.c
+++ b/epan/dissectors/packet-llrp.c
@@ -32,7 +32,6 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/prefs.h>
#include <epan/expert.h>
#define LLRP_PORT 5084
@@ -986,10 +985,10 @@ proto_reg_handoff_llrp(void)
*
* Local variables:
* c-basic-offset: 4
- * tab-width: 4
+ * tab-width: 8
* indent-tabs-mode: nil
* End:
*
- * vi: set shiftwidth=4 tabstop=4 expandtab:
- * :indentSize=4:tabSize=4:noTabs=true:
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
*/
diff --git a/epan/dissectors/packet-moldudp.c b/epan/dissectors/packet-moldudp.c
index b480aa01df..206d2351c5 100644
--- a/epan/dissectors/packet-moldudp.c
+++ b/epan/dissectors/packet-moldudp.c
@@ -68,8 +68,8 @@ dissect_moldudp_msgblk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
{
proto_item *ti;
proto_tree *blk_tree;
- guint16 msglen, real_msglen, whole_len;
- guint remaining;
+ guint16 msglen, real_msglen, whole_len;
+ guint remaining;
if (tvb_reported_length(tvb) - offset < MOLDUDP_MSGLEN_LEN)
return 0;
@@ -123,9 +123,9 @@ dissect_moldudp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *moldudp_tree;
- guint offset = 0;
- guint16 count, real_count = 0;
- guint32 sequence;
+ guint offset = 0;
+ guint16 count, real_count = 0;
+ guint32 sequence;
/* Check that there's enough data */
if (tvb_reported_length(tvb) < (MOLDUDP_SESSION_LEN +
@@ -241,7 +241,7 @@ proto_register_moldudp(void)
moldudp_module = prefs_register_protocol(proto_moldudp,
proto_reg_handoff_moldudp);
- /* Register a sample port preference */
+ /* Register a port preference */
prefs_register_uint_preference(moldudp_module, "udp.port", "MoldUDP UDP Port",
"MoldUDP UDP port to capture on.",
10, &pf_moldudp_port);
@@ -251,12 +251,11 @@ proto_register_moldudp(void)
void
proto_reg_handoff_moldudp(void)
{
- static gboolean initialized = FALSE;
+ static gboolean initialized = FALSE;
static dissector_handle_t moldudp_handle;
- static int currentPort;
+ static int currentPort;
if (!initialized) {
-
moldudp_handle = new_create_dissector_handle(dissect_moldudp,
proto_moldudp);
initialized = TRUE;
@@ -276,10 +275,10 @@ proto_reg_handoff_moldudp(void)
*
* Local variables:
* c-basic-offset: 4
- * tab-width: 4
+ * tab-width: 8
* indent-tabs-mode: nil
* End:
*
- * vi: set shiftwidth=4 tabstop=4 expandtab:
- * :indentSize=4:tabSize=4:noTabs=true:
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
*/
diff --git a/epan/dissectors/packet-moldudp64.c b/epan/dissectors/packet-moldudp64.c
index df751eeb84..c9c24c3286 100644
--- a/epan/dissectors/packet-moldudp64.c
+++ b/epan/dissectors/packet-moldudp64.c
@@ -69,8 +69,8 @@ dissect_moldudp64_msgblk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
{
proto_item *ti;
proto_tree *blk_tree;
- guint16 msglen, real_msglen, whole_len;
- guint remaining;
+ guint16 msglen, real_msglen, whole_len;
+ guint remaining;
if (tvb_length_remaining(tvb, offset) < MOLDUDP64_MSGLEN_LEN)
return 0;
@@ -121,9 +121,9 @@ dissect_moldudp64(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *moldudp64_tree;
- guint offset = 0;
- guint16 count, real_count = 0;
- guint64 sequence;
+ guint offset = 0;
+ guint16 count, real_count = 0;
+ guint64 sequence;
/* Check that there's enough data */
if (tvb_reported_length(tvb) < (MOLDUDP64_SESSION_LEN +
@@ -259,9 +259,9 @@ proto_register_moldudp64(void)
void
proto_reg_handoff_moldudp64(void)
{
- static gboolean initialized = FALSE;
+ static gboolean initialized = FALSE;
static dissector_handle_t moldudp64_handle;
- static int currentPort;
+ static int currentPort;
if (!initialized) {
@@ -284,10 +284,10 @@ proto_reg_handoff_moldudp64(void)
*
* Local variables:
* c-basic-offset: 4
- * tab-width: 4
+ * tab-width: 8
* indent-tabs-mode: nil
* End:
*
- * vi: set shiftwidth=4 tabstop=4 expandtab:
- * :indentSize=4:tabSize=4:noTabs=true:
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
*/