[PATCH] dnsproxy: Add error print when DNS response send failed.
--- src/dnsproxy.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 9701343..33206c0 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -215,8 +215,11 @@ static void send_response(int sk, unsigned char *buf, int len, hdr->arcount = 0; err = sendto(sk, buf, len, 0, to, tolen); - if (err < 0) + if (err < 0) { + connman_error("Cannot send DNS response: %s", + strerror(errno)); return; + } } static gboolean request_timeout(gpointer user_data) -- 1.7.1 ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman
Re: [PATCH] dnsproxy: Add error print when DNS response send failed.
Hi Jukka, > src/dnsproxy.c |5 - > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/src/dnsproxy.c b/src/dnsproxy.c > index 9701343..33206c0 100644 > --- a/src/dnsproxy.c > +++ b/src/dnsproxy.c > @@ -215,8 +215,11 @@ static void send_response(int sk, unsigned char *buf, > int len, > hdr->arcount = 0; > > err = sendto(sk, buf, len, 0, to, tolen); > - if (err < 0) > + if (err < 0) { > + connman_error("Cannot send DNS response: %s", > + strerror(errno)); patch has been applied, but I turned "Cannot" into "Failed to". Regards Marcel ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman