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

Definition for ethernet flow control packets. #649

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AJMansfield
Copy link

This is a pretty obsolete protocol and ended up not being useful for what I'd hoped it would be, but I wrote an implementation for it anyway so the world might as well have it.

Copy link

@stevedoyle stevedoyle left a comment

Choose a reason for hiding this comment

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

Missing unit test?

@AJMansfield
Copy link
Author

AJMansfield commented Oct 19, 2023

Missing unit test?

AFAIK the standard doesn't give any test vectors, so I'm not sure how to meaningfully test this.

Inventing a test vector myself wouldn't add anything: if there were an error, given the declarative nature of the code here the error would inevitably be a misinterpretation of the standard rather than a mis-implementation of that interpretation -- so adding a test vector I've concocted myself would likely amount to just writing down the same mistake twice.

Would using Wireshark to create the test vector be appropriate here? Given that it's a much more mature project it might not be unreasonable to consider its behavior as "authoritative enough".

@stevedoyle
Copy link

Would using Wireshark to create the test vector be appropriate here? Given that it's a much more mature project it might not be unreasonable to consider its behavior as "authoritative enough".

I think using Wireshark or tcpdump to capture a reference/test packet is a good approach.

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.

None yet

2 participants