File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -404,8 +404,8 @@ type resubmitPortAction struct {
404
404
405
405
// MarshalText implements Action.
406
406
func (a * resubmitPortAction ) MarshalText () ([]byte , error ) {
407
- // Largest valid port ID is 0xfeff per openflow spec.
408
- if a .port < 0 || a .port > 0xfeff {
407
+ // Largest valid port ID is 0xfffffeff per openflow spec.
408
+ if a .port < 0 || a .port > 0xfffffeff {
409
409
return nil , errResubmitPortInvalid
410
410
}
411
411
Original file line number Diff line number Diff line change @@ -397,13 +397,13 @@ func TestActionResubmitPort(t *testing.T) {
397
397
action : "resubmit:1" ,
398
398
},
399
399
{
400
- desc : "max port (0xfeff )" ,
401
- port : 0xfeff ,
402
- action : "resubmit:65279 " ,
400
+ desc : "max port (0xfffffeff )" ,
401
+ port : 0xfffffeff ,
402
+ action : "resubmit:4294967039 " ,
403
403
},
404
404
{
405
- desc : "max port+1 (0xfeff )" ,
406
- port : 0xff00 ,
405
+ desc : "max port+1 (0xfffffeff )" ,
406
+ port : 0xffffff00 ,
407
407
err : errResubmitPortInvalid ,
408
408
},
409
409
}
You can’t perform that action at this time.
0 commit comments