summaryrefslogtreecommitdiff
path: root/include/ouroboros/sockets.h
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-01 15:08:37 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-03-01 15:08:37 +0100
commit45ad14035a06e4947b1cc1d908bb665646c1f2a0 (patch)
tree07b806048cc9a792b5127bd5decb81b7ca907197 /include/ouroboros/sockets.h
parente5bfc52e93654a8be7893cf5573c9c04e9c96c55 (diff)
downloadouroboros-45ad14035a06e4947b1cc1d908bb665646c1f2a0.tar.gz
ouroboros-45ad14035a06e4947b1cc1d908bb665646c1f2a0.zip
lib, irmd, tools: Provide more IRM messages
This provides the other messages that are used to communicate between the library and the IRM Daemon. The IRM tool just calls the library right now to see if it works. A full fledged program will be provided in a next commit.
Diffstat (limited to 'include/ouroboros/sockets.h')
-rw-r--r--include/ouroboros/sockets.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h
index fe7ddb28..88e9564b 100644
--- a/include/ouroboros/sockets.h
+++ b/include/ouroboros/sockets.h
@@ -24,6 +24,7 @@
#define OUROBOROS_SOCKETS_H
#define IRM_SOCK_PATH "/tmp/irm_sock"
+#define IRM_MSG_BUF_SIZE 256
enum irm_msg_code {
IRM_CREATE_IPCP,
@@ -31,18 +32,17 @@ enum irm_msg_code {
IRM_BOOTSTRAP_IPCP,
IRM_ENROLL_IPCP,
IRM_REG_IPCP,
- IRM_UNREG_IPCP,
- IRM_LIST_IPCPS
+ IRM_UNREG_IPCP
};
struct irm_msg {
enum irm_msg_code code;
- union {
- struct {
- rina_name_t * name;
- char * ipcp_type;
- } create_ipcp;
- } msgs;
+ rina_name_t * name;
+ char * ipcp_type;
+ struct dif_info * info;
+ char * dif_name;
+ char ** difs;
+ size_t difs_size;
};
int client_socket_open(char * file_name);