diff --git a/src/utils/wpabuf.h b/src/utils/wpabuf.h index b2a54b22f..eb1db8091 100644 --- a/src/utils/wpabuf.h +++ b/src/utils/wpabuf.h @@ -133,6 +133,12 @@ static inline void wpabuf_put_le32(struct wpabuf *buf, u32 data) WPA_PUT_LE32(pos, data); } +static inline void wpabuf_put_le64(struct wpabuf *buf, u64 data) +{ + u8 *pos = (u8 *) wpabuf_put(buf, 8); + WPA_PUT_LE64(pos, data); +} + static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data) { u8 *pos = (u8 *) wpabuf_put(buf, 2); @@ -151,6 +157,12 @@ static inline void wpabuf_put_be32(struct wpabuf *buf, u32 data) WPA_PUT_BE32(pos, data); } +static inline void wpabuf_put_be64(struct wpabuf *buf, u64 data) +{ + u8 *pos = (u8 *) wpabuf_put(buf, 8); + WPA_PUT_BE64(pos, data); +} + static inline void wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) {