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

[202012] Fix dhcpmon bugs #9007

Closed
wants to merge 2 commits into from

Conversation

kellyyeh
Copy link
Contributor

Note: Cherry picked from #8975

Why I did it

DHCPmon was crashing due to DHCPv6 header offset miscalculation

How I did it

  1. Fix DHCPv6 header offset calculation in dhcpmon.
    Get the correct option ID in order to get the inner DHCP message.

  2. Fix 'dhcpmon', exclude incrementing the aggregate device if packets received on the MGMT interface.
    The MGMT is incremented to check if DHCP packets are traveling through MGMT interface, it is not part of the aggregate device counters.
    To allow checking the MGMT interface health as well, we need to check the counters of MGMT interface also, so in function 'dhcp_device_check_health' we need to check the current device counters, not only the aggregate device.

How to verify it

Configure DHCPv6 Relay

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 kellyyeh@microsoft.com

@lguohan lguohan requested a review from yxieca October 28, 2021 16:37
@liat-grozovik
Copy link
Collaborator

@kellyyeh are you planning to have this part of 202012 soon?

@kellyyeh kellyyeh marked this pull request as ready for review March 8, 2022 17:36
@kellyyeh kellyyeh closed this Mar 8, 2022
@kellyyeh
Copy link
Contributor Author

kellyyeh commented Mar 8, 2022

@kellyyeh are you planning to have this part of 202012 soon?

This PR has already been cherry-picked to 202012 branch.

@kellyyeh kellyyeh deleted the kellyyeh-dhcpmonfix branch April 4, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants