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

DHCPv6 Relay multivlan functionality support #9178

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

kellyyeh
Copy link
Contributor

@kellyyeh kellyyeh commented Nov 5, 2021

Why I did it

Fix support for DHCPV6 Relay multi vlan functionality. Make sure the relayed packet is received at correct interface.

How I did it

Bind a socket to each vlan interface's global and link-local address.
Socket binded to global address is used for relaying data from client to server and receiving data from servers.
Socket binded to link-local address is used for relaying data received from server back to the client.

How to verify it

Build a image and run two_vlan dhcpv6 tests.

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)

@kellyyeh kellyyeh marked this pull request as ready for review November 5, 2021 18:32
@kellyyeh kellyyeh requested a review from lguohan as a code owner November 5, 2021 18:32
@kellyyeh kellyyeh requested a review from yxieca November 5, 2021 18:32
@kellyyeh kellyyeh requested a review from yxieca November 9, 2021 20:47
@lguohan lguohan merged commit a86320a into sonic-net:master Nov 12, 2021
qiluo-msft pushed a commit that referenced this pull request Nov 15, 2021
Fix support for DHCPV6 Relay multi vlan functionality. Make sure the relayed packet is received at correct interface.

How I did it
Bind a socket to each vlan interface's global and link-local address.
Socket binded to global address is used for relaying data from client to server and receiving data from servers.
Socket binded to link-local address is used for relaying data received from server back to the client.
@kellyyeh kellyyeh deleted the kellyyeh-dhcp6relay-2vlan branch December 13, 2021 18:48
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.

4 participants