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] Enhance DHCP monitor application to support DHCPv6 #8060

Merged
merged 3 commits into from
Jul 26, 2021
Merged

[dhcp_relay] Enhance DHCP monitor application to support DHCPv6 #8060

merged 3 commits into from
Jul 26, 2021

Conversation

shlomibitton
Copy link
Contributor

@shlomibitton shlomibitton commented Jul 4, 2021

Signed-off-by: Shlomi Bitton [email protected]

Why I did it

Enhance DHCP monitor application following the implementation PR: #7772

How I did it

Add the support for monitoring DHCPv6 packets.

How to verify it

Install an image with this PR and the implementation PR.

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)

case DHCPv6_MESSAGE_TYPE_REPLY:
case DHCPv6_MESSAGE_TYPE_RECONFIGURE:
case DHCPv6_MESSAGE_TYPE_INFORMATION_REQUEST:
case DHCPv6_MESSAGE_TYPE_RELAY_FORWARD:
Copy link
Contributor

Choose a reason for hiding this comment

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

can we get rid of relay-forward and relay-reply message types and count inner message against DHCPv6 message type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tahmed-dev I changed the code to fit your suggestion, please review.
Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. I noticed now that the parser will point to inner type of encapped packet. Can we remove the Relay Forward and Relay Reply from this case and let them fall through to the default section as this should not be expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

tahmed-dev
tahmed-dev previously approved these changes Jul 9, 2021
Copy link
Contributor

@tahmed-dev tahmed-dev left a comment

Choose a reason for hiding this comment

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

LGTM. just a minor comment

case DHCPv6_MESSAGE_TYPE_REPLY:
case DHCPv6_MESSAGE_TYPE_RECONFIGURE:
case DHCPv6_MESSAGE_TYPE_INFORMATION_REQUEST:
case DHCPv6_MESSAGE_TYPE_RELAY_FORWARD:
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. I noticed now that the parser will point to inner type of encapped packet. Can we remove the Relay Forward and Relay Reply from this case and let them fall through to the default section as this should not be expected.

…kets will be counted.

Handling of these packets type is not expected.
@lguohan
Copy link
Collaborator

lguohan commented Jul 25, 2021

i saw tamer approved, but now it is not in the status. @tahmed-dev, can you approve?

@qiluo-msft qiluo-msft merged commit bef5477 into sonic-net:master Jul 26, 2021
@shlomibitton shlomibitton deleted the shlomi_dhcpv6_relay_monitor branch July 27, 2021 16:30
judyjoseph pushed a commit that referenced this pull request Aug 4, 2021
#### Why I did it

Enhance DHCP monitor application following the implementation PR: #7772

#### How I did it

Add the support for monitoring DHCPv6 packets.

#### How to verify it

Install an image with this PR and the implementation PR.
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…c-net#8060)

#### Why I did it

Enhance DHCP monitor application following the implementation PR: sonic-net#7772

#### How I did it

Add the support for monitoring DHCPv6 packets.

#### How to verify it

Install an image with this PR and the implementation PR.
kellyyeh pushed a commit to kellyyeh/sonic-buildimage that referenced this pull request Sep 29, 2021
…c-net#8060)

#### Why I did it

Enhance DHCP monitor application following the implementation PR: sonic-net#7772

#### How I did it

Add the support for monitoring DHCPv6 packets.

#### How to verify it

Install an image with this PR and the implementation PR.

(cherry picked from commit bef5477)
@kellyyeh kellyyeh mentioned this pull request Oct 15, 2021
5 tasks
kellyyeh added a commit to kellyyeh/sonic-buildimage that referenced this pull request Apr 5, 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.

8 participants