packet.link.ethernet (3) Linux Manual Page
packet.link.ethernet – ETHERNET module
Description
Decode ethernet layer (RFC 894) Ethernet II.
Classes
class ETHERNET(baseobj.BaseObj)
Ethernet object Usage: from packet.link.ethernet import ETHERNET x = ETHERNET(pktt) Object definition: ETHERNET( dst = MacAddr(), # destination MAC address src = MacAddr(), # source MAC address type = int, # payload type data = string, # raw data of payload if type is not supported ) Methods defined here: --------------------- __init__(self, pktt) Constructor Initialize object's private data.
- pktt:
- Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers.
See Also
baseobj(3), packet.internet.ipv4(3), packet.internet.ipv6(3)
Bugs
No known bugs.
Author
Jorge Mora (mora [at] netapp.com)
