summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-03-03 17:38:02 +0100
committerSander Vrijders <[email protected]>2016-03-03 17:38:02 +0100
commita16840ada8b783704385d2a25d4a48476165fa75 (patch)
treea2a3d316c2d27eac93e64e60e934cab281d4ac4d
parent6746face5a53d48853cb7f1ad0acc587920183b7 (diff)
parent71c93ca569034b1346dc625b6b22ecab83d5bcce (diff)
downloadouroboros-a16840ada8b783704385d2a25d4a48476165fa75.tar.gz
ouroboros-a16840ada8b783704385d2a25d4a48476165fa75.zip
Merged in dstaesse/ouroboros/be-common (pull request #16)
include: modified structures
-rw-r--r--include/ouroboros/common.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/ouroboros/common.h b/include/ouroboros/common.h
index 36f6171c..f5810bcd 100644
--- a/include/ouroboros/common.h
+++ b/include/ouroboros/common.h
@@ -32,7 +32,7 @@ typedef uint32_t port_id_t;
typedef struct {
uint8_t * data;
- size_t size;
+ size_t size;
} buffer_t;
typedef struct {
@@ -42,33 +42,37 @@ typedef struct {
int aei_id;
} rina_name_t;
-/* FIXME: To be extended to have all QoS params */
+/* FIXME: may need revision */
struct qos_spec {
+ char * qos_name;
+ char * dif_name;
+
uint32_t delay;
uint32_t jitter;
};
-struct dt_const {
+/* FIXME: What should be configurable in the DIF? */
+struct dif_config {
+ /* general data */
+ qos_spec * qosspecs;
+
+ /* TODO: efficient policies */
+
/* dt field sizes in octets */
uint8_t addr_size;
uint8_t cep_id_size;
uint8_t pdu_length_size;
uint8_t qos_id_size;
uint8_t seqno_size;
- /* uint8_t ctrl_sqnum_sz; is this in the spec?? */
/* constants for dup */
uint8_t ttl_size;
uint8_t chk_size;
-};
-/* FIXME: What should be configurable in the DIF? */
-struct dif_info {
/* values, octets */
uint32_t min_pdu_size;
uint32_t max_pdu_size;
- struct dt_const dtc;
};
#endif /* OUROBOROS_COMMON_H */