Package dpkt :: Module ethernet
[hide private]
[frames] | no frames]

Module ethernet

source code

Ethernet II, LLC (802.3+802.2), LLC/SNAP, and Novell raw 802.3,
with automatic 802.1q, MPLS, PPPoE, and Cisco ISL decapsulation.

Classes [hide private]
  Ethernet
Ethernet.
  MPLSlabel
A single entry in MPLS label stack
  VLANtag8021Q
IEEE 802.1q VLAN tag
  VLANtagISL
Cisco Inter-Switch Link VLAN tag
Functions [hide private]
 
isstr(s) source code
 
__load_types() source code
 
_mod_init()
Post-initialization called when all dpkt modules are fully loaded
source code
 
test_eth() source code
 
test_eth_init_with_data() source code
 
test_mpls_label() source code
 
test_802dot1q_tag() source code
 
test_isl_tag() source code
 
test_eth_802dot1q() source code
 
test_eth_802dot1q_stacked() source code
 
test_eth_mpls_stacked() source code
 
test_isl_eth_llc_stp() source code
 
test_eth_llc_snap_cdp() source code
 
test_eth_llc_ipx() source code
 
test_eth_pppoe() source code
Variables [hide private]
  ETH_CRC_LEN = 4
  ETH_HDR_LEN = 14
  ETH_LEN_MIN = 64
  ETH_LEN_MAX = 1518
  ETH_MTU = 1500
  ETH_MIN = 46
  ETH_TYPE_PUP = 512
  ETH_TYPE_IP = 2048
  ETH_TYPE_ARP = 2054
  ETH_TYPE_AOE = 34978
  ETH_TYPE_CDP = 8192
  ETH_TYPE_DTP = 8196
  ETH_TYPE_REVARP = 32821
  ETH_TYPE_8021Q = 33024
  ETH_TYPE_IPX = 33079
  ETH_TYPE_IP6 = 34525
  ETH_TYPE_PPP = 34827
  ETH_TYPE_MPLS = 34887
  ETH_TYPE_MPLS_MCAST = 34888
  ETH_TYPE_PPPoE_DISC = 34915
  ETH_TYPE_PPPoE = 34916
  ETH_TYPE_LLDP = 35020
  ETH_TYPE_TEB = 25944
  __package__ = 'dpkt'