summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-07-12 14:30:27 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-07-12 14:30:27 +0000
commit0bcb3ab0804bbfd31d056c08548cb40591598f4b (patch)
treed1da4fcf7cc2875b077d767775359ad92dc10d7c /include
parent3e9ee89b3ccf48dcabf7de2ecafcfbf637595cfe (diff)
parentd088c3395a28bce3e1530db5aeacbcf59ab16619 (diff)
downloadouroboros-0bcb3ab0804bbfd31d056c08548cb40591598f4b.tar.gz
ouroboros-0bcb3ab0804bbfd31d056c08548cb40591598f4b.zip
Merged in sandervrijders/ouroboros/be-hash (pull request #528)
ipcpd, lib, irmd: Hardcode shim hash algorithms Approved-by: dimitri staessens <dimitri.staessens@ugent.be>
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;