X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fin-band.c;h=35ea534cd197c79d8e548f4e526f9880caa6903c;hb=fcf78c4ff96920a988b954def9ab054bef672612;hp=18415f48efb5a5bcc308bc62a73b6bac26202fda;hpb=f1acd62b54376a425a975f9af501c4c8c5689b39;p=openvswitch diff --git a/ofproto/in-band.c b/ofproto/in-band.c index 18415f48..35ea534c 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -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;