Skip to content
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

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

wenyingd
Copy link

Use "copy" function to set the byte slice fields in a message.

PropHeader: &openflow15.PropHeader{
Type: openflow15.NXPINT_CONTINUATION,
},
}
copy(continueProp.Continuation[0:], pktIn.Continuation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 0: is required?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required, removed.

ofctrl/ofctrl.go Outdated Show resolved Hide resolved
ofctrl/ofctrl.go Outdated Show resolved Hide resolved
@wenyingd wenyingd force-pushed the unmarshal_with_bytes branch from 52e4c68 to 087e990 Compare June 19, 2023 08:17
tnqn
tnqn previously approved these changes Jun 19, 2023
Copy link
Member

@tnqn tnqn left a 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?

@wenyingd
Copy link
Author

wenyingd commented Jun 19, 2023

Use "copy" function to set the byte slice fields in a message.

Signed-off-by: wenyingd <wenyingd@vmware.com>
@wenyingd
Copy link
Author

Updated go.mod and go.sum to consume latest changes in libOpenflow. @tnqn could you help take a look again?

@wenyingd wenyingd merged commit c0da85f into antrea-io:main Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants