summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-02-29 22:24:18 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-01 09:42:20 +0100
commit687055e46ddff677000d7e4e15c21ef9a1809b4d (patch)
tree59ef4ae4db3f86f5f7625fe987491bd1c62271d2 /include
parente5bfc52e93654a8be7893cf5573c9c04e9c96c55 (diff)
downloadouroboros-687055e46ddff677000d7e4e15c21ef9a1809b4d.tar.gz
ouroboros-687055e46ddff677000d7e4e15c21ef9a1809b4d.zip
include: modified structures
merged the data structure for the irm.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/common.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/ouroboros/common.h b/include/ouroboros/common.h
index 36f6171c..a6efaafa 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 {
@@ -44,31 +44,38 @@ typedef struct {
/* FIXME: To be extended to have all QoS params */
struct qos_spec {
+ char * qos_name;
+
uint32_t delay;
uint32_t jitter;
};
-struct dt_const {
+/* FIXME: What should be configurable in the DIF? */
+struct dif_config {
+ /* general data */
+ char * dif_name;
+
+ qos_spec * qosspecs;
+
+ /* FIXME: this might not be the way to go */
+ char ** policies;
+ /* char * policy_set? */
+
/* 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 */