OP_ETH_SETTINGS Structure

This structure defines various settings for OP BR Ethernet networks.

typedef struct __declspec (align(2))
{
    unsigned char ucConfigMode;
    unsigned char preemption_en;
    unsigned char mac_addr1_0;
    unsigned char mac_addr1_1;
    unsigned char mac_addr1_2;
    unsigned char mac_addr1_3;
    unsigned char mac_addr1_4;
    unsigned char mac_addr1_5;
    unsigned char mac_addr2_0;
    unsigned char mac_addr2_1;
    unsigned char mac_addr2_2;
    unsigned char mac_addr2_3;
    unsigned char mac_addr2_4;
    unsigned char mac_addr2_5;
    unsigned char OpEthFlags;
    unsigned char Reserved;
}OP_ETH_SETTINGS;

Remarks

ItemDescription

ucConfigMode

Sets the Link Mode. 0=Auto: 1=Master: 2=Slave

preemption_en

Enables Preemption Support (IEEE802.3Br). 0=Disabled: 1=Enabled

mac_addr1_0

First byte of Original MAC address XX:11:22:33:44:55

mac_addr1_1

Second byte of Original MAC address 00:XX:22:33:44:55

mac_addr1_2

Third byte of Original MAC address 00:11:XX:33:44:55

mac_addr1_3

Fourth byte of Original MAC address 00:11:22:XX:44:55

mac_addr1_4

Fifth byte of Original MAC address 00:11:22:33:XX:55

mac_addr1_5

Sixth First byte of Original MAC address 00:11:22:33:44:XX

mac_addr2_0

First byte of Spoof MAC address XX:11:22:33:44:55

mac_addr2_1

Second byte of Spoof MAC address 00:XX:22:33:44:55

mac_addr2_2

Third byte of Spoof MAC address 00:11:XX:33:44:55

mac_addr2_3

fourth byte of Spoof MAC address 00:11:22:XX:44:55

mac_addr2_4

Fifth byte of Spoof MAC address 00:11:22:33:XX:55

mac_addr2_5

Sixth byte of Spoof MAC address 00:11:22:33:44:XX

OpEthFlags

Bitfield of options

Item: Location

Function

mac_spoofing_en: Bit 0

State of enabling Mac Spoofing. 0=No Spoofing: 1=Spoof

mac_spoofing_isDstOrSrc: Bit 1

Spoof source or Destination 0=Destination: 1=Source

Link_Spd_A: Bit 2 Link_Spd_B: Bit 3

Sets Link Speed 0 0 = 10Mbps 0 1 = 100Mbps 1 0 = 1000Mbps

Q2112_Phy_Mode: Bit 4

Sets Phy Mode 0=IEEE: 1=Legacy

Item: Location

Function

mac_spoofing_en: Bit 0

State of enabling Mac Spoofing. 0=No Spoofing: 1=Spoof

mac_spoofing_isDstOrSrc: Bit 1

Spoof source or Destination 0=Destination: 1=Source

Link_Spd_A: Bit 2 Link_Spd_B: Bit 3

Sets Link Speed 0 0 = 10Mbps 0 1 = 100Mbps 1 0 = 1000Mbps

Q2112_Phy_Mode: Bit 4

Sets Phy Mode 0=IEEE: 1=Legacy

Reserved

Not Available

Last updated