From: YAMAMOTO Takashi Date: Mon, 22 Apr 2013 13:19:59 +0000 (+0900) Subject: fix an obvious mistake in a test of IFM_ETHER X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bf1aa7a0538e76885849c67280786908fe102bb7;p=sliver-openvswitch.git fix an obvious mistake in a test of IFM_ETHER fix a bug in FreeBSD code. the fix is suggested by Ed Maste. Signed-off-by: YAMAMOTO Takashi Signed-off-by: Ben Pfaff --- diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index f46eee8a7..e3461b82e 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -1037,7 +1037,7 @@ netdev_bsd_get_features(const struct netdev *netdev, media_list = xcalloc(ifmr.ifm_count, sizeof(int)); ifmr.ifm_ulist = media_list; - if (!IFM_TYPE(ifmr.ifm_current) & IFM_ETHER) { + if (IFM_TYPE(ifmr.ifm_current) != IFM_ETHER) { VLOG_DBG_RL(&rl, "%s: doesn't appear to be ethernet", netdev_get_name(netdev)); error = EINVAL;