From d088c3395a28bce3e1530db5aeacbcf59ab16619 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 12 Jul 2017 15:18:15 +0200 Subject: ipcpd, lib, irmd: Hardcode shim hash algorithms This will hardcode the shim hash algorithms as they don't have an enrollment phase. Fixes #44 --- include/ouroboros/ipcp.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/ouroboros/ipcp.h') 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; -- cgit v1.2.3