summaryrefslogtreecommitdiff
path: root/include/ouroboros/irm_config.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2017-01-11 18:59:11 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-01-12 13:40:38 +0100
commit15e9b779385c71d366776b83540e19e0735c4e66 (patch)
tree5f4fe39683c0676c243f287840f2775a867c9142 /include/ouroboros/irm_config.h
parenta991831b5373eba38d6f756d254f151b22790238 (diff)
downloadouroboros-15e9b779385c71d366776b83540e19e0735c4e66.tar.gz
ouroboros-15e9b779385c71d366776b83540e19e0735c4e66.zip
ipcpd: normal: Create policies for GAM
This allows the selection of a policy for the graph adjacency manager. Currently we only support constructing a complete graph.
Diffstat (limited to 'include/ouroboros/irm_config.h')
-rw-r--r--include/ouroboros/irm_config.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/include/ouroboros/irm_config.h b/include/ouroboros/irm_config.h
index ac94e9c8..c4a81c23 100644
--- a/include/ouroboros/irm_config.h
+++ b/include/ouroboros/irm_config.h
@@ -43,36 +43,40 @@ enum pol_addr_auth {
FLAT_RANDOM = 0
};
+enum pol_gam {
+ COMPLETE = 0
+};
+
struct dif_config {
- char * dif_name;
+ char * dif_name;
enum ipcp_type type;
union {
/* Normal DIF */
struct {
- 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 addr_size;
+ uint8_t cep_id_size;
+ uint8_t pdu_length_size;
+ uint8_t qos_id_size;
+ uint8_t seqno_size;
- /* DUP constants */
- bool has_ttl;
- bool has_chk;
+ bool has_ttl;
+ bool has_chk;
- uint32_t min_pdu_size;
- uint32_t max_pdu_size;
+ uint32_t min_pdu_size;
+ uint32_t max_pdu_size;
enum pol_addr_auth addr_auth_type;
+ enum pol_gam dt_gam_type;
};
/* Shim UDP */
struct {
- uint32_t ip_addr;
- uint32_t dns_addr;
+ uint32_t ip_addr;
+ uint32_t dns_addr;
};
/* Shim Ethernet LLC */
struct {
- char * if_name;
+ char * if_name;
};
};
};