packets: Fix misaligned data accesses for MPLS and SCTP fields.
authorBen Pfaff <blp@nicira.com>
Sat, 5 Apr 2014 18:14:02 +0000 (11:14 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 5 Apr 2014 18:14:02 +0000 (11:14 -0700)
commit21db3de7f1e1c0972efe3e735970630f39ade608
tree42f729ed77601ee03ce4de4c9201e22ebe28784c
parenta205dff624fa2c14dfd13fdf493299f4bff998e2
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