summaryrefslogtreecommitdiffstats
path: root/src/kernel/net.h
diff options
context:
space:
mode:
authorsr2012-08-24 20:54:29 +0200
committersr2012-08-24 20:54:29 +0200
commit6d659475c248f5030c44acb0096771fcd09a7dee (patch)
tree2ca98bd13a775848974cf59ca2781941f7e91c1c /src/kernel/net.h
parent[SERVER] IPC, delete image (diff)
downloaddnbd3-6d659475c248f5030c44acb0096771fcd09a7dee.tar.gz
dnbd3-6d659475c248f5030c44acb0096771fcd09a7dee.tar.xz
dnbd3-6d659475c248f5030c44acb0096771fcd09a7dee.zip
[*] Cleanup, comments, more error checks
[SERVER] Fix a few off-by-one bugs [SERVER] Make log available through IPC [KERNEL] Hot-Swap to faster connection on load-balance [KERNEL] Report I/O error to block layer if no server replies within a given time frame [*] Modified network protocol to handle volume names instead of ids
Diffstat (limited to 'src/kernel/net.h')
-rw-r--r--src/kernel/net.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/kernel/net.h b/src/kernel/net.h
index 64816bc..18aa227 100644
--- a/src/kernel/net.h
+++ b/src/kernel/net.h
@@ -23,12 +23,13 @@
#include "dnbd3.h"
-#define init_msghdr(h)\
- h.msg_name = NULL;\
- h.msg_namelen = 0;\
- h.msg_control = NULL;\
- h.msg_controllen = 0;\
- h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL;
+#define init_msghdr(h) do { \
+ h.msg_name = NULL; \
+ h.msg_namelen = 0; \
+ h.msg_control = NULL; \
+ h.msg_controllen = 0; \
+ h.msg_flags = MSG_WAITALL | MSG_NOSIGNAL; \
+ } while (0)
int dnbd3_net_connect(dnbd3_device_t *lo);