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

decoders: fix sflow parsing of IP and MAC addresses #261

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

vincentbernat
Copy link
Contributor

Due to IP and MAC addresses being a non-standard type, utils.BinaryRead was not able to decode them. Move these two types inside utils.go and teach BinaryRead to use them.

Due to IP and MAC addresses being a non-standard type, utils.BinaryRead
was not able to decode them. Move these two types inside utils.go and
teach BinaryRead to use them.
"fmt"
"net/netip"
)
import "github.com/netsampler/goflow2/v2/decoders/utils"
Copy link
Member

Choose a reason for hiding this comment

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

Did go fmt remove the parenthesis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am using goimports and yes, it did that.

@lspgn lspgn added bug Something isn't working sflow Related to sFlow protocol labels Dec 13, 2023
@lspgn lspgn merged commit a61288e into netsampler:main Jan 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sflow Related to sFlow protocol
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants