2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

ofproto: Fix bad merge in previous commit.

This was fixed in my working tree before I pushed it, but I forgot to
commit it.  Oops.
This commit is contained in:
Ben Pfaff
2009-09-02 11:11:38 -07:00
parent f1acd62b54
commit c0a5fd2aed

View File

@@ -170,7 +170,7 @@ get_local_mac(struct in_band *ib)
time_t now = time_now();
if (now >= ib->next_local_refresh) {
uint8_t ea[ETH_ADDR_LEN];
if (ib->local_netdev && netdev_get_etheraddr(ib->local_netdev, ea)) {
if (ib->local_netdev && !netdev_get_etheraddr(ib->local_netdev, ea)) {
memcpy(ib->local_mac, ea, ETH_ADDR_LEN);
}
ib->next_local_refresh = now + 1;