Skip to content

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

Merged
kellyyeh merged 6 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6relay-cpufix
Oct 22, 2021
Merged

[dhcp_relay] fix data type in dhcp6relay, add protection in packet data parsing#9036
kellyyeh merged 6 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6relay-cpufix

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
@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