diff options
| author | Martin Willi <martin@revosec.ch> | 2013-07-01 14:47:11 +0200 |
|---|---|---|
| committer | Martin Willi <martin@revosec.ch> | 2013-07-18 16:00:29 +0200 |
| commit | e11c02c8f1591fef64200137c24598fba9d488a9 (patch) | |
| tree | 37888a2245fa4446222bf1862956dcbb2f72bab2 /src/libcharon/plugins/whitelist/whitelist_msg.h | |
| parent | 091d0afa2163a6aba79bf4802330f0099e857e38 (diff) | |
| download | strongswan-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.h | 2 |
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_ @}*/ |
