summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d52ed5)
raw | patch | inline | side by side (parent: 9d52ed5)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 12 Sep 2007 08:54:57 +0000 (10:54 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 12 Sep 2007 09:01:14 +0000 (11:01 +0200) |
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/dns.c | patch | blob | history | |
src/ntpd.c | patch | blob | history | |
src/unixsock.c | patch | blob | history |
diff --git a/src/dns.c b/src/dns.c
index 7ce7aad932e977c0e8db96b7eb06daaaf58b4919..0801fe7368328d469cb6a3b3991d859db6dbdc4d 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
memset (&fp, 0, sizeof (fp));
if (pcap_compile (pcap_obj, &fp, "udp port 53", 1, 0) < 0)
{
- DEBUG ("pcap_compile failed");
ERROR ("dns plugin: pcap_compile failed");
return (NULL);
}
if (pcap_setfilter (pcap_obj, &fp) < 0)
{
- DEBUG ("pcap_setfilter failed");
ERROR ("dns plugin: pcap_setfilter failed");
return (NULL);
}
diff --git a/src/ntpd.c b/src/ntpd.c
index 23daacdb801fc9c10f94d4a0b66dc22d045bc811..6905fb2c90e8addf797f950e5e94411f02a489f2 100644 (file)
--- a/src/ntpd.c
+++ b/src/ntpd.c
if (sock_descr < 0)
{
- DEBUG ("Unable to connect to server.");
ERROR ("ntpd plugin: Unable to connect to server.");
}
diff --git a/src/unixsock.c b/src/unixsock.c
index 215abdd01ec1daeaf8819781bbdd79cac5cc4af9..734403e87c944fb606670f205e0e5b43a479bd75 100644 (file)
--- a/src/unixsock.c
+++ b/src/unixsock.c
sizeof (sa.sun_path) - 1);
/* unlink (sa.sun_path); */
+ DEBUG ("unixsock plugin: socket path = %s", sa.sun_path);
+
status = bind (sock_fd, (struct sockaddr *) &sa, sizeof (sa));
if (status != 0)
{
char errbuf[1024];
sstrerror (errno, errbuf, sizeof (errbuf));
- DEBUG ("bind failed: %s; sa.sun_path = %s", errbuf, sa.sun_path);
ERROR ("unixsock plugin: bind failed: %s", errbuf);
close (sock_fd);
sock_fd = -1;