-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bugfix: unmarshal issue with byte slice in packetIn2 message #60
Conversation
ofctrl/ofSwitch.go
Outdated
PropHeader: &openflow15.PropHeader{ | ||
Type: openflow15.NXPINT_CONTINUATION, | ||
}, | ||
} | ||
copy(continueProp.Continuation[0:], pktIn.Continuation) |
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.
why 0:
is required?
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.
Not required, removed.
52e4c68
to
087e990
Compare
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.
Do you plan to add unit test here or another place?
Unit test is added in libOpenflow, https://github.com/antrea-io/libOpenflow/pull/40/files#diff-f180594e31676b495e8995fc65b51f3d3499d5f5adbfb5affe965190aed1c137R119 |
Use "copy" function to set the byte slice fields in a message. Signed-off-by: wenyingd <wenyingd@vmware.com>
087e990
to
1d43665
Compare
Updated |
Use "copy" function to set the byte slice fields in a message.