summaryrefslogtreecommitdiffstats
path: root/plugins/rssm/rssm.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-06 08:48:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-06 08:48:24 +0000
commit6392e20948d13429246ecadb20d7195461293e10 (patch)
tree07e2e4907fe639c06c50e8cc0b7d133d7bf62413 /plugins/rssm/rssm.c
parentAdding upstream version 2.1.0. (diff)
downloaddnscap-6392e20948d13429246ecadb20d7195461293e10.tar.xz
dnscap-6392e20948d13429246ecadb20d7195461293e10.zip
Adding upstream version 2.1.1.upstream/2.1.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/rssm/rssm.c')
-rw-r--r--plugins/rssm/rssm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/rssm/rssm.c b/plugins/rssm/rssm.c
index 1847cc0..91cbd93 100644
--- a/plugins/rssm/rssm.c
+++ b/plugins/rssm/rssm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2022, OARC, Inc.
+ * Copyright (c) 2016-2023, OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -566,7 +566,6 @@ int rssm_close(my_bpftimeval ts)
struct tm tm;
if (dont_fork_on_close) {
- struct tm tm;
gmtime_r((time_t*)&open_ts.tv_sec, &tm);
strftime(sbuf, sizeof(sbuf), "%Y%m%d.%H%M%S", &tm);
close_ts = ts;
@@ -721,7 +720,7 @@ void rssm_output(const char* descr, iaddr from, iaddr to, uint8_t proto, unsigne
counts.dns_tcp_responses_sent_ipv6++;
}
}
- if (ldns_pkt_arcount(pkt)) {
+ if (ldns_pkt_edns(pkt)) {
rcode |= ((uint16_t)ldns_pkt_edns_extended_rcode(pkt) << 4);
}
counts.rcodes[rcode]++;