"Fossies" - the Fresh Open Source Software Archive

Member "tcpflow-1.6.1/src/wifipcap/prism.h" (19 Feb 2021, 1033 Bytes) of package /linux/misc/tcpflow-1.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "prism.h" see the Fossies "Dox" file reference documentation.

    1 
    2 #include "os.h"
    3 
    4 /*
    5 // prism header: added (from wlan-ng)
    6 #define WLAN_DEVNAMELEN_MAX 16
    7 
    8 typedef struct {
    9     uint32_t did;
   10     uint16_t status;
   11     uint16_t len;
   12     uint32_t data;
   13 } __attribute__((__packed__)) p80211item_uint32_t;
   14 
   15 typedef struct {
   16     uint32_t msgcode;
   17     uint32_t msglen;
   18     uint8_t devname[WLAN_DEVNAMELEN_MAX];
   19     p80211item_uint32_t hosttime;
   20     p80211item_uint32_t mactime;
   21     p80211item_uint32_t channel;
   22     p80211item_uint32_t rssi;
   23     p80211item_uint32_t sq;
   24     p80211item_uint32_t signal;
   25     p80211item_uint32_t noise;
   26     p80211item_uint32_t rate;
   27     p80211item_uint32_t istx;
   28     p80211item_uint32_t frmlen;
   29 }  __attribute__((__packed__)) prism2_pkthdr;
   30 */
   31 
   32 #ifdef _WIN32
   33 #pragma pack(push, 1)
   34 #endif
   35 struct prism2_pkthdr {
   36     u_int32_t host_time;
   37     u_int32_t mac_time;
   38     u_int32_t channel;
   39     u_int32_t rssi;
   40     u_int32_t sq;
   41     int       signal;
   42     int       noise;
   43     u_int32_t rate;
   44     u_int32_t istx;
   45     u_int32_t frmlen;
   46 } _PACKED_;
   47 #ifdef _WIN32
   48 #pragma pack(pop)
   49 #endif