dhcp ip: DSCP settings for transmitted DHCP packets
[vpp.git] / extras / vom / vom / dhcp_client_cmds.hpp
index e7db38f..10d4026 100644 (file)
@@ -29,7 +29,7 @@ namespace dhcp_client_cmds {
 /**
   * A command class that binds the DHCP config to the interface
   */
-class bind_cmd : public rpc_cmd<HW::item<bool>, rc_t, vapi::Dhcp_client_config>
+class bind_cmd : public rpc_cmd<HW::item<bool>, vapi::Dhcp_client_config>
 {
 public:
   /**
@@ -39,7 +39,8 @@ public:
            const handle_t& itf,
            const std::string& hostname,
            const l2_address_t& client_id,
-           bool set_braodcast_flag = false);
+           bool set_braodcast_flag,
+           const ip_dscp_t& dscp);
 
   /**
    * Issue the command to VPP/HW
@@ -75,13 +76,17 @@ private:
    * Flag to control the setting the of DHCP discover's broadcast flag
    */
   const bool m_set_broadcast_flag;
+
+  /**
+   * DSCP bits
+   */
+  const ip_dscp_t& m_dscp;
 };
 
 /**
  * A cmd class that Unbinds Dhcp Config from an interface
  */
-class unbind_cmd
-  : public rpc_cmd<HW::item<bool>, rc_t, vapi::Dhcp_client_config>
+class unbind_cmd : public rpc_cmd<HW::item<bool>, vapi::Dhcp_client_config>
 {
 public:
   /**