[ovs-git] [openvswitch/ovs] c32728: netdev-bsd: Fix sign extension bug in ifr_flags on...
GitHub
noreply at github.com
Sun Apr 5 16:57:19 UTC 2015
Branch: refs/heads/branch-2.0
Home: https://github.com/openvswitch/ovs
Commit: c327282702524b88cb9c2e739d52d929972b963e
https://github.com/openvswitch/ovs/commit/c327282702524b88cb9c2e739d52d929972b963e
Author: Kevin Lo <kevlo at FreeBSD.org>
Date: 2015-04-05 (Sun, 05 Apr 2015)
Changed paths:
M lib/netdev-bsd.c
Log Message:
-----------
netdev-bsd: Fix sign extension bug in ifr_flags on FreeBSD.
FreeBSD fills the int return value with ifr_flagshigh in the high
16 bits and ifr_flags in the low 16 bits rather than blindly promoting
ifr_flags to an int, which will preserve the sign.
This commit makes sure the flags returned isn't negative and apply mask
0xffff to flags.
Signed-off-by: Kevin Lo <kevlo at FreeBSD.org>
Signed-off-by: Ben Pfaff <blp at nicira.com>
More information about the git
mailing list