aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/whitelist/whitelist_msg.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-07-01 14:47:11 +0200
committerMartin Willi <martin@revosec.ch>2013-07-18 16:00:29 +0200
commite11c02c8f1591fef64200137c24598fba9d488a9 (patch)
tree37888a2245fa4446222bf1862956dcbb2f72bab2 /src/libcharon/plugins/whitelist/whitelist_msg.h
parent091d0afa2163a6aba79bf4802330f0099e857e38 (diff)
downloadstrongswan-e11c02c8.tar.bz2
strongswan-e11c02c8.tar.xz
whitelist: use a stream service to accept client connections
Use SOCK_STREAM, as we don't have SOCK_SEQPACKET on TCP. To have network transparency, the message now uses network byte order.
Diffstat (limited to 'src/libcharon/plugins/whitelist/whitelist_msg.h')
-rw-r--r--src/libcharon/plugins/whitelist/whitelist_msg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/whitelist/whitelist_msg.h b/src/libcharon/plugins/whitelist/whitelist_msg.h
index 65b922996..595fb6ffb 100644
--- a/src/libcharon/plugins/whitelist/whitelist_msg.h
+++ b/src/libcharon/plugins/whitelist/whitelist_msg.h
@@ -53,6 +53,6 @@ struct whitelist_msg_t {
int type;
/** null terminated identity */
char id[128];
-};
+} __attribute__((packed));
#endif /** WHITELIST_MSG_H_ @}*/