diff options
author | Dimitri Staessens <[email protected]> | 2018-06-07 23:35:14 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-06-08 10:26:07 +0200 |
commit | b74980761cdcd9a706760ae9a4efb3806ca9bee2 (patch) | |
tree | 7619284e1ceb8044c9e5bf1b8fcea6729aead825 /include | |
parent | 7d51ff3e5a4e42f21c9e5e89e5ea8493b7737161 (diff) | |
download | ouroboros-b74980761cdcd9a706760ae9a4efb3806ca9bee2.tar.gz ouroboros-b74980761cdcd9a706760ae9a4efb3806ca9bee2.zip |
lib: Add a data qos cube
This adds a data qos cube that is reliable. Reliable qos can be
selected by setting the loss parameter of the qosspec to 0.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/qos.h | 2 | ||||
-rw-r--r-- | include/ouroboros/qoscube.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/ouroboros/qos.h b/include/ouroboros/qos.h index 2419195b..011828d7 100644 --- a/include/ouroboros/qos.h +++ b/include/ouroboros/qos.h @@ -30,6 +30,7 @@ typedef struct qos_spec { uint32_t delay; /* In ms */ uint64_t bandwidth; /* In bits/s */ uint8_t availability; /* Class of 9s */ + uint32_t loss; /* Packet loss */ uint8_t in_order; /* In-order delivery, enables FRCT */ uint32_t maximum_interruption; /* In ms */ } qosspec_t; @@ -38,6 +39,7 @@ qosspec_t qos_raw; qosspec_t qos_best_effort; qosspec_t qos_video; qosspec_t qos_voice; +qosspec_t qos_data; __BEGIN_DECLS diff --git a/include/ouroboros/qoscube.h b/include/ouroboros/qoscube.h index 99563a06..e0e93a82 100644 --- a/include/ouroboros/qoscube.h +++ b/include/ouroboros/qoscube.h @@ -28,6 +28,7 @@ typedef enum qos_cube { QOS_CUBE_RAW = 0, QOS_CUBE_BE, + QOS_CUBE_DATA, QOS_CUBE_VIDEO, QOS_CUBE_VOICE, QOS_CUBE_MAX |