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

[BUG] Hex conversion #307

Open
ghost opened this issue Jun 25, 2020 · 0 comments
Open

[BUG] Hex conversion #307

ghost opened this issue Jun 25, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 25, 2020

In file udatapath.c
dpid = strtoll(optarg, NULL, 12);
This will cause a mistake due to this is a 12 decimal conversion.
For instance, dpid will be NULL while dpid = 0xC or 0xD.
Furthermore, some switches cannot be created
Therefore, I think it should be dpid = strtoll(optarg, NULL, 16);

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

No branches or pull requests

0 participants