-
Notifications
You must be signed in to change notification settings - Fork 45
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
MultipartType_PortDesc and PortStatus #4
base: master
Are you sure you want to change the base?
Conversation
lpzgithub
commented
Mar 14, 2018
- Add MultipartType_PortDesc Parse
- modify PortStatus UnmarshalBinary Parse field is incorrect
2. modify PortStatus UnmarshalBinary Parse field is incorrect
openflow13/multipart.go
Outdated
|
||
n = 0 | ||
|
||
for _, r := range s.ports { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove these extra spaces here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,I I adjust the code again
@@ -919,6 +922,7 @@ func NewPortStatus() *PortStatus { | |||
p := new(PortStatus) | |||
p.Header = NewOfp13Header() | |||
p.pad = make([]byte, 7) | |||
p.Desc = *NewPhyPort() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please nil check.
Signed-off-by: Antonin Bas <[email protected]>