summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-07-12 15:18:15 +0200
committerSander Vrijders <[email protected]>2017-07-12 16:12:50 +0200
commitd088c3395a28bce3e1530db5aeacbcf59ab16619 (patch)
treed1da4fcf7cc2875b077d767775359ad92dc10d7c /include
parent3e9ee89b3ccf48dcabf7de2ecafcfbf637595cfe (diff)
downloadouroboros-d088c3395a28bce3e1530db5aeacbcf59ab16619.tar.gz
ouroboros-d088c3395a28bce3e1530db5aeacbcf59ab16619.zip
ipcpd, lib, irmd: Hardcode shim hash algorithms
This will hardcode the shim hash algorithms as they don't have an enrollment phase. Fixes #44
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/ipcp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h
index 8979c6d1..1b775a63 100644
--- a/include/ouroboros/ipcp.h
+++ b/include/ouroboros/ipcp.h
@@ -39,7 +39,7 @@ enum ipcp_type {
IPCP_NORMAL
};
-/* IPCP policies */
+/* Normal IPCP policies */
enum pol_addr_auth {
FLAT_RANDOM = 0
};
@@ -52,6 +52,7 @@ enum pol_routing {
LINK_STATE = 0
};
+/* Hash algorithms */
enum hash_algo {
HASH_CRC32 = 0,
HASH_MD5,
@@ -63,17 +64,19 @@ enum hash_algo {
#define DIF_NAME_SIZE 256
+/* Info reported back to the IRMd about the DIF on enrollment */
struct dif_info {
char dif_name[DIF_NAME_SIZE];
enum hash_algo dir_hash_algo;
};
+/* Structure to configure the first IPCP */
struct ipcp_config {
struct dif_info dif_info;
enum ipcp_type type;
- /* DT syntax */
+ /* Normal */
uint8_t addr_size;
uint8_t fd_size;
bool has_ttl;