summarylogtreecommitdiffstats
path: root/03-bandwidthd-subnet-reporting.patch
diff options
context:
space:
mode:
authorOleksandr Natalenko2020-07-26 12:06:48 +0200
committerOleksandr Natalenko2020-07-26 12:06:48 +0200
commit7dd1327997893b065b15ca0bbe9dced79e92464e (patch)
treeff7ab0edb334e42829f150b4c11d89636bdff4f8 /03-bandwidthd-subnet-reporting.patch
parentac19b2a08a7b3f933849fd11c6fa22c15549b2d3 (diff)
downloadaur-bandwidthd.tar.gz
update to v2.0.4
Signed-off-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Diffstat (limited to '03-bandwidthd-subnet-reporting.patch')
-rw-r--r--03-bandwidthd-subnet-reporting.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/03-bandwidthd-subnet-reporting.patch b/03-bandwidthd-subnet-reporting.patch
deleted file mode 100644
index 4f1a15e98c8..00000000000
--- a/03-bandwidthd-subnet-reporting.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -u bandwidthd-0307fbba56a39a6e65ebadf488ad87979c64fdef/bandwidthd.c bandwidthd-0307fbba56a39a6e65ebadf488ad87979c64fdef~/bandwidthd.c
---- bandwidthd-0307fbba56a39a6e65ebadf488ad87979c64fdef/bandwidthd.c 2019-03-27 20:05:31.000000000 +0100
-+++ bandwidthd-0307fbba56a39a6e65ebadf488ad87979c64fdef~/bandwidthd.c 2020-04-09 11:13:08.489071600 +0200
-@@ -346,9 +346,12 @@
- // Log list of monitored subnets
- for (Counter = 0; Counter < SubnetCount; Counter++)
- {
-+ char subnet[16], mask[16];
- addr.s_addr = ntohl(SubnetTable[Counter].ip);
- addr2.s_addr = ntohl(SubnetTable[Counter].mask);
-- syslog(LOG_INFO, "Monitoring subnet %s with netmask %s", inet_ntoa(addr), inet_ntoa(addr2));
-+ strncpy(subnet, inet_ntoa(addr), 16);
-+ strncpy(mask, inet_ntoa(addr2), 16);
-+ syslog(LOG_INFO, "Monitoring subnet %s with netmask %s", subnet, mask);
- }
- for (Counter = 0; Counter < NotSubnetCount; Counter++)
- {