Skip to content

Fix dhcpmon bugs#9008

Merged
kellyyeh merged 2 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6monfix
Oct 19, 2021
Merged

Fix dhcpmon bugs#9008
kellyyeh merged 2 commits intosonic-net:masterfrom
kellyyeh:kellyyeh-dhcp6monfix

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

@kellyyeh kellyyeh marked this pull request as ready for review October 19, 2021 16:35
@kellyyeh kellyyeh requested a review from lguohan as a code owner October 19, 2021 16:35
@kellyyeh kellyyeh requested a review from yxieca October 19, 2021 16:36
@kellyyeh kellyyeh merged commit 14aca81 into sonic-net:master Oct 19, 2021
@kellyyeh kellyyeh deleted the kellyyeh-dhcp6monfix branch October 19, 2021 23:15
qiluo-msft pushed a commit that referenced this pull request Oct 20, 2021
* Exclude incrementing on aggregate device if packet received on mgmt interface

* Fix DHCPv6 header offset calculation
@kellyyeh kellyyeh mentioned this pull request Oct 25, 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.

3 participants