packets: Fix misaligned data accesses for MPLS and SCTP fields.
authorBen Pfaff <blp@nicira.com>
Sat, 5 Apr 2014 03:21:15 +0000 (20:21 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 5 Apr 2014 17:27:25 +0000 (10:27 -0700)
commit5fa008d4618856aa44189cc98f71a7b3c5233652
tree2dfc1f752ce15626c0f58a9cff3972984482fd18
parentf3f750e5ae470142a64e9c1e69bfbd4e6e91a4e9
packets: Fix misaligned data accesses for MPLS and SCTP fields.

The other 32-bit data fields in protocol headers were already using
ovs_16aligned_be32, but MPLS and SCTP had been overlooked.  This fixes
the failure of test 681 seen here:
https://buildd.debian.org/status/fetch.php?pkg=openvswitch&arch=sparc&ver=2.1.0%2Bgit20140325-1&stamp=1396438624

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/flow.c
lib/ofp-print.c
lib/packets.c
lib/packets.h