openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

commit 3124710c214fc307b05ec9b15491f5e4b2b3dfbb
parent 1004f70507ce29372e7ba03f67b241f3442b64ed
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Tue, 29 Sep 2020 23:44:35 -0700

SDK-231842: The IPv6 header's payload length of the Mirror ERSPAN encapsulati...

Devices: 56870_A0

The IPv6 header's payload length of the Mirror ERSPAN encapsulation is
not correct. The issue is fixed in this release

Diffstat:
Msdk-6.5.16/src/bcm/esw/mirror.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/sdk-6.5.16/src/bcm/esw/mirror.c b/sdk-6.5.16/src/bcm/esw/mirror.c @@ -2141,6 +2141,8 @@ _bcm_td3_mirror_flex_editor_header_create(int unit, int edit_ctrl_id, p_profile_header+=sizeof(bcm_ip6_t); sal_memcpy(p_profile_header, mirror_dest->dst6_addr, sizeof(bcm_ip6_t)); p_profile_header+=sizeof(bcm_ip6_t); + /* will be used for IPv6 payload length */ + udp_len_adjust = TWOS_COMPLEMENT(p_profile_header - p_profile_hdr); } else { /* Add Ether Type */ *(uint16*)p_profile_header = soc_ntohs(0x0800);