diff options
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.h,v 1.52 2014/04/20 02:30:25 djm Exp $ */ | 1 | /* $OpenBSD: misc.h,v 1.53 2014/05/02 03:27:54 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -70,23 +70,23 @@ int tun_open(int, int); | |||
70 | 70 | ||
71 | /* Functions to extract or store big-endian words of various sizes */ | 71 | /* Functions to extract or store big-endian words of various sizes */ |
72 | u_int64_t get_u64(const void *) | 72 | u_int64_t get_u64(const void *) |
73 | __bounded(( __minbytes__, 1, 8)); | 73 | __attribute__((__bounded__( __minbytes__, 1, 8))); |
74 | u_int32_t get_u32(const void *) | 74 | u_int32_t get_u32(const void *) |
75 | __bounded(( __minbytes__, 1, 4)); | 75 | __attribute__((__bounded__( __minbytes__, 1, 4))); |
76 | u_int16_t get_u16(const void *) | 76 | u_int16_t get_u16(const void *) |
77 | __bounded(( __minbytes__, 1, 2)); | 77 | __attribute__((__bounded__( __minbytes__, 1, 2))); |
78 | void put_u64(void *, u_int64_t) | 78 | void put_u64(void *, u_int64_t) |
79 | __bounded(( __minbytes__, 1, 8)); | 79 | __attribute__((__bounded__( __minbytes__, 1, 8))); |
80 | void put_u32(void *, u_int32_t) | 80 | void put_u32(void *, u_int32_t) |
81 | __bounded(( __minbytes__, 1, 4)); | 81 | __attribute__((__bounded__( __minbytes__, 1, 4))); |
82 | void put_u16(void *, u_int16_t) | 82 | void put_u16(void *, u_int16_t) |
83 | __bounded(( __minbytes__, 1, 2)); | 83 | __attribute__((__bounded__( __minbytes__, 1, 2))); |
84 | 84 | ||
85 | /* Little-endian store/load, used by umac.c */ | 85 | /* Little-endian store/load, used by umac.c */ |
86 | u_int32_t get_u32_le(const void *) | 86 | u_int32_t get_u32_le(const void *) |
87 | __bounded(( __minbytes__, 1, 4)); | 87 | __attribute__((__bounded__(__minbytes__, 1, 4))); |
88 | void put_u32_le(void *, u_int32_t) | 88 | void put_u32_le(void *, u_int32_t) |
89 | __bounded(( __minbytes__, 1, 4)); | 89 | __attribute__((__bounded__(__minbytes__, 1, 4))); |
90 | 90 | ||
91 | struct bwlimit { | 91 | struct bwlimit { |
92 | size_t buflen; | 92 | size_t buflen; |