aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cisco-erspan.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-cisco-erspan.c')
-rw-r--r--epan/dissectors/packet-cisco-erspan.c26
1 files changed, 19 insertions, 7 deletions
diff --git a/epan/dissectors/packet-cisco-erspan.c b/epan/dissectors/packet-cisco-erspan.c
index 9142ed3f05..cee85e757b 100644
--- a/epan/dissectors/packet-cisco-erspan.c
+++ b/epan/dissectors/packet-cisco-erspan.c
@@ -131,8 +131,8 @@ dissect_erspan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
guint32 offset = 0;
guint16 version;
- col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_SHORT_NAME);
- col_set_str(pinfo->cinfo, COL_INFO, PROTO_SHORT_NAME ":");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, PROTO_SHORT_NAME);
+ col_set_str(pinfo->cinfo, COL_INFO, PROTO_SHORT_NAME ":");
if (tree) {
@@ -206,8 +206,8 @@ dissect_erspan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset += 12;
}
- eth_tvb = tvb_new_subset_remaining(tvb, offset);
- call_dissector(ethnofcs_handle, eth_tvb, pinfo, tree);
+ eth_tvb = tvb_new_subset_remaining(tvb, offset);
+ call_dissector(ethnofcs_handle, eth_tvb, pinfo, tree);
}
void
@@ -305,11 +305,23 @@ proto_reg_handoff_erspan(void)
{
dissector_handle_t erspan_handle;
- ethnofcs_handle = find_dissector("eth_withoutfcs");
+ ethnofcs_handle = find_dissector("eth_withoutfcs");
erspan_handle = create_dissector_handle(dissect_erspan, proto_erspan);
- dissector_add_uint("gre.proto", GRE_ERSPAN_88BE, erspan_handle);
- dissector_add_uint("gre.proto", GRE_ERSPAN_22EB, erspan_handle);
+ dissector_add_uint("gre.proto", GRE_ERSPAN_88BE, erspan_handle);
+ dissector_add_uint("gre.proto", GRE_ERSPAN_22EB, erspan_handle);
}
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 8
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vi: set shiftwidth=8 tabstop=8 noexpandtab:
+ * :indentSize=8:tabSize=8:noTabs=false:
+ */