We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In dp_ports.c, dp_ports_lookup() function should be updated for the case of no local port.
struct sw_port * dp_ports_lookup(struct datapath *dp, uint32_t port_no) { // exclude local port from ports_num uint32_t ports_num = dp->local_port ? dp->ports_num -1 : dp->ports_num;
if (port_no == OFPP_LOCAL) { return dp->local_port; } if (port_no < 1 || port_no > ports_num) { return NULL; } return &dp->ports[port_no];
}
The text was updated successfully, but these errors were encountered:
Fixed. Thank you.
Sorry, something went wrong.
Merge pull request #7 from Tesi-Luca-Davide/master
77de7bc
Ofsoftswitch13 pull request 01/04
No branches or pull requests
In dp_ports.c, dp_ports_lookup() function should be updated for the case of no local port.
struct sw_port *
dp_ports_lookup(struct datapath *dp, uint32_t port_no)
{
// exclude local port from ports_num
uint32_t ports_num = dp->local_port ? dp->ports_num -1 : dp->ports_num;
}
The text was updated successfully, but these errors were encountered: