Ethernet Link

Frame Capture

The ethernet link can be instructed to dump all traffic to a PCAPNG file.

Wireshark may flag frames as having invalid CRCs. To avoid this you can enable CRC generation in the MAC, or turn off checking in Wireshark.

To enable capture execute the enableCapture command ont he ethernet link.

Example 1. TEMU 3 Command Syntax

ethlink0.enableCapture file="foo.pcap"

Example 2. Legacy Global Command (TEMU 2) Syntax

ethernet-link-enable-capture link=ethlink0 file="foo.pcap"

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

Commands

Name Description

delete

Dispose instance of @EthernetLink

new

Create new instance of EthernetLink

Command new Arguments

Name Type Required Description

name

string

yes

Name of object to create

Properties

Name Type Description

Class

*void

Class object

Component

*void

Pointer to component object if part of component

LoggingFlags

uint64_t

Flags for logging info

Name

*char

Object name

TimeSource

*void

Time source object

Interfaces

Name Type Description

EthernetIface

temu::EthernetIface

Commands

Name Description

connect

Connect device to ethernet link

delete

Dispose instance of EthernetLink

disconnect

Disconnect device from ethernet link

enableCapture

Enable capture to PCAPNG file

Command connect Arguments

Name Type Required Description

device

interface

yes

Device to connect

Command disconnect Arguments

Name Type Required Description

device

interface

yes

Device to connect

Command enableCapture Arguments

Name Type Required Description

file

path

yes

Name of capure file.