Added Link Layer Discovery Protocol to ethernet.py

Applied the patch from http://code.google.com/p/dpkt/issues/detail?id=85
This commit is contained in:
Kiran Bandla 2012-06-06 15:03:44 -04:00
parent f2eabcaf2c
commit 7503ee63e5
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ ETH_TYPE_MPLS = 0x8847 # MPLS
ETH_TYPE_MPLS_MCAST = 0x8848 # MPLS Multicast
ETH_TYPE_PPPoE_DISC = 0x8863 # PPP Over Ethernet Discovery Stage
ETH_TYPE_PPPoE = 0x8864 # PPP Over Ethernet Session Stage
ETH_TYPE_LLDP = 0x88CC # Link Layer Discovery Protocol
# MPLS label stack fields
MPLS_LABEL_MASK = 0xfffff000