From 10afb02ac804db7fa41a776fd61eff922c09c4df Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 9 Nov 2002 17:19:16 +0000 Subject: put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and so forth while i'm here --- ah.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ah.h') diff --git a/ah.h b/ah.h index c22806af..ca3969a9 100644 --- a/ah.h +++ b/ah.h @@ -43,7 +43,7 @@ struct ah { u_int16_t ah_reserve; /* Reserved for future use */ u_int32_t ah_spi; /* Security parameter index */ /* variable size, 32bit bound*/ /* Authentication data */ -}; +} __attribute__((packed)); struct newah { u_int8_t ah_nxt; /* Next Header */ @@ -52,6 +52,6 @@ struct newah { u_int32_t ah_spi; /* Security parameter index */ u_int32_t ah_seq; /* Sequence number field */ /* variable size, 32bit bound*/ /* Authentication data */ -}; +} __attribute__((packed)); #endif /*_NETINET6_AH_H_*/ -- cgit v1.2.1