.\" DO NOT MODIFY THIS FILE! It was generated by setup.py 1.2. .TH ETHERNET 3 "21 March 2023" "NFStest 3.2" "ethernet 1.3" .SH NAME packet.link.ethernet - ETHERNET module .SH DESCRIPTION Decode ethernet layer (RFC 894) Ethernet II. .SH CLASSES .SS class ETHERNET(baseobj.BaseObj) .nf 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 psize = int, # payload data size data = string, # raw data of payload if type is not supported ) .P .B Methods defined here: --------------------- .P .B __init__(self, pktt) Constructor Initialize object's private data. .RS .TP .B pktt: Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers. .RE .P .B __str__(self) String representation of object The representation depends on the verbose level set by debug_repr(). If set to 0 the generic object representation is returned. If set to 1 the representation of the object is condensed: '00:0c:29:54:09:ef -> 60:33:4b:29:6e:9d ' If set to 2 the representation of the object also includes the type of payload: '00:0c:29:54:09:ef -> 60:33:4b:29:6e:9d, type: 0x800(IPv4)' .fi .SH SEE ALSO .BR baseobj(3), .BR packet.internet.arp(3), .BR packet.internet.ipv4(3), .BR packet.internet.ipv6(3), .BR packet.link.ethernet_const(3), .BR packet.link.macaddr(3), .BR packet.link.vlan(3), .BR packet.transport.ib(3) .SH BUGS No known bugs. .SH AUTHOR Jorge Mora (mora@netapp.com)