nexp-ether — Ethernet support for Network Expect
PDU definition:
ether
( [src
=MAC addr
,] [dst
=MAC addr
,] [proto
=num
] )
PDU decoding:
$ether(src)
, $ether(dst)
,
$ether(type)
The following parameters allow to define the different parts of an Ethernet protocol data unit (PDU) in Network Expect:
src
= MACADDR
Specifies the source MAC
address. MACADDR
is the MAC
address in aa:bb:cc:dd:ee:ff format. Default: MAC address
of egress interface.
dst
= NUMSPEC
Specifies the destination MAC
address. MACADDR
is the MAC
address in aa:bb:cc:dd:ee:ff format.
proto
= NUMSPEC
Specifies the type of payload that the Ethernet frame is
carrying. NUMSPEC
is a numeric
specification. You should only use this option if you are
not specifying a higher layer protocol like ARP, IPv4 or
IPv6, and want to inject a raw Ethernet payload.
The following Tcl variables are available to Tcl scripts after any Network Expect command that reads and decodes packets has decoded a packet. Commands that read and decode packets include the expect_network family of commands as well as the pdu decode command.
The source MAC address of the received Ethernet frame.
The destination MAC address of the received Ethernet frame.
The 16-bit ethertype
field of the
received Ethernet frame.
Network Expect Ethernet PDUs support the send_expect command.
The hash of an Ethernet PDU is the 16-bit Ethernet type, in network byte order.
A received Ethernet PDU is considered to be a response to an injected stimulus if the hash of the received Ethernet frame is the same to that of the injected stimulus and the Ethernet type is the same in both the received and injected frames.