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

Fixed ARP table MAC address parsing, added Flags field #414

Merged
merged 2 commits into from Sep 20, 2021

Conversation

und3f
Copy link
Contributor

@und3f und3f commented Sep 19, 2021

Signed-off-by: Serhii Zasenko sergii@zasenko.name

@und3f und3f force-pushed the master branch 2 times, most recently from a54dd01 to b33f9f4 Compare September 19, 2021 08:17
- Added ARPEntry.Flags field related to entry flags
- Added ARPEntry.IsComplete() to check if entry is complete
- Fixed mac address parsing and error handling
- Test improved with incomplete entry information
Closes prometheus#413.

Signed-off-by: Serhii Zasenko <sergii@zasenko.name>
@und3f und3f changed the title fixed arp table mac address parsing, fixes #413 Fixed ARP table MAC address parsing, added Flags field Sep 19, 2021
Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@SuperQ
Copy link
Member

SuperQ commented Sep 19, 2021

Minor cleanup of the const names, but otherwise this is great.

Signed-off-by: Serhii Zasenko <sergii@zasenko.name>
Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

@discordianfish discordianfish merged commit 31627db into prometheus:master Sep 20, 2021
@und3f
Copy link
Contributor Author

und3f commented Sep 20, 2021

Glad it suits!)

remijouannet pushed a commit to remijouannet/procfs that referenced this pull request Oct 20, 2022
* fixed arp table mac address parsing

- Added ARPEntry.Flags field related to entry flags
- Added ARPEntry.IsComplete() to check if entry is complete
- Fixed mac address parsing and error handling
- Test improved with incomplete entry information
Closes prometheus#413.

Signed-off-by: Serhii Zasenko <sergii@zasenko.name>

* Arp flag const names cleanup

Signed-off-by: Serhii Zasenko <sergii@zasenko.name>
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.

Incomple arp entries are returned with MAC address 30:30:3a:...
3 participants