From cfa96fc6595893f3bc225e79894a9ef1acbc029f Mon Sep 17 00:00:00 2001 From: Xygwf Xu Date: Sun, 27 Nov 2022 16:51:46 +0800 Subject: [PATCH 1/3] Update ipwatchd.c The timeout argument (by zero) is kinda expensive for normal ip conflict detection which makes high cpu load on all of debian OS. Low to 100ms. --- src/ipwatchd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipwatchd.c b/src/ipwatchd.c index e0f137a..7e910b6 100644 --- a/src/ipwatchd.c +++ b/src/ipwatchd.c @@ -195,7 +195,7 @@ int main (int argc, char *argv[]) } /* Initialize libpcap and listen on all interfaces */ - h_pcap = pcap_open_live ("any", BUFSIZ, 0, 0, errbuf); + h_pcap = pcap_open_live ("any", BUFSIZ, 0, 100, errbuf); if (h_pcap == NULL) { ipwd_message (IPWD_MSG_TYPE_ERROR, "Unable to create packet capture object - %s", errbuf); From 59ccb4c02ab0a7d4f60597a6310db38b4f4d86c0 Mon Sep 17 00:00:00 2001 From: Xygwf Xu Date: Mon, 28 Nov 2022 16:08:21 +0800 Subject: [PATCH 2/3] Update doxygen.conf --- doc/doxygen.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/doxygen.conf b/doc/doxygen.conf index 07fa97f..cc155f9 100644 --- a/doc/doxygen.conf +++ b/doc/doxygen.conf @@ -38,7 +38,7 @@ PROJECT_NAME = IPwatchD # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 1.3.0 +PROJECT_NUMBER = 1.4.0 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a From 613611304e650708132686a27e01471c6319a592 Mon Sep 17 00:00:00 2001 From: Xygwf Xu Date: Mon, 28 Nov 2022 16:08:53 +0800 Subject: [PATCH 3/3] Update ipwatchd.h --- src/ipwatchd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipwatchd.h b/src/ipwatchd.h index 9caac3c..c76c5e4 100644 --- a/src/ipwatchd.h +++ b/src/ipwatchd.h @@ -45,7 +45,7 @@ //! String with IPwatchD version information -#define IPWATCHD_VERSION "IPwatchD 1.3.0" +#define IPWATCHD_VERSION "IPwatchD 1.4.0" //! Absolute path to pid file #define IPWD_PIDFILE "/var/run/ipwatchd.pid"