LLC
[UMAC]

LLC translation definitions. More...

Collaboration diagram for LLC:

Data Structures

struct  llc_snap_short
 LLC/SNAP structure. More...
struct  llc_snap
 LLC/SNAP structure. More...

Variables

struct llc_snap_short llc_rfc1042_hdr
 RFC1042 LLC/SNAP Header.
struct llc_snap_short llc_bridge_tunnel_hdr
 Bridge-Tunnel LLC/SNAP Header.
struct llc_snap_short llc_rfc1042_hdr
 RFC1042 LLC/SNAP Header.
struct llc_snap_short llc_bridge_tunnel_hdr
 Bridge-Tunnel LLC/SNAP Header.

LLC field definitions

LLC = DSAP + SSAP + CTRL

Note:
: The 0xAA values indicate the presence of the SNAP


#define LLC_LLC_LEN   3
#define LLC_DSAP   0xAA
#define LLC_SSAP   0xAA
#define LLC_CTRL   0x03

SNAP field definitions

SNAP = OUI + ETHER_TYPE



#define LLC_SNAP_LEN   5
#define LLC_OUI_LEN   3

802.2 Header definitions

The 802.2 Header is the LLC + the SNAP



#define LLC_802_2_HDR_LEN   (LLC_LLC_LEN + LLC_SNAP_LEN)

802.2 Ethernet definitions



#define LLC_ETHER_MTU   1500
 Ethernet MTU.
#define LLC_ETHER_HDR_LEN   14
 Size of the Ethernet header.
#define LLC_ETHERTYPE_LEN   2
 Size of the Ethernet type.
#define LLC_ETHERTYPE_LEN_OFT   12
 Offset of the Ethernet type within the header.
#define LLC_802_2_ETHERTYPE_OFT   6
 Offset of the EtherType in the 802.2 header.
#define LLC_FRAMELENGTH_MAXVALUE   0x600
 Maximum value of the frame length.

Useful EtherType values



#define LLC_ETHERTYPE_APPLETALK   0x809B
#define LLC_ETHERTYPE_IPX   0x8137
#define LLC_ETHERTYPE_AARP   0x80F3
#define LLC_ETHERTYPE_EAP_T   0x888E
#define LLC_ETHERTYPE_802_1Q   0x8100
#define LLC_ETHERTYPE_IP   0x0800
#define LLC_ETHERTYPE_ARP   0x0806

802_1Q VLAN header definitions



#define LLC_802_1Q_TCI_VID_MASK   0x0FFF
#define LLC_802_1Q_TCI_PRI_MASK   0xE000
#define LLC_802_1Q_TCI_CFI_MASK   0x1000
#define LLC_802_1Q_HDR_LEN   4
#define LLC_802_1Q_VID_NULL   0
#define LLC_OFFSET_ETHERTYPE   12
#define LLC_OFFSET_IPV4_PRIO   15
#define LLC_OFFSET_802_1Q_TCI   14

Detailed Description

LLC translation definitions.


Variable Documentation

Initial value:
 {
                                                        0xAAAA, 
                                                        0x0003, 
                                                        0xF800, 
                                                    }

Bridge-Tunnel LLC/SNAP Header.

Definition at line 37 of file llc.c.

Referenced by rxu_cntrl_mac2eth_update().

Initial value:
 {
                                                  0xAAAA, 
                                                  0x0003, 
                                                  0x0000, 
                                              }

RFC1042 LLC/SNAP Header.

Definition at line 30 of file llc.c.

Referenced by rxu_cntrl_mac2eth_update().


Generated on 14 Jan 2020 for Ceva-RW WLAN FullMAC SW documentation by  doxygen 1.6.1