X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=extras%2Fezio%2Fovs-switchui.c;h=0f6640e0c4086f978a3ca3ce7da182c9accaa344;hb=576e26d7b47f4e53116ef0b5f035d260f426d37b;hp=e25d4e1af4585ac5bc05d066260f5a68a1d1591a;hpb=8cd4882fd5c3080816a070ad582ef06842f7c482;p=openvswitch diff --git a/extras/ezio/ovs-switchui.c b/extras/ezio/ovs-switchui.c index e25d4e1a..0f6640e0 100644 --- a/extras/ezio/ovs-switchui.c +++ b/extras/ezio/ovs-switchui.c @@ -549,7 +549,7 @@ show_dpid_ip(struct rconn *rconn, const struct dict *dict) const char *is_connected, *local_ip; dict_lookup(dict, "local.is-connected", &is_connected); - dict_lookup(dict, "in-band.local-ip", &local_ip); + dict_lookup(dict, "remote.local-ip", &local_ip); if (!is_connected && !local_ip) { /* If we're not connected to the datapath and don't have a local IP, * then we won't have anything useful to show anyhow. */ @@ -1209,7 +1209,7 @@ show_data_rates(struct rconn *rconn, const struct dict *dict) static bool inited = false; dict_lookup(dict, "local.is-connected", &is_connected); - dict_lookup(dict, "in-band.local-ip", &local_ip); + dict_lookup(dict, "remote.local-ip", &local_ip); if (!is_connected && !local_ip) { /* If we're not connected to the datapath and don't have a local IP, * then we won't have anything useful to show anyhow. */ @@ -2480,7 +2480,7 @@ choose_netdevs(struct svec *choices) retval = netdev_open(name, NETDEV_ETH_TYPE_NONE, &netdev); if (!retval) { - bool exclude = netdev_get_in4(netdev, NULL); + bool exclude = netdev_get_in4(netdev, NULL, NULL) == 0; netdev_close(netdev); if (exclude) { continue; @@ -2801,7 +2801,8 @@ cmd_configure(const struct dict *dict UNUSED) out = prompt("Ctlr rate limit:", in, "^(Disabled|("NUM100_TO_99999_RE")/s)$"); free(in); - config.rate_limit = isdigit(out[0]) ? atoi(out) : -1; + config.rate_limit + = isdigit((unsigned char)out[0]) ? atoi(out) : -1; free(out); break; @@ -2812,7 +2813,8 @@ cmd_configure(const struct dict *dict UNUSED) out = prompt("Activity probe:", in, "^(Default|("NUM5_TO_99999_RE") s)$"); free(in); - config.inactivity_probe = isdigit(out[0]) ? atoi(out) : -1; + config.inactivity_probe + = isdigit((unsigned char)out[0]) ? atoi(out) : -1; free(out); break; @@ -2823,7 +2825,8 @@ cmd_configure(const struct dict *dict UNUSED) out = prompt("Max backoff:", in, "^(Default|("NUM1_TO_99999_RE") s)$"); free(in); - config.max_backoff = isdigit(out[0]) ? atoi(out) : -1; + config.max_backoff + = isdigit((unsigned char)out[0]) ? atoi(out) : -1; free(out); break; }