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

[dhcp_relay] fix data type in dhcp6relay, add protection in packet data parsing #9036

Merged
merged 6 commits into from
Oct 22, 2021

Conversation

kellyyeh
Copy link
Contributor

Why I did it

Error in socket receiver, causing dhcp6relay to be stuck in infinite while loop when parsing through packet data.

How I did it

Fix recv datatype, add a protection check to check if the next pointer of packet is the same as current pointer.

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

Signed off by Kelly Yeh [email protected]

@kellyyeh kellyyeh requested a review from lguohan as a code owner October 21, 2021 17:36
src/dhcp6relay/src/relay.cpp Outdated Show resolved Hide resolved
src/dhcp6relay/src/relay.cpp Show resolved Hide resolved
@kellyyeh kellyyeh requested a review from saiarcot895 October 21, 2021 19:23
@kellyyeh kellyyeh merged commit ddfaa1d into sonic-net:master Oct 22, 2021
@kellyyeh kellyyeh deleted the kellyyeh-dhcp6relay-cpufix branch October 22, 2021 06:00
yxieca pushed a commit that referenced this pull request Oct 22, 2021
@kellyyeh kellyyeh mentioned this pull request Oct 25, 2021
5 tasks
yxieca pushed a commit that referenced this pull request Oct 25, 2022
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.

3 participants