1ETHERNET(3)                      ethernet 1.1                      ETHERNET(3)
2
3
4

NAME

6       packet.link.ethernet - ETHERNET module
7

DESCRIPTION

9       Decode ethernet layer (RFC 894) Ethernet II.
10

CLASSES

12   class ETHERNET(baseobj.BaseObj)
13       Ethernet object
14
15       Usage:
16           from packet.link.ethernet import ETHERNET
17
18           x = ETHERNET(pktt)
19
20       Object definition:
21
22       ETHERNET(
23           dst   = MacAddr(),  # destination MAC address
24           src   = MacAddr(),  # source MAC address
25           type  = int,        # payload type
26           data  = string,     # raw data of payload if type is not supported
27       )
28
29
30       Methods defined here:
31       ---------------------
32
33       __init__(self, pktt)
34       Constructor
35
36       Initialize object's private data.
37
38
39              pktt:  Packet trace object (packet.pktt.Pktt) so this layer has
40                     access to the parent layers.
41
42       __str__(self)
43       String representation of object
44
45       The representation depends on the verbose level set by debug_repr().
46       If set to 0 the generic object representation is returned.
47       If set to 1 the representation of the object is condensed:
48           '00:0c:29:54:09:ef -> 60:33:4b:29:6e:9d '
49
50       If set to 2 the representation of the object also includes the type
51       of payload:
52           '00:0c:29:54:09:ef -> 60:33:4b:29:6e:9d, type: 0x800(IPv4)'
53

SEE ALSO

55       baseobj(3),       packet.internet.arp(3),      packet.internet.ipv4(3),
56       packet.internet.ipv6(3)
57
58

BUGS

60       No known bugs.
61

AUTHOR

63       Jorge Mora (mora@netapp.com)
64
65
66
67NFStest 2.1.5                  14 February 2017                    ETHERNET(3)
Impressum