summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rw-r--r--README.md2
-rwxr-xr-xconfigure20
-rw-r--r--configure.ac4
-rw-r--r--plugins/anonaes128/anonaes128.c2
-rw-r--r--plugins/anonmask/anonmask.c2
-rw-r--r--plugins/cryptopan/cryptopan.c2
-rw-r--r--plugins/cryptopant/cryptopant.c2
-rw-r--r--plugins/eventlog/eventlog.c2
-rw-r--r--plugins/ipcrypt/ipcrypt.c2
-rw-r--r--plugins/pcapdump/pcapdump.c2
-rw-r--r--plugins/royparse/royparse.c2
-rwxr-xr-xplugins/rssm/dnscap-rssm-rssac0022
-rw-r--r--plugins/rssm/dnscap-rssm-rssac002.1.in2
-rw-r--r--plugins/rssm/rssm.c2
-rw-r--r--plugins/shared/edns0_ecs.c2
-rw-r--r--plugins/template/template.c2
-rw-r--r--plugins/txtout/txtout.c2
-rw-r--r--src/args.c2
-rw-r--r--src/args.h2
-rw-r--r--src/assert.c2
-rw-r--r--src/bpft.c4
-rw-r--r--src/bpft.h2
-rw-r--r--src/daemon.c2
-rw-r--r--src/daemon.h2
-rw-r--r--src/dnscap.1.in8
-rw-r--r--src/dnscap.c2
-rw-r--r--src/dnscap.h2
-rw-r--r--src/dnscap_common.h2
-rw-r--r--src/dump_cbor.c2
-rw-r--r--src/dump_cbor.h2
-rw-r--r--src/dump_cds.c2
-rw-r--r--src/dump_cds.h2
-rw-r--r--src/dump_dns.c2
-rw-r--r--src/dump_dns.h2
-rw-r--r--src/dumper.c4
-rw-r--r--src/dumper.h2
-rw-r--r--src/endian_compat.h2
-rw-r--r--src/endpoint.c2
-rw-r--r--src/endpoint.h2
-rw-r--r--src/hashtbl.c2
-rw-r--r--src/hashtbl.h2
-rw-r--r--src/iaddr.c2
-rw-r--r--src/iaddr.h2
-rw-r--r--src/log.c2
-rw-r--r--src/log.h2
-rw-r--r--src/memzero.c2
-rw-r--r--src/memzero.h2
-rw-r--r--src/network.c2
-rw-r--r--src/network.h2
-rw-r--r--src/options.c2
-rw-r--r--src/options.h2
-rw-r--r--src/pcaps.c2
-rw-r--r--src/pcaps.h2
-rw-r--r--src/sig.c2
-rw-r--r--src/sig.h2
-rw-r--r--src/tcpreasm.c2
-rw-r--r--src/tcpreasm.h2
-rw-r--r--src/tcpstate.c2
-rw-r--r--src/tcpstate.h2
-rw-r--r--src/test/Makefile.am8
-rw-r--r--src/test/Makefile.in15
-rw-r--r--src/test/gen_icmp.py10
-rw-r--r--src/test/icmp.gold4
-rw-r--r--src/test/icmp.pcapbin0 -> 160 bytes
-rwxr-xr-xsrc/test/test_icmp.sh11
66 files changed, 117 insertions, 81 deletions
diff --git a/LICENSE b/LICENSE
index f0cf750..44a6721 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
DNSCAP
-Copyright (c) 2016-2023, OARC, Inc.
+Copyright (c) 2016-2024 OARC, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/README.md b/README.md
index a3585c9..48e8866 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# dnscap
-[![Total alerts](https://img.shields.io/lgtm/alerts/g/DNS-OARC/dnscap.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/DNS-OARC/dnscap/alerts/) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adnscap&metric=bugs)](https://sonarcloud.io/dashboard?id=dns-oarc%3Adnscap) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adnscap&metric=security_rating)](https://sonarcloud.io/dashboard?id=dns-oarc%3Adnscap)
+[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adnscap&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dns-oarc%3Adnscap) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=dns-oarc%3Adnscap&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=dns-oarc%3Adnscap)
`dnscap` is a network capture utility designed specifically for DNS traffic.
It produces binary data in `pcap(3)` and other format. This utility is similar
diff --git a/configure b/configure
index 578719c..e7b6cc8 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for dnscap 2.2.0.
+# Generated by GNU Autoconf 2.71 for dnscap 2.2.1.
#
# Report bugs to <dnscap-users@dns-oarc.net>.
#
@@ -621,8 +621,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='dnscap'
PACKAGE_TARNAME='dnscap'
-PACKAGE_VERSION='2.2.0'
-PACKAGE_STRING='dnscap 2.2.0'
+PACKAGE_VERSION='2.2.1'
+PACKAGE_STRING='dnscap 2.2.1'
PACKAGE_BUGREPORT='dnscap-users@dns-oarc.net'
PACKAGE_URL='https://github.com/DNS-OARC/dnscap/issues'
@@ -1381,7 +1381,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures dnscap 2.2.0 to adapt to many kinds of systems.
+\`configure' configures dnscap 2.2.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1452,7 +1452,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of dnscap 2.2.0:";;
+ short | recursive ) echo "Configuration of dnscap 2.2.1:";;
esac
cat <<\_ACEOF
@@ -1585,7 +1585,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-dnscap configure 2.2.0
+dnscap configure 2.2.1
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1898,7 +1898,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by dnscap $as_me 2.2.0, which was
+It was created by dnscap $as_me 2.2.1, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -3168,7 +3168,7 @@ fi
# Define the identity of the package.
PACKAGE='dnscap'
- VERSION='2.2.0'
+ VERSION='2.2.1'
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -15829,7 +15829,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by dnscap $as_me 2.2.0, which was
+This file was extended by dnscap $as_me 2.2.1, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -15898,7 +15898,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
-dnscap config.status 2.2.0
+dnscap config.status 2.2.1
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
diff --git a/configure.ac b/configure.ac
index dbfcaa3..70e1694 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# Copyright (c) 2016-2023, OARC, Inc.
+# Copyright (c) 2016-2024 OARC, Inc.
# Copyright (c) 2007, The Measurement Factory, Inc.
# Copyright (c) 2007, Internet Systems Consortium, Inc.
# All rights reserved.
@@ -33,7 +33,7 @@
# POSSIBILITY OF SUCH DAMAGE.
AC_PREREQ(2.61)
-AC_INIT([dnscap], [2.2.0], [dnscap-users@dns-oarc.net], [dnscap], [https://github.com/DNS-OARC/dnscap/issues])
+AC_INIT([dnscap], [2.2.1], [dnscap-users@dns-oarc.net], [dnscap], [https://github.com/DNS-OARC/dnscap/issues])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_SRCDIR([src/dnscap.c])
AC_CONFIG_HEADER([src/config.h])
diff --git a/plugins/anonaes128/anonaes128.c b/plugins/anonaes128/anonaes128.c
index 0c86911..76605a4 100644
--- a/plugins/anonaes128/anonaes128.c
+++ b/plugins/anonaes128/anonaes128.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/anonmask/anonmask.c b/plugins/anonmask/anonmask.c
index 8e17a79..ff7b8ea 100644
--- a/plugins/anonmask/anonmask.c
+++ b/plugins/anonmask/anonmask.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/cryptopan/cryptopan.c b/plugins/cryptopan/cryptopan.c
index 6274c3d..77efb45 100644
--- a/plugins/cryptopan/cryptopan.c
+++ b/plugins/cryptopan/cryptopan.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/cryptopant/cryptopant.c b/plugins/cryptopant/cryptopant.c
index e6d8f04..aa30c72 100644
--- a/plugins/cryptopant/cryptopant.c
+++ b/plugins/cryptopant/cryptopant.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/eventlog/eventlog.c b/plugins/eventlog/eventlog.c
index 7f9cb74..3f0bdc2 100644
--- a/plugins/eventlog/eventlog.c
+++ b/plugins/eventlog/eventlog.c
@@ -12,7 +12,7 @@
* Below is the original copyright notice from txtout.c.
*/
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/ipcrypt/ipcrypt.c b/plugins/ipcrypt/ipcrypt.c
index e9a1f58..65f7734 100644
--- a/plugins/ipcrypt/ipcrypt.c
+++ b/plugins/ipcrypt/ipcrypt.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/pcapdump/pcapdump.c b/plugins/pcapdump/pcapdump.c
index 3af1ccd..2b39a8a 100644
--- a/plugins/pcapdump/pcapdump.c
+++ b/plugins/pcapdump/pcapdump.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/royparse/royparse.c b/plugins/royparse/royparse.c
index 4deed9a..9a40842 100644
--- a/plugins/royparse/royparse.c
+++ b/plugins/royparse/royparse.c
@@ -1,7 +1,7 @@
/*
* Author Roy Arends
*
- * Copyright (c) 2017-2023, OARC, Inc.
+ * Copyright (c) 2017-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/rssm/dnscap-rssm-rssac002 b/plugins/rssm/dnscap-rssm-rssac002
index aff45e7..859555c 100755
--- a/plugins/rssm/dnscap-rssm-rssac002
+++ b/plugins/rssm/dnscap-rssm-rssac002
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# Copyright (c) 2018-2023, OARC, Inc.
+# Copyright (c) 2018-2024 OARC, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
diff --git a/plugins/rssm/dnscap-rssm-rssac002.1.in b/plugins/rssm/dnscap-rssm-rssac002.1.in
index 6afce8f..8416975 100644
--- a/plugins/rssm/dnscap-rssm-rssac002.1.in
+++ b/plugins/rssm/dnscap-rssm-rssac002.1.in
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2017-2023, OARC, Inc.
+.\" Copyright (c) 2017-2024 OARC, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
diff --git a/plugins/rssm/rssm.c b/plugins/rssm/rssm.c
index 83f1ca8..db434a5 100644
--- a/plugins/rssm/rssm.c
+++ b/plugins/rssm/rssm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/shared/edns0_ecs.c b/plugins/shared/edns0_ecs.c
index 2b2e1fa..f46a3ee 100644
--- a/plugins/shared/edns0_ecs.c
+++ b/plugins/shared/edns0_ecs.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/template/template.c b/plugins/template/template.c
index bf0a89c..1464924 100644
--- a/plugins/template/template.c
+++ b/plugins/template/template.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/plugins/txtout/txtout.c b/plugins/txtout/txtout.c
index 2a22e7a..b51ea41 100644
--- a/plugins/txtout/txtout.c
+++ b/plugins/txtout/txtout.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/args.c b/src/args.c
index d4b1c0d..9a0c611 100644
--- a/src/args.c
+++ b/src/args.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/args.h b/src/args.h
index 3d34784..c5b1365 100644
--- a/src/args.h
+++ b/src/args.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/assert.c b/src/assert.c
index 4c86762..796db9c 100644
--- a/src/assert.c
+++ b/src/assert.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/bpft.c b/src/bpft.c
index 8ce1b56..80393e9 100644
--- a/src/bpft.c
+++ b/src/bpft.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -86,7 +86,7 @@ void prepare_bpft(void)
else
len += text_add(&bpfl, "("); /* ( transports ... */
if (wanticmp) {
- len += text_add(&bpfl, " ( ip proto 1 or ip proto 58 ) or");
+ len += text_add(&bpfl, " ( icmp or icmp6 ) or");
}
if (wantfrags) {
len += text_add(&bpfl, " ( ip[6:2] & 0x1fff != 0 or ip6[6] = 44 ) or");
diff --git a/src/bpft.h b/src/bpft.h
index fd0ca9f..23ca7ec 100644
--- a/src/bpft.h
+++ b/src/bpft.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/daemon.c b/src/daemon.c
index 83e614c..819bbab 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/daemon.h b/src/daemon.h
index e120eaf..a8e248a 100644
--- a/src/daemon.h
+++ b/src/daemon.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dnscap.1.in b/src/dnscap.1.in
index 55289cb..9ee0f66 100644
--- a/src/dnscap.1.in
+++ b/src/dnscap.1.in
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2016-2023, OARC, Inc.
+.\" Copyright (c) 2016-2024 OARC, Inc.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -226,8 +226,8 @@ This depends on the libpcap version.
If you want to make sure you're capturing on all interfaces then use the
special "any" or "all" (depends on system).
-More than one interface may be selected which will cause output to be
-interleaved from all selected interfaces.
+Can be specified more than once to select multiple interfaces, this will
+cause output to be interleaved from all selected interfaces.
.TP
.B \-p
Asks that the interface not be put into promiscuous mode.
@@ -468,7 +468,7 @@ VLAN id 4095 can be used to specify all vlans.
.BI "\-L " vlan
Captures 802.1Q encapsulated packets matching the specified vlans AND
packets without VLAN tags.
-Can be specified more than one to select multiple vlans.
+Can be specified more than once to select multiple vlans.
VLAN id 4095 can be used to specify all vlans.
.TP
.BI "\-u " port
diff --git a/src/dnscap.c b/src/dnscap.c
index a3e2ba1..038ec61 100644
--- a/src/dnscap.c
+++ b/src/dnscap.c
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dnscap.h b/src/dnscap.h
index e079ec9..2a8acf2 100644
--- a/src/dnscap.h
+++ b/src/dnscap.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dnscap_common.h b/src/dnscap_common.h
index a1f05d9..eff2603 100644
--- a/src/dnscap_common.h
+++ b/src/dnscap_common.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_cbor.c b/src/dump_cbor.c
index 89cf5be..c287330 100644
--- a/src/dump_cbor.c
+++ b/src/dump_cbor.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_cbor.h b/src/dump_cbor.h
index a032cd8..6cdb1ec 100644
--- a/src/dump_cbor.h
+++ b/src/dump_cbor.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_cds.c b/src/dump_cds.c
index 3f680b5..64cfd24 100644
--- a/src/dump_cds.c
+++ b/src/dump_cds.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_cds.h b/src/dump_cds.h
index 3eb2818..124dbbe 100644
--- a/src/dump_cds.h
+++ b/src/dump_cds.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_dns.c b/src/dump_dns.c
index 121a97e..a71145f 100644
--- a/src/dump_dns.c
+++ b/src/dump_dns.c
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dump_dns.h b/src/dump_dns.h
index e3394f3..194233f 100644
--- a/src/dump_dns.h
+++ b/src/dump_dns.h
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/dumper.c b/src/dumper.c
index 88d83fd..1c57784 100644
--- a/src/dumper.c
+++ b/src/dumper.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -325,7 +325,7 @@ int dumper_close(my_bpftimeval ts)
int x;
if (!p->close)
continue;
- x = (*p->close)(ts);
+ x = (*p->close)();
if (x)
logerr("%s_close returned %d", p->name, x);
}
diff --git a/src/dumper.h b/src/dumper.h
index ffef7cd..5671c90 100644
--- a/src/dumper.h
+++ b/src/dumper.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/endian_compat.h b/src/endian_compat.h
index b7b89c1..37752de 100644
--- a/src/endian_compat.h
+++ b/src/endian_compat.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/endpoint.c b/src/endpoint.c
index a2b848f..3de077f 100644
--- a/src/endpoint.c
+++ b/src/endpoint.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/endpoint.h b/src/endpoint.h
index 2ad2cf3..cf224e2 100644
--- a/src/endpoint.h
+++ b/src/endpoint.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/hashtbl.c b/src/hashtbl.c
index c497b78..f788838 100644
--- a/src/hashtbl.c
+++ b/src/hashtbl.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/hashtbl.h b/src/hashtbl.h
index d049ca5..283353b 100644
--- a/src/hashtbl.h
+++ b/src/hashtbl.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/iaddr.c b/src/iaddr.c
index bbe47be..67c0fc8 100644
--- a/src/iaddr.c
+++ b/src/iaddr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/iaddr.h b/src/iaddr.h
index 452ca14..7f4fbde 100644
--- a/src/iaddr.h
+++ b/src/iaddr.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/log.c b/src/log.c
index 4cd5fa7..34f96c0 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/log.h b/src/log.h
index be93ddd..f055864 100644
--- a/src/log.h
+++ b/src/log.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/memzero.c b/src/memzero.c
index 6b983a4..99dad49 100644
--- a/src/memzero.c
+++ b/src/memzero.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/memzero.h b/src/memzero.h
index 02ede71..8e73470 100644
--- a/src/memzero.h
+++ b/src/memzero.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/network.c b/src/network.c
index 9fc1f00..0258739 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/network.h b/src/network.h
index 0d1bb5f..440262f 100644
--- a/src/network.h
+++ b/src/network.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/options.c b/src/options.c
index ce0c047..1dab3e2 100644
--- a/src/options.c
+++ b/src/options.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/options.h b/src/options.h
index ce601e1..96b1a8c 100644
--- a/src/options.h
+++ b/src/options.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/pcaps.c b/src/pcaps.c
index f89b9bb..501f094 100644
--- a/src/pcaps.c
+++ b/src/pcaps.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/pcaps.h b/src/pcaps.h
index 554b8b8..e1a59a7 100644
--- a/src/pcaps.h
+++ b/src/pcaps.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/sig.c b/src/sig.c
index de01508..591238b 100644
--- a/src/sig.c
+++ b/src/sig.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/sig.h b/src/sig.h
index f93d1f4..5fe59e9 100644
--- a/src/sig.h
+++ b/src/sig.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2023, OARC, Inc.
+ * Copyright (c) 2016-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/tcpreasm.c b/src/tcpreasm.c
index 7dc82fa..8c49c8d 100644
--- a/src/tcpreasm.c
+++ b/src/tcpreasm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/tcpreasm.h b/src/tcpreasm.h
index 37260e0..34ddef3 100644
--- a/src/tcpreasm.h
+++ b/src/tcpreasm.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/tcpstate.c b/src/tcpstate.c
index b11c701..eb73056 100644
--- a/src/tcpstate.c
+++ b/src/tcpstate.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/tcpstate.h b/src/tcpstate.h
index 2f77ddb..e5dd08a 100644
--- a/src/tcpstate.h
+++ b/src/tcpstate.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index 1918400..91d11a5 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -16,11 +16,12 @@ CLEANFILES = test*.log test*.trs \
test13.out \
test14.out \
test_regex_match.out \
- edns.out
+ edns.out \
+ test_icmp.out
TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh test6.sh test7.sh \
test8.sh test9.sh test10.sh test11.sh test12.sh test13.sh test14.sh \
- test_regex_match.sh test_edns.sh
+ test_regex_match.sh test_edns.sh test_icmp.sh
EXTRA_DIST = $(TESTS) \
dns.gold dns.pcap \
@@ -36,4 +37,5 @@ EXTRA_DIST = $(TESTS) \
dns6.pcap test10.gold \
test14.gold \
test_regex_match.gold \
- edns.pcap edns.gold
+ edns.pcap edns.gold \
+ gen_icmp.py icmp.pcap icmp.gold
diff --git a/src/test/Makefile.in b/src/test/Makefile.in
index 1aff4ee..5c51d7c 100644
--- a/src/test/Makefile.in
+++ b/src/test/Makefile.in
@@ -481,11 +481,12 @@ CLEANFILES = test*.log test*.trs \
test13.out \
test14.out \
test_regex_match.out \
- edns.out
+ edns.out \
+ test_icmp.out
TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh test6.sh test7.sh \
test8.sh test9.sh test10.sh test11.sh test12.sh test13.sh test14.sh \
- test_regex_match.sh test_edns.sh
+ test_regex_match.sh test_edns.sh test_icmp.sh
EXTRA_DIST = $(TESTS) \
dns.gold dns.pcap \
@@ -501,7 +502,8 @@ EXTRA_DIST = $(TESTS) \
dns6.pcap test10.gold \
test14.gold \
test_regex_match.gold \
- edns.pcap edns.gold
+ edns.pcap edns.gold \
+ gen_icmp.py icmp.pcap icmp.gold
all: all-am
@@ -803,6 +805,13 @@ test_edns.sh.log: test_edns.sh
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
+test_icmp.sh.log: test_icmp.sh
+ @p='test_icmp.sh'; \
+ b='test_icmp.sh'; \
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+ --log-file $$b.log --trs-file $$b.trs \
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
.test.log:
@p='$<'; \
$(am__set_b); \
diff --git a/src/test/gen_icmp.py b/src/test/gen_icmp.py
new file mode 100644
index 0000000..afee206
--- /dev/null
+++ b/src/test/gen_icmp.py
@@ -0,0 +1,10 @@
+import sys
+from scapy.all import *
+
+pcap = sys.argv[1]
+
+pkts = []
+pkts.append(Ether()/IPv6(dst="2001:db8:dead::1")/ICMPv6DestUnreach())
+pkts.append(Ether()/IP(dst="0.0.0.0")/ICMP(type=3))
+
+wrpcap(pcap, pkts) \ No newline at end of file
diff --git a/src/test/icmp.gold b/src/test/icmp.gold
new file mode 100644
index 0000000..8c05b66
--- /dev/null
+++ b/src/test/icmp.gold
@@ -0,0 +1,4 @@
+[48] 2024-09-10 08:52:52.252793 [#0 icmp.pcap 4095] \
+ [fd00::242:ac11:9].0 [2001:db8:dead::1].0
+[28] 2024-09-10 08:52:52.253461 [#1 icmp.pcap 4095] \
+ [172.17.0.9].0 [0.0.0.0].0
diff --git a/src/test/icmp.pcap b/src/test/icmp.pcap
new file mode 100644
index 0000000..2aba75d
--- /dev/null
+++ b/src/test/icmp.pcap
Binary files differ
diff --git a/src/test/test_icmp.sh b/src/test/test_icmp.sh
new file mode 100755
index 0000000..43f44e8
--- /dev/null
+++ b/src/test/test_icmp.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -xe
+
+test -e icmp.pcap || ln -s "$srcdir/icmp.pcap" icmp.pcap
+
+../dnscap -g -I -r icmp.pcap 2>test_icmp.out
+
+mv test_icmp.out test_icmp.out.old
+grep -v "^libgcov profiling error:" test_icmp.out.old > test_icmp.out
+rm test_icmp.out.old
+
+diff test_icmp.out "$srcdir/icmp.gold"