From b398dbe5cfd12b928e00f9a22cd6826bbdfb18d7 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 26 Apr 2017 20:31:39 +0200 Subject: ipcpd: Add capability reporting The IPCP will now report the DIF name and the hash value to the IRMd as a dif_info struct. This can later be extended to add further capability reporting. Some bugfixes in normal. Fixes #24 --- include/ouroboros/ipcp.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/ouroboros/ipcp.h') diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h index b9c5b740..f418d640 100644 --- a/include/ouroboros/ipcp.h +++ b/include/ouroboros/ipcp.h @@ -86,4 +86,12 @@ struct ipcp_config { char * if_name; }; +#define DIF_NAME_SIZE 256 + +/* capability report of a DIF */ +struct dif_info { + enum hash_algo algo; + char dif_name[DIF_NAME_SIZE]; +}; + #endif /* OUROBOROS_IPCP_H */ -- cgit v1.2.3