If the call to netdev_open_default() failed then next_hop_dev was not
freed, but it should be.
"to controller "IP_FMT"): %s",
next_hop_dev, IP_ARGS(&ib->controller_ip),
strerror(retval));
"to controller "IP_FMT"): %s",
next_hop_dev, IP_ARGS(&ib->controller_ip),
strerror(retval));
ib->next_remote_refresh = now + 1;
return NULL;
}
}
ib->next_remote_refresh = now + 1;
return NULL;
}
}
/* Look up the MAC address of the next-hop IP address. */
retval = netdev_arp_lookup(ib->remote_netdev, r_in4.s_addr,
/* Look up the MAC address of the next-hop IP address. */
retval = netdev_arp_lookup(ib->remote_netdev, r_in4.s_addr,
IP_ARGS(&r_in4.s_addr), strerror(retval));
}
have_mac = !eth_addr_is_zero(ib->remote_mac);
IP_ARGS(&r_in4.s_addr), strerror(retval));
}
have_mac = !eth_addr_is_zero(ib->remote_mac);
if (have_mac
&& !eth_addr_equals(ib->last_remote_mac, ib->remote_mac)) {
VLOG_DBG("remote MAC address changed from "ETH_ADDR_FMT" to "
if (have_mac
&& !eth_addr_equals(ib->last_remote_mac, ib->remote_mac)) {
VLOG_DBG("remote MAC address changed from "ETH_ADDR_FMT" to "