-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alloc_ofp_port does not allocate the port number correctly
alloc_ofp_port() does not allocate the port number correctly if the port number passed initially is already in use. The following if block if (ofp_port >= ofproto->max_ports || bitmap_is_set(ofproto->ofp_port_ids, ofp_port)) { is entered when either of the two conditions is true but the while block after this is not entered if the second condition above is true and the first condition is false. This results in an existing port_number to be re-assigned! Signed-off-by: Krishna Kondaka <[email protected]> Signed-off-by: Justin Pettit <[email protected]>
- Loading branch information
Krishna Kondaka
authored and
Justin Pettit
committed
Jan 11, 2013
1 parent
8e70e19
commit 6033d9d
Showing
2 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ Joe Stringer [email protected] | |
Jun Nakajima [email protected] | ||
Justin Pettit [email protected] | ||
Keith Amidon [email protected] | ||
Krishna Kondaka [email protected] | ||
Kyle Mestery [email protected] | ||
Leo Alterman [email protected] | ||
Luca Giraudo [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters