aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-11 21:02:22 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-12 05:02:52 +0000
commitb09286cf5b89b65b8db23e2e6a0ecf0cd9c28153 (patch)
tree851887bffdc297ed6a2be14610427613466979e7 /epan/dissectors/packet-tpkt.c
parent6f47bcd902d725e7323107e92dfc9879c538e6b4 (diff)
Move the definition of TEXT_LAYER_LENGTH to packet-tpkt.c.
It's not used by anything outside the TPKT dissector - and probably *shouldn't* be used by anything outside the TPKT dissector. Clean up some white space while we're at it. Change-Id: I9bb9642a002fb9e8bd6c36d80d7653ef9af615d4 Reviewed-on: https://code.wireshark.org/review/13204 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-tpkt.c')
-rw-r--r--epan/dissectors/packet-tpkt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tpkt.c b/epan/dissectors/packet-tpkt.c
index f844af5196..080340d9f1 100644
--- a/epan/dissectors/packet-tpkt.c
+++ b/epan/dissectors/packet-tpkt.c
@@ -198,6 +198,12 @@ parseReservedText ( guint8* pTpktData )
return value;
}
+
+/*
+ * Length of the TPKT text-layer header.
+ */
+static const int TEXT_LAYER_LENGTH = 9;
+
/*
* Dissect ASCII TPKT-encapsulated data in a TCP stream.
*/