forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn: Encode dhcpv6 PACKET_IN userdata as big endian.
The packet in userdata generated by ovn-controller when translating the put_dhcpv6_opt action includes 16-bit integers. Currently these 16-bit integers are encoded with native endianness. This is ok becase the only consumer of that userdata is ovn-controller itself, but it means that the OpenFlow action we're generating might not really be the same on different hosts. I think it's better to encode the userdata as big-endian, like the rest of OpenFlow messages. This fixes a test failure on big-endian platforms, because the generated OpenFlow bytes were different than expected (the expectation was generated on a little endian machine). Now 'struct dhcp_opt6_header' is identical to 'struct dhcpv6_opt_header', but I chose to keep them separate, because they have different purposes. I also renamed the members to avoid confusion. I haven't tested this on a real setup. CC: Numan Siddique <[email protected]> Reported-at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840770 Signed-off-by: Daniele Di Proietto <[email protected]> Acked-by: Numan Siddique <[email protected]>
- Loading branch information
1 parent
fe11b9e
commit a55daca
Showing
4 changed files
with
32 additions
and
28 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
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
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
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