rx->proto->sock_type, rx->proto->sock_prot);
if (fd == -1) {
err |= ERR_RETRYABLE | ERR_ALERT;
- memprintf(errmsg, "cannot create receiving socket");
+ memprintf(errmsg, "cannot create receiving socket (%s)", strerror(errno));
goto bind_return;
}
}
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE,
rx->settings->interface,
strlen(rx->settings->interface) + 1) == -1) {
- memprintf(errmsg, "cannot bind receiver to device");
+ memprintf(errmsg, "cannot bind receiver to device (%s)", strerror(errno));
err |= ERR_WARN;
}
}
if (!ext && bind(fd, (struct sockaddr *)&addr_inet, rx->proto->fam->sock_addrlen) == -1) {
err |= ERR_RETRYABLE | ERR_ALERT;
- memprintf(errmsg, "cannot bind socket");
+ memprintf(errmsg, "cannot bind socket (%s)", strerror(errno));
goto bind_close_return;
}