[ovs-git] Open vSwitch: dpif-linux: Fix byte-swapping direction in nl_msg_put_u16() call. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Feb 15 21:23:37 UTC 2013

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  7e2d8aeaf5ef25408a6f345e2611b647851e0120 (commit)
      from  c39b1a5c3b0854846f1b956196628e0185b61c72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7e2d8aeaf5ef25408a6f345e2611b647851e0120
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=7e2d8aeaf5ef25408a6f345e2611b647851e0120
Author: Ben Pfaff <blp at nicira.com>
dpif-linux: Fix byte-swapping direction in nl_msg_put_u16() call.
OVS_TUNNEL_ATTR_DST_PORT expects a u16, tnl_cfg->dst_port is a be16, so
we want ntohs() instead of htons().

In practice htons() and ntohs() perform the same operation, so this does
not fix a real bug.

Found by sparse.

Signed-off-by: Ben Pfaff <blp at nicira.com>


Summary of changes:
 lib/dpif-linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Open vSwitch

More information about the git mailing list