X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fdiscovery.c;h=d7189fc6f1fdf25dc0bb6de1ad2763ac2de6b90a;hb=10a24935c9d382e4d85b05d9616843f3d3bb4983;hp=84f092e69b4da1ed1212618a3c8af9a731a954c8;hpb=c2e01f64e7ed6c0c0ae0a160daf3f2704f43bad8;p=openvswitch diff --git a/ofproto/discovery.c b/ofproto/discovery.c index 84f092e6..d7189fc6 100644 --- a/ofproto/discovery.c +++ b/ofproto/discovery.c @@ -31,10 +31,10 @@ #include "packets.h" #include "status.h" #include "stream-ssl.h" - -#define THIS_MODULE VLM_discovery #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(discovery) + struct discovery { char *dpif_name; char *re; @@ -60,7 +60,7 @@ discovery_status_cb(struct status_reply *sr, void *d_) if (d->dhcp) { status_reply_put(sr, "state=%s", dhclient_get_state(d->dhcp)); status_reply_put(sr, "state-elapsed=%u", - dhclient_get_state_elapsed(d->dhcp)); + dhclient_get_state_elapsed(d->dhcp)); if (dhclient_is_bound(d->dhcp)) { uint32_t ip = dhclient_get_ip(d->dhcp); uint32_t netmask = dhclient_get_netmask(d->dhcp); @@ -218,7 +218,7 @@ void discovery_question_connectivity(struct discovery *d) { if (d->dhcp) { - dhclient_force_renew(d->dhcp, 15); + dhclient_force_renew(d->dhcp, 15); } } @@ -261,7 +261,7 @@ void discovery_wait(struct discovery *d) { if (d->dhcp) { - dhclient_wait(d->dhcp); + dhclient_wait(d->dhcp); } }