diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-27 12:08:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-27 12:08:27 -0700 |
commit | 54db122321d0eb50ba5f990df2f5bbc74db3e880 (patch) | |
tree | 721fc671ff7eb297728ec4cccfa9dc9e7eb43ea7 /cpack.c | |
parent | 5779709949c1092c62cdd07095be68101d78b1de (diff) | |
download | tcpdump-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.c')
-rw-r--r-- | cpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,7 +38,7 @@ #include "cpack.h" #include "extract.h" -static u_int8_t * +u_int8_t * cpack_next_boundary(u_int8_t *buf, u_int8_t *p, size_t alignment) { size_t misalignment = (size_t)(p - buf) % alignment; @@ -53,7 +53,7 @@ cpack_next_boundary(u_int8_t *buf, u_int8_t *p, size_t alignment) * wordsize bytes remain in the buffer after the boundary. Otherwise, * return a pointer to the boundary. */ -static u_int8_t * +u_int8_t * cpack_align_and_reserve(struct cpack_state *cs, size_t wordsize) { u_int8_t *next; |