virtio: fast TAP interfaces with vhost-net backend
[vpp.git] / src / vpp-api / vom / dhcp_config_cmds.cpp
index 8e81a27..ff24fe2 100644 (file)
@@ -48,6 +48,7 @@ bind_cmd::issue(connection& con)
   payload.pid = getpid();
   payload.want_dhcp_event = 1;
 
+  memset(payload.hostname, 0, sizeof(payload.hostname));
   memcpy(payload.hostname, m_hostname.c_str(),
          std::min(sizeof(payload.hostname), m_hostname.length()));
 
@@ -137,14 +138,14 @@ rc_t
 events_cmd::issue(connection& con)
 {
   /*
- * Set the call back to handle DHCP complete envets.
- */
  * Set the call back to handle DHCP complete envets.
  */
   m_reg.reset(new reg_t(con.ctx(), std::ref(*this)));
 
   /*
- * return in-progress so the command stays in the pending list.
- */
-  return (rc_t::INPROGRESS);
  * return in-progress so the command stays in the pending list.
  */
+  return (rc_t::OK);
 }
 
 void