git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeecce0
)
fix an obvious mistake in a test of IFM_ETHER
author
YAMAMOTO Takashi
<yamt@mwd.biglobe.ne.jp>
Mon, 22 Apr 2013 13:19:59 +0000
(22:19 +0900)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 22 Apr 2013 15:34:53 +0000
(08:34 -0700)
fix a bug in FreeBSD code. the fix is suggested by Ed Maste.
Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-bsd.c
patch
|
blob
|
history
diff --git
a/lib/netdev-bsd.c
b/lib/netdev-bsd.c
index
f46eee8
..
e3461b8
100644
(file)
--- 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;