summaryrefslogtreecommitdiff
path: root/src/cipher.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-15 17:08:37 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-15 17:08:37 +0000
commit8bdc2bd3d46dfa40af1eb241905f8b0e33c0e5d8 (patch)
tree4fc333a1baa997613f2e530d26334f71239c7f0d /src/cipher.h
parentsmall cleanup (diff)
fixed NOPACKED (Windows build)
Diffstat (limited to 'src/cipher.h')
-rw-r--r--src/cipher.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cipher.h b/src/cipher.h
index c77142e..1e3471b 100644
--- a/src/cipher.h
+++ b/src/cipher.h
@@ -105,13 +105,13 @@ private:
Buffer key_;
Buffer salt_;
- union __attribute__((__packed__)) cipher_aesctr_ctr_union {
+ union ATTR_PACKED cipher_aesctr_ctr_union {
u_int8_t buf_[CTR_LENGTH];
- struct __attribute__ ((__packed__)) {
+ struct ATTR_PACKED {
u_int8_t buf_[SALT_LENGTH];
u_int16_t zero_;
} salt_;
- struct __attribute__((__packed__)) {
+ struct ATTR_PACKED {
u_int8_t fill_[SALT_LENGTH - sizeof(mux_t) - sizeof(sender_id_t) - 2 - sizeof(seq_nr_t)];
mux_t mux_;
sender_id_t sender_id_;