tool/MasterDevice.cpp
changeset 2597 0e145bb05859
parent 2589 2b9c78543663
equal deleted inserted replaced
2596:d71acfbd7319 2597:0e145bb05859
   583             throw MasterDeviceException(err);
   583             throw MasterDeviceException(err);
   584         }
   584         }
   585     }
   585     }
   586 }
   586 }
   587 
   587 
       
   588 /****************************************************************************/
       
   589 
       
   590 void MasterDevice::setIpParam(ec_ioctl_slave_eoe_ip_t *data)
       
   591 {
       
   592     if (ioctl(fd, EC_IOCTL_SLAVE_EOE_IP_PARAM, data) < 0) {
       
   593         if (errno == EIO && data->result) {
       
   594             throw MasterDeviceEoeException(data->result);
       
   595         } else {
       
   596             stringstream err;
       
   597             err << "Failed to set IP parameters: " << strerror(errno);
       
   598             throw MasterDeviceException(err);
       
   599         }
       
   600     }
       
   601 }
       
   602 
   588 /*****************************************************************************/
   603 /*****************************************************************************/