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/etherdevice.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 MAX_LOOKAHEAD_SIZE   ETH_FRAME_LEN
 
#define U_MULTI_ADDR_LEN   8
 
#define TYPE_PKT_IP   0x0008
 
#define TYPE_PKT_ARP   0x0608
 
#define TYPE_PKT_RARP   0x3580
 
#define TYPE_PKT_IPX   0x3781
 
#define TYPE_PKT_802_1x   0x8e88
 
#define TYPE_PKT_PreAuth   0xC788
 
#define TYPE_PKT_PING_M_REQ   0x1180
 
#define TYPE_PKT_PING_S_GNT   0x2280
 
#define TYPE_PKT_PING_M   0x7780
 
#define TYPE_PKT_PING_S   0x8880
 
#define TYPE_PKT_WOL_M_REQ   0x3380
 
#define TYPE_PKT_WOL_S_GNT   0x4480
 
#define TYPE_MGMT_PROBE_RSP   0x0050
 
#define TYPE_PKT_VNT_DIAG   0x1180
 
#define TYPE_PKT_VNT_PER   0x8888
 
#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
 
unsigned char ETHbyGetHashIndexByCrc32 (unsigned char *pbyMultiAddr)
 
bool ETHbIsBufferCrc32Ok (unsigned char *pbyBuffer, unsigned int cbFrameLength)
 

Variables

unsigned char abyDstAddr [ETH_ALEN]
 
unsigned char abySrcAddr [ETH_ALEN]
 
unsigned short wType
 
struct tagSEthernetHeaderPSEthernetHeader
 
unsigned short wLen
 
struct tagS802_3HeaderPS802_3Header
 
unsigned short wFrameCtl
 
unsigned short wDurationID
 
unsigned char abyAddr1 [ETH_ALEN]
 
unsigned char abyAddr2 [ETH_ALEN]
 
unsigned char abyAddr3 [ETH_ALEN]
 
unsigned short wSeqCtl
 
unsigned char abyAddr4 [ETH_ALEN]
 
struct tagS802_11HeaderPS802_11Header
 

Macro Definition Documentation

#define FC_FROMDS   0x0200

Definition at line 122 of file tether.h.

#define FC_MOREDATA   0x2000

Definition at line 126 of file tether.h.

#define FC_MOREFRAG   0x0400

Definition at line 123 of file tether.h.

#define FC_POWERMGT   0x1000

Definition at line 125 of file tether.h.

#define FC_RETRY   0x0800

Definition at line 124 of file tether.h.

#define FC_TODS   0x0100

Definition at line 121 of file tether.h.

#define FC_WEP   0x4000

Definition at line 127 of file tether.h.

#define MAX_LOOKAHEAD_SIZE   ETH_FRAME_LEN

Definition at line 42 of file tether.h.

#define TYPE_802_11_ATIM   0x0090

Definition at line 128 of file tether.h.

#define TYPE_802_11_CTL   0x0004

Definition at line 131 of file tether.h.

#define TYPE_802_11_DATA   0x0008

Definition at line 130 of file tether.h.

#define TYPE_802_11_MASK   0x000C

Definition at line 133 of file tether.h.

#define TYPE_802_11_MGMT   0x0000

Definition at line 132 of file tether.h.

#define TYPE_802_11_NODATA   0x0040

Definition at line 135 of file tether.h.

#define TYPE_CTL_ACK   0x00d4

Definition at line 141 of file tether.h.

#define TYPE_CTL_CTS   0x00c4

Definition at line 140 of file tether.h.

#define TYPE_CTL_PSPOLL   0x00a4

Definition at line 138 of file tether.h.

#define TYPE_CTL_RTS   0x00b4

Definition at line 139 of file tether.h.

#define TYPE_DATE_NULL   0x0048

Definition at line 136 of file tether.h.

#define TYPE_MGMT_PROBE_RSP   0x0050

Definition at line 113 of file tether.h.

#define TYPE_PKT_802_1x   0x8e88

Definition at line 104 of file tether.h.

#define TYPE_PKT_ARP   0x0608

Definition at line 100 of file tether.h.

#define TYPE_PKT_IP   0x0008

Definition at line 99 of file tether.h.

#define TYPE_PKT_IPX   0x3781

Definition at line 102 of file tether.h.

#define TYPE_PKT_PING_M   0x7780

Definition at line 109 of file tether.h.

#define TYPE_PKT_PING_M_REQ   0x1180

Definition at line 107 of file tether.h.

#define TYPE_PKT_PING_S   0x8880

Definition at line 110 of file tether.h.

#define TYPE_PKT_PING_S_GNT   0x2280

Definition at line 108 of file tether.h.

#define TYPE_PKT_PreAuth   0xC788

Definition at line 105 of file tether.h.

#define TYPE_PKT_RARP   0x3580

Definition at line 101 of file tether.h.

#define TYPE_PKT_VNT_DIAG   0x1180

Definition at line 114 of file tether.h.

#define TYPE_PKT_VNT_PER   0x8888

Definition at line 115 of file tether.h.

#define TYPE_PKT_WOL_M_REQ   0x3380

Definition at line 111 of file tether.h.

#define TYPE_PKT_WOL_S_GNT   0x4480

Definition at line 112 of file tether.h.

#define TYPE_SUBTYPE_MASK   0x00FC

Definition at line 134 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 44 of file tether.h.

#define WEP_IV_MASK   0x00FFFFFF

Definition at line 147 of file tether.h.

Function Documentation

struct tagSEthernetHeader __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

bool ETHbIsBufferCrc32Ok ( unsigned char pbyBuffer,
unsigned int  cbFrameLength 
)

Definition at line 99 of file tether.c.

unsigned char ETHbyGetHashIndexByCrc32 ( unsigned char pbyMultiAddr)

Definition at line 64 of file tether.c.

Variable Documentation

unsigned char abyAddr1[ETH_ALEN]

Definition at line 186 of file tether.h.

unsigned char abyAddr2[ETH_ALEN]

Definition at line 187 of file tether.h.

unsigned char abyAddr3[ETH_ALEN]

Definition at line 188 of file tether.h.

unsigned char abyAddr4[ETH_ALEN]

Definition at line 190 of file tether.h.

BYTE abyDstAddr

Definition at line 159 of file tether.h.

BYTE abySrcAddr

Definition at line 160 of file tether.h.

struct tagS802_11Header * PS802_11Header

Definition at line 183 of file tether.h.

struct tagS802_3Header * PS802_3Header

Definition at line 169 of file tether.h.

struct tagSEthernetHeader * PSEthernetHeader

Definition at line 158 of file tether.h.

unsigned short wDurationID

Definition at line 185 of file tether.h.

unsigned short wFrameCtl

Definition at line 184 of file tether.h.

unsigned short wLen

Definition at line 172 of file tether.h.

unsigned short wSeqCtl

Definition at line 189 of file tether.h.

unsigned short wType

Definition at line 161 of file tether.h.