aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dtn.h
diff options
context:
space:
mode:
authordz-msfc <zollerd@gmail.com>2016-03-02 20:39:12 -0600
committerAnders Broman <a.broman58@gmail.com>2016-06-23 14:19:17 +0000
commit738b3e895fed42d12cd8e6ca3909c211a80e52fb (patch)
treeaf4557202a76d4645d6b4e920ede8c2d41ded3e8 /epan/dissectors/packet-dtn.h
parentedac72eb7d5beb961c3833232c8d048a33860297 (diff)
NASA provided LTP and DTN updates
Change-Id: I49769271a41b6a7b23c6bc1d4beaadbe8819198d Reviewed-on: https://code.wireshark.org/review/14310 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dtn.h')
-rw-r--r--epan/dissectors/packet-dtn.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dtn.h b/epan/dissectors/packet-dtn.h
index 0d57ba98da..534515fa10 100644
--- a/epan/dissectors/packet-dtn.h
+++ b/epan/dissectors/packet-dtn.h
@@ -143,11 +143,21 @@
/* ECOS Flags */
#define ECOS_FLAGS_CRITICAL 0x01
#define ECOS_FLAGS_STREAMING 0x02
-#define ECOS_FLAGS_ORDINAL 0x04
+#define ECOS_FLAGS_FLOWLABEL 0x04
+#define ECOS_FLAGS_RELIABLE 0x08
+#define DTN_SCHEME_STR "dtn"
#define IPN_SCHEME_STR "ipn"
int evaluate_sdnv(tvbuff_t *tvb, int offset, int *bytecount);
gint64 evaluate_sdnv_64(tvbuff_t *tvb, int offset, int *bytecount);
+/* Special Functions to evaluate unsigned SDNVs with error indication
+ * bytecount returns the number bytes consumed
+ * value returns the actual value
+ *
+ * result is TRUE (1) on success else FALSE (0)
+ */
+int evaluate_sdnv32(tvbuff_t *tvb, int offset, int *bytecount, guint32 *value);
+int evaluate_sdnv64(tvbuff_t *tvb, int offset, int *bytecount, guint64 *value);