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

Fixing version negotiation when using version bitmap #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tomrom95
Copy link

When passing version bitmaps, OFServer currently sends back whatever version the switch sent to the server, which is incorrect. Instead, it should agree on the highest shared version between the server and the switch, and send this version to the switch.

For example, if the switch supports OF1.0, OF1.3 and OF1.4, and the server supports OF1.0 and OF1.3, the previous method would agree on OF1.4. Now, it correctly agrees on OF1.3.

This fix won't affect the non-bitmap version negotiation.

@alnvdl
Copy link
Member

alnvdl commented May 1, 2018

Thanks for this PR. Version negotiation is somewhat broken in 0.1, and there's PR #6 in 0.2 that should fix this (however, I didn't have the chance to take a detailed look and test anything in 0.2 yet).

I'm a little in doubt about including your fix in master, since it should be fixed in 0.2. It is clearly a bug fix, but it also changes external behavior for 0.1, sort of breaking with assumptions others may have made.

Sorry for taking so long to get to this, I haven't had the time to work on libfluid for a long while...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants