Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix relay-reply dhcpv6 packet counter issue #29

Merged
merged 1 commit into from
Dec 29, 2022

Conversation

jcaiMR
Copy link
Contributor

@jcaiMR jcaiMR commented Dec 23, 2022

Why I did it

fix issue sonic-net/sonic-buildimage#13083

How I did it

DHCPv6 Relay-Reply packet decode issue, original code assume Relay Message option (option 9) was the first option in Relay-Reply .
If other options exists before option9, DHCPv6 message type inside Relay-Msg will wrong.

How to verify it

Enhance sonic-mgmt dhcpv6_cpunter_test.py, use different format of Relay-Reply packets.
Test case improve:
sonic-net/sonic-mgmt#7105

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Copy link

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dgsudharsan
Copy link

@jcaiMR @StormLiangMS Can we merge this?

@jcaiMR jcaiMR merged commit 4bf1868 into sonic-net:master Dec 29, 2022
@jcaiMR jcaiMR deleted the fix_dhcpv6_counter_issue branch December 29, 2022 06:18
@qiluo-msft
Copy link
Collaborator

This commit could not be cleanly cherry-picked to 202012. Please submit another PR.

kellyyeh pushed a commit to kellyyeh/sonic-dhcp-relay that referenced this pull request Feb 1, 2023
fix Advertise packets counted as Unknown
qiluo-msft pushed a commit that referenced this pull request Feb 2, 2023
fix Advertise packets counted as Unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants