char *iface = NULL;
static char *type = NULL;
static char ifrname[IFNAMSIZ];
-static char *device_info;
+static const char *device_info;
static uint64_t device_total_in = 0;
static uint64_t device_total_out = 0;
ifrname[IFNAMSIZ - 1] = 0;
free(iface);
iface = xstrdup(ifrname);
+ } else if(errno == EPERM || errno == EBUSY) {
+ logger(LOG_ERR, "Error while trying to configure %s: %s", device, strerror(errno));
+ return false;
} else if(!ioctl(device_fd, (('T' << 8) | 202), &ifr)) {
logger(LOG_WARNING, "Old ioctl() request was needed for %s", device);
strncpy(ifrname, ifr.ifr_name, IFNAMSIZ);