{
int errsv = errno;
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv),
- _("Could not create netlink socket: %s"),
+ _("Could not create network monitor: %s"),
g_strerror (errno));
return FALSE;
}
{
int errsv = errno;
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv),
- _("Could not bind netlink socket: %s"),
+ _("Could not create network monitor: %s"),
g_strerror (errno));
close (sockfd);
return FALSE;
{
int errsv = errno;
g_set_error (error, G_IO_ERROR, g_io_error_from_errno (errsv),
- _("Could not set options on netlink socket: %s"),
+ _("Could not create network monitor: %s"),
g_strerror (errno));
close (sockfd);
return FALSE;
nl->priv->sock = g_socket_new_from_fd (sockfd, error);
if (error)
{
- g_prefix_error (error, "%s", _("Could not wrap netlink socket: "));
+ g_prefix_error (error, "%s", _("Could not create network monitor: "));
close (sockfd);
return FALSE;
}
if (g_socket_send (nl->priv->sock, buf, sizeof (buf),
NULL, error) < 0)
{
- g_prefix_error (error, "%s", _("Could not send netlink request: "));
+ g_prefix_error (error, "%s", _("Could not get network status: "));
return FALSE;
}