summaryrefslogtreecommitdiff
path: root/cpack.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-27 12:08:27 -0700
committerGuy Harris <guy@alum.mit.edu>2011-04-27 12:08:27 -0700
commit54db122321d0eb50ba5f990df2f5bbc74db3e880 (patch)
tree721fc671ff7eb297728ec4cccfa9dc9e7eb43ea7 /cpack.h
parent5779709949c1092c62cdd07095be68101d78b1de (diff)
downloadtcpdump-54db122321d0eb50ba5f990df2f5bbc74db3e880.tar.gz
Support RX flags, MCS and the vendor namespace, and fix Rate.
Based on patches from an anonymous donor, support the radiotap RX flags and MCS fields, and the vendor namespace, and, if Channel and XChannel are both present, use XChannel, not Channel. Do not try to look up a rate for an MCS value from the Rate field; you cannot map an MCS value to a rate without also knowing the channel width and guard interval length.
Diffstat (limited to 'cpack.h')
-rw-r--r--cpack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpack.h b/cpack.h
index 14ed3769..74f97960 100644
--- a/cpack.h
+++ b/cpack.h
@@ -43,6 +43,9 @@ int cpack_uint16(struct cpack_state *, u_int16_t *);
int cpack_uint32(struct cpack_state *, u_int32_t *);
int cpack_uint64(struct cpack_state *, u_int64_t *);
+u_int8_t *cpack_next_boundary(u_int8_t *buf, u_int8_t *p, size_t alignment);
+u_int8_t *cpack_align_and_reserve(struct cpack_state *cs, size_t wordsize);
+
#define cpack_int8(__s, __p) cpack_uint8((__s), (u_int8_t*)(__p))
#define cpack_int16(__s, __p) cpack_uint16((__s), (u_int16_t*)(__p))
#define cpack_int32(__s, __p) cpack_uint32((__s), (u_int32_t*)(__p))