μHAL (v2.6.5)
Part of the IPbus software repository
Public Member Functions | Private Attributes | List of all members
ethernet_frame Struct Reference

Struct for storing an ethernet frame. More...

Public Member Functions

uint64_t source_MAC ()
 Return source MAC address. More...
 
uint32_t source_IP ()
 Return source IP address. More...
 
uint16_t source_port ()
 Return source port. More...
 
uint64_t destination_MAC ()
 Return destination MAC address. More...
 
uint32_t destination_IP ()
 Return destination IP address. More...
 
uint16_t destination_port ()
 Return destination port. More...
 
uint16_t length ()
 Return length. More...
 
std::vector< uint32_t > data ()
 Return payload. More...
 

Private Attributes

uint8_t d_MAC [6]
 Destination MAC address. More...
 
uint8_t s_MAC [6]
 Source MAC address. More...
 
uint8_t junk1 [14]
 Ignored bits. More...
 
uint8_t s_IP [4]
 Source IP address. More...
 
uint8_t d_IP [4]
 Destination IP address. More...
 
uint8_t s_port [2]
 Source Port. More...
 
uint8_t d_port [2]
 Destination Port. More...
 
uint8_t l [2]
 Length. More...
 
uint8_t junk2 [2]
 Ignored bits. More...
 
uint8_t d [1458]
 Payload. More...
 

Detailed Description

Struct for storing an ethernet frame.

Definition at line 20 of file WiresharkParser.cxx.

Member Function Documentation

◆ data()

std::vector<uint32_t> ethernet_frame::data ( )
inline

Return payload.

Returns
payload

Definition at line 107 of file WiresharkParser.cxx.

Referenced by main().

◆ destination_IP()

uint32_t ethernet_frame::destination_IP ( )
inline

Return destination IP address.

Returns
destination IP address

Definition at line 82 of file WiresharkParser.cxx.

Referenced by main().

◆ destination_MAC()

uint64_t ethernet_frame::destination_MAC ( )
inline

Return destination MAC address.

Returns
destination MAC address

Definition at line 74 of file WiresharkParser.cxx.

Referenced by main().

◆ destination_port()

uint16_t ethernet_frame::destination_port ( )
inline

Return destination port.

Returns
destination port

Definition at line 90 of file WiresharkParser.cxx.

Referenced by main().

◆ length()

uint16_t ethernet_frame::length ( )
inline

Return length.

Returns
length

Definition at line 98 of file WiresharkParser.cxx.

◆ source_IP()

uint32_t ethernet_frame::source_IP ( )
inline

Return source IP address.

Returns
source IP address

Definition at line 57 of file WiresharkParser.cxx.

Referenced by main().

◆ source_MAC()

uint64_t ethernet_frame::source_MAC ( )
inline

Return source MAC address.

Returns
source MAC address

Definition at line 49 of file WiresharkParser.cxx.

Referenced by main().

◆ source_port()

uint16_t ethernet_frame::source_port ( )
inline

Return source port.

Returns
source port

Definition at line 65 of file WiresharkParser.cxx.

Referenced by main().

Member Data Documentation

◆ d

uint8_t ethernet_frame::d[1458]
private

Payload.

Definition at line 42 of file WiresharkParser.cxx.

◆ d_IP

uint8_t ethernet_frame::d_IP[4]
private

Destination IP address.

Definition at line 32 of file WiresharkParser.cxx.

◆ d_MAC

uint8_t ethernet_frame::d_MAC[6]
private

Destination MAC address.

Definition at line 24 of file WiresharkParser.cxx.

◆ d_port

uint8_t ethernet_frame::d_port[2]
private

Destination Port.

Definition at line 36 of file WiresharkParser.cxx.

◆ junk1

uint8_t ethernet_frame::junk1[14]
private

Ignored bits.

Definition at line 28 of file WiresharkParser.cxx.

◆ junk2

uint8_t ethernet_frame::junk2[2]
private

Ignored bits.

Definition at line 40 of file WiresharkParser.cxx.

◆ l

uint8_t ethernet_frame::l[2]
private

Length.

Definition at line 38 of file WiresharkParser.cxx.

◆ s_IP

uint8_t ethernet_frame::s_IP[4]
private

Source IP address.

Definition at line 30 of file WiresharkParser.cxx.

◆ s_MAC

uint8_t ethernet_frame::s_MAC[6]
private

Source MAC address.

Definition at line 26 of file WiresharkParser.cxx.

◆ s_port

uint8_t ethernet_frame::s_port[2]
private

Source Port.

Definition at line 34 of file WiresharkParser.cxx.


The documentation for this struct was generated from the following file: