summaryrefslogtreecommitdiff
path: root/lib/avtp_pipeline/avtp/openavb_avtp.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/avtp_pipeline/avtp/openavb_avtp.h')
-rw-r--r--lib/avtp_pipeline/avtp/openavb_avtp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/avtp_pipeline/avtp/openavb_avtp.h b/lib/avtp_pipeline/avtp/openavb_avtp.h
index 71139271..eb163373 100644
--- a/lib/avtp_pipeline/avtp/openavb_avtp.h
+++ b/lib/avtp_pipeline/avtp/openavb_avtp.h
@@ -83,6 +83,13 @@ typedef struct {
} avtp_state_t;
+/* If EXTENDED_SEQUENCE_NUMBERS is defined, uses the 4 most significant bits of the reserved space
+ * immediately following the sequence_num value to allow for larger sequence numbers.
+ * The bit following those 4 bits is also set to indicate that
+ * extended sequence numbers are in use.
+ */
+//#define EXTENDED_SEQUENCE_NUMBERS
+
/* Info associated with an AVTP stream (RX or TX).
*
* The void* handle that is returned to the client
@@ -117,7 +124,11 @@ typedef struct
// Max frame size
U16 frameLen;
// AVTP sequence number
+#ifdef EXTENDED_SEQUENCE_NUMBERS
+ U16 avtp_sequence_num;
+#else
U8 avtp_sequence_num;
+#endif
// Paused state of the stream
bool bPause;
// Encapsulation-specific state information