From b74980761cdcd9a706760ae9a4efb3806ca9bee2 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 7 Jun 2018 23:35:14 +0200 Subject: 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 Signed-off-by: Sander Vrijders --- include/ouroboros/qos.h | 2 ++ include/ouroboros/qoscube.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') 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 -- cgit v1.2.3