diff options
author | sam <sam@FreeBSD.org> | 2007-07-11 15:48:36 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-07-11 15:48:36 +0000 |
commit | 35aef052ff21baa52c4cec68b512986c21f70a48 (patch) | |
tree | c3da7f33886a852f7dceb74373fbdeec49a48f77 /contrib/wpa_supplicant/eap_tlv.h | |
parent | 840099f34d8de1ca769f02fae379c4d8e5d6688a (diff) | |
download | FreeBSD-src-35aef052ff21baa52c4cec68b512986c21f70a48.zip FreeBSD-src-35aef052ff21baa52c4cec68b512986c21f70a48.tar.gz |
Import of WPA supplicant 0.5.8
Diffstat (limited to 'contrib/wpa_supplicant/eap_tlv.h')
-rw-r--r-- | contrib/wpa_supplicant/eap_tlv.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/contrib/wpa_supplicant/eap_tlv.h b/contrib/wpa_supplicant/eap_tlv.h index 6a5afe0..0525a60 100644 --- a/contrib/wpa_supplicant/eap_tlv.h +++ b/contrib/wpa_supplicant/eap_tlv.h @@ -1,6 +1,6 @@ /* - * WPA Supplicant / EAP-TLV (draft-josefsson-pppext-eap-tls-eap-07.txt) - * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi> + * EAP peer method: EAP-TLV (draft-josefsson-pppext-eap-tls-eap-07.txt) + * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -32,29 +32,33 @@ #define EAP_TLV_TYPE_MANDATORY 0x8000 +#ifdef _MSC_VER +#pragma pack(push, 1) +#endif /* _MSC_VER */ + struct eap_tlv_hdr { u16 tlv_type; u16 length; -}; +} STRUCT_PACKED; struct eap_tlv_nak_tlv { u16 tlv_type; u16 length; u32 vendor_id; u16 nak_type; -} __attribute__((packed)); +} STRUCT_PACKED; struct eap_tlv_result_tlv { u16 tlv_type; u16 length; u16 status; -} __attribute__((packed)); +} STRUCT_PACKED; struct eap_tlv_intermediate_result_tlv { u16 tlv_type; u16 length; u16 status; -} __attribute__((packed)); +} STRUCT_PACKED; struct eap_tlv_crypto_binding__tlv { u16 tlv_type; @@ -65,7 +69,7 @@ struct eap_tlv_crypto_binding__tlv { u8 subtype; u8 nonce[32]; u8 compound_mac[20]; -} __attribute__((packed)); +} STRUCT_PACKED; struct eap_tlv_pac_ack_tlv { u16 tlv_type; @@ -73,7 +77,11 @@ struct eap_tlv_pac_ack_tlv { u16 pac_type; u16 pac_len; u16 result; -} __attribute__((packed)); +} STRUCT_PACKED; + +#ifdef _MSC_VER +#pragma pack(pop) +#endif /* _MSC_VER */ #define EAP_TLV_CRYPTO_BINDING_SUBTYPE_REQUEST 0 #define EAP_TLV_CRYPTO_BINDING_SUBTYPE_RESPONSE 1 |