~ubuntu-branches/ubuntu/precise/tcpdump/precise-updates

« back to all changes in this revision

Viewing changes to ieee802_11.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Francoise
  • Date: 2008-03-08 19:24:02 UTC
  • mfrom: (6.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080308192402-9n7erk2yyyd5mpt3
Tags: 3.9.8-4
debian/control: Build-Depend on libpcap0.8-dev (>= 0.9.3),
not (>= 0.9.3-1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* @(#) $Header: /tcpdump/master/tcpdump/ieee802_11.h,v 1.9.4.2 2005/11/13 12:07:44 guy Exp $ (LBL) */
 
1
/* @(#) $Header: /tcpdump/master/tcpdump/ieee802_11.h,v 1.9.4.3 2007/07/22 20:01:16 guy Exp $ (LBL) */
2
2
/*
3
3
 * Copyright (c) 2001
4
4
 *      Fortress Technologies
79
79
#define CTRL_CF_END     0xE
80
80
#define CTRL_END_ACK    0xF
81
81
 
82
 
#define DATA_DATA               0x0
83
 
#define DATA_DATA_CF_ACK        0x1
84
 
#define DATA_DATA_CF_POLL       0x2
85
 
#define DATA_DATA_CF_ACK_POLL   0x3
86
 
#define DATA_NODATA             0x4
87
 
#define DATA_NODATA_CF_ACK      0x5
88
 
#define DATA_NODATA_CF_POLL     0x6
89
 
#define DATA_NODATA_CF_ACK_POLL 0x7
 
82
#define DATA_DATA                       0x0
 
83
#define DATA_DATA_CF_ACK                0x1
 
84
#define DATA_DATA_CF_POLL               0x2
 
85
#define DATA_DATA_CF_ACK_POLL           0x3
 
86
#define DATA_NODATA                     0x4
 
87
#define DATA_NODATA_CF_ACK              0x5
 
88
#define DATA_NODATA_CF_POLL             0x6
 
89
#define DATA_NODATA_CF_ACK_POLL         0x7
 
90
 
 
91
#define DATA_QOS_DATA                   0x8
 
92
#define DATA_QOS_DATA_CF_ACK            0x9
 
93
#define DATA_QOS_DATA_CF_POLL           0xA
 
94
#define DATA_QOS_DATA_CF_ACK_POLL       0xB
 
95
#define DATA_QOS_NODATA                 0xC
 
96
#define DATA_QOS_CF_POLL_NODATA         0xE
 
97
#define DATA_QOS_CF_ACK_POLL_NODATA     0xF
 
98
 
 
99
/*
 
100
 * The subtype field of a data frame is, in effect, composed of 4 flag
 
101
 * bits - CF-Ack, CF-Poll, Null (means the frame doesn't actually have
 
102
 * any data), and QoS.
 
103
 */
 
104
#define DATA_FRAME_IS_CF_ACK(x)         ((x) & 0x01)
 
105
#define DATA_FRAME_IS_CF_POLL(x)        ((x) & 0x02)
 
106
#define DATA_FRAME_IS_NULL(x)           ((x) & 0x04)
 
107
#define DATA_FRAME_IS_QOS(x)            ((x) & 0x08)
90
108
 
91
109
/*
92
110
 * Bits in the frame control field.