Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
tether.h File Reference
#include <linux/if_ether.h>
#include "ttype.h"

Go to the source code of this file.

Data Structures

struct  tagSEthernetHeader
 
struct  tagS802_3Header
 
struct  tagS802_11Header
 

Macros

#define U_ETHER_ADDR_STR_LEN   (ETH_ALEN * 2 + 1)
 
#define U_MULTI_ADDR_LEN   8
 
#define TYPE_MGMT_PROBE_RSP   0x0050
 
#define FC_TODS   0x0100
 
#define FC_FROMDS   0x0200
 
#define FC_MOREFRAG   0x0400
 
#define FC_RETRY   0x0800
 
#define FC_POWERMGT   0x1000
 
#define FC_MOREDATA   0x2000
 
#define FC_WEP   0x4000
 
#define TYPE_802_11_ATIM   0x0090
 
#define TYPE_802_11_DATA   0x0008
 
#define TYPE_802_11_CTL   0x0004
 
#define TYPE_802_11_MGMT   0x0000
 
#define TYPE_802_11_MASK   0x000C
 
#define TYPE_SUBTYPE_MASK   0x00FC
 
#define TYPE_802_11_NODATA   0x0040
 
#define TYPE_DATE_NULL   0x0048
 
#define TYPE_CTL_PSPOLL   0x00a4
 
#define TYPE_CTL_RTS   0x00b4
 
#define TYPE_CTL_CTS   0x00c4
 
#define TYPE_CTL_ACK   0x00d4
 
#define WEP_IV_MASK   0x00FFFFFF
 

Functions

struct tagSEthernetHeader __attribute__ ((__packed__)) SEthernetHeader
 
BYTE ETHbyGetHashIndexByCrc32 (PBYTE pbyMultiAddr)
 
BOOL ETHbIsBufferCrc32Ok (PBYTE pbyBuffer, unsigned int cbFrameLength)
 

Variables

BYTE abyDstAddr [ETH_ALEN]
 
BYTE abySrcAddr [ETH_ALEN]
 
WORD wType
 
struct tagSEthernetHeaderPSEthernetHeader
 
WORD wLen
 
struct tagS802_3HeaderPS802_3Header
 
WORD wFrameCtl
 
WORD wDurationID
 
BYTE abyAddr1 [ETH_ALEN]
 
BYTE abyAddr2 [ETH_ALEN]
 
BYTE abyAddr3 [ETH_ALEN]
 
WORD wSeqCtl
 
BYTE abyAddr4 [ETH_ALEN]
 
struct tagS802_11HeaderPS802_11Header
 

Macro Definition Documentation

#define FC_FROMDS   0x0200

Definition at line 91 of file tether.h.

#define FC_MOREDATA   0x2000

Definition at line 95 of file tether.h.

#define FC_MOREFRAG   0x0400

Definition at line 92 of file tether.h.

#define FC_POWERMGT   0x1000

Definition at line 94 of file tether.h.

#define FC_RETRY   0x0800

Definition at line 93 of file tether.h.

#define FC_TODS   0x0100

Definition at line 90 of file tether.h.

#define FC_WEP   0x4000

Definition at line 96 of file tether.h.

#define TYPE_802_11_ATIM   0x0090

Definition at line 97 of file tether.h.

#define TYPE_802_11_CTL   0x0004

Definition at line 100 of file tether.h.

#define TYPE_802_11_DATA   0x0008

Definition at line 99 of file tether.h.

#define TYPE_802_11_MASK   0x000C

Definition at line 102 of file tether.h.

#define TYPE_802_11_MGMT   0x0000

Definition at line 101 of file tether.h.

#define TYPE_802_11_NODATA   0x0040

Definition at line 104 of file tether.h.

#define TYPE_CTL_ACK   0x00d4

Definition at line 110 of file tether.h.

#define TYPE_CTL_CTS   0x00c4

Definition at line 109 of file tether.h.

#define TYPE_CTL_PSPOLL   0x00a4

Definition at line 107 of file tether.h.

#define TYPE_CTL_RTS   0x00b4

Definition at line 108 of file tether.h.

#define TYPE_DATE_NULL   0x0048

Definition at line 105 of file tether.h.

#define TYPE_MGMT_PROBE_RSP   0x0050

Definition at line 83 of file tether.h.

#define TYPE_SUBTYPE_MASK   0x00FC

Definition at line 103 of file tether.h.

#define U_ETHER_ADDR_STR_LEN   (ETH_ALEN * 2 + 1)

Definition at line 39 of file tether.h.

#define U_MULTI_ADDR_LEN   8

Definition at line 41 of file tether.h.

#define WEP_IV_MASK   0x00FFFFFF

Definition at line 116 of file tether.h.

Function Documentation

struct tagSEthernetHeader __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

BOOL ETHbIsBufferCrc32Ok ( PBYTE  pbyBuffer,
unsigned int  cbFrameLength 
)

Definition at line 99 of file tether.c.

BYTE ETHbyGetHashIndexByCrc32 ( PBYTE  pbyMultiAddr)

Definition at line 64 of file tether.c.

Variable Documentation

BYTE abyAddr1[ETH_ALEN]

Definition at line 155 of file tether.h.

BYTE abyAddr2[ETH_ALEN]

Definition at line 156 of file tether.h.

BYTE abyAddr3[ETH_ALEN]

Definition at line 157 of file tether.h.

BYTE abyAddr4[ETH_ALEN]

Definition at line 159 of file tether.h.

BYTE abyDstAddr[ETH_ALEN]

Definition at line 128 of file tether.h.

BYTE abySrcAddr[ETH_ALEN]

Definition at line 129 of file tether.h.

struct tagS802_11Header * PS802_11Header

Definition at line 152 of file tether.h.

struct tagS802_3Header * PS802_3Header

Definition at line 138 of file tether.h.

struct tagSEthernetHeader * PSEthernetHeader

Definition at line 127 of file tether.h.

WORD wDurationID

Definition at line 154 of file tether.h.

WORD wFrameCtl

Definition at line 153 of file tether.h.

WORD wLen

Definition at line 141 of file tether.h.

WORD wSeqCtl

Definition at line 158 of file tether.h.

WORD wType

Definition at line 130 of file tether.h.