AM263Px MCU+ SDK: CpswMacPort_InterVlanRoutingCfg Struct Reference

| AM263Px MCU+ SDK 26.00.00 |

Data Fields
CpswMacPort_InterVlanRoutingCfg Struct Reference
APIs for Networking modules » APIs for Enet LLD » Enet MAC Port » CPSW MAC Port

## Detailed Description

Port interVLAN configuration parameters.

## Data Fields
uint8_t | dstAddr [ENET_MAC_ADDR_LEN]
uint8_t | srcAddr [ENET_MAC_ADDR_LEN]
uint32_t | vlanId
bool | replaceDASA
bool | forceUntaggedEgress
bool | decrementTTL

## Field Documentation

## ◆ dstAddr

uint8_t CpswMacPort_InterVlanRoutingCfg::dstAddr[ENET_MAC_ADDR_LEN]

Destination address

## ◆ srcAddr

uint8_t CpswMacPort_InterVlanRoutingCfg::srcAddr[ENET_MAC_ADDR_LEN]

Source address

## ◆ vlanId

uint32_t CpswMacPort_InterVlanRoutingCfg::vlanId

VLAN Id

## ◆ replaceDASA

bool CpswMacPort_InterVlanRoutingCfg::replaceDASA

Whether routed packet's destination address will be replaced with dstAddr and packet's source address will be replaced with srcAddr

## ◆ forceUntaggedEgress

bool CpswMacPort_InterVlanRoutingCfg::forceUntaggedEgress

Destination VLAN Force Untagged Egress. When set, this bit indicates that the VLAN should be removed on egress for the routed packet.

## ◆ decrementTTL

bool CpswMacPort_InterVlanRoutingCfg::decrementTTL

Decrement Time To Live. When set, the Time To Live (TTL) field in the header is decremented:

- IPV4 - Decrement the TTL byte and update the Header Checksum
- IPV6 - Decrement the Hop Limit

Note: When this bit is set, the ALE should be configured to send any IPv4/6 packet with a zero or one TTL field to the host. When this bit is cleared the TTL/Hop Limit fields are not checked or modified.