From e686b9592c0d711538a85f392ef78ba9a87490ff Mon Sep 17 00:00:00 2001
From: Logan oos Even <46396513+Logan007@users.noreply.github.com>
Date: Sat, 12 Mar 2022 10:22:42 +0100
Subject: [PATCH] (C) update (#965)
---
README.md | 2 +-
include/aes.h | 2 +-
include/auth.h | 2 +-
include/cc20.h | 2 +-
include/curve25519.h | 2 +-
include/edge_utils_win32.h | 2 +-
include/header_encryption.h | 2 +-
include/lzoconf.h | 19 +++++++++++++++++++
include/lzodefs.h | 18 ++++++++++++++++++
include/minilzo.h | 19 +++++++++++++++++++
include/n2n.h | 2 +-
include/n2n_define.h | 2 +-
include/n2n_port_mapping.h | 19 +++++++++++++++++++
include/n2n_regex.h | 2 +-
include/n2n_typedefs.h | 2 +-
include/n2n_wire.h | 2 +-
include/network_traffic_filter.h | 2 +-
include/pearson.h | 2 +-
include/portable_endian.h | 19 +++++++++++++++++++
include/random_numbers.h | 2 +-
include/sn_selection.h | 2 +-
include/speck.h | 2 +-
include/tf.h | 2 +-
include/uthash.h | 19 +++++++++++++++++++
src/aes.c | 2 +-
src/auth.c | 2 +-
src/cc20.c | 2 +-
src/curve25519.c | 2 +-
src/edge.c | 2 +-
src/edge_management.c | 2 +-
src/edge_utils.c | 2 +-
src/edge_utils_win32.c | 2 +-
src/example_edge_embed.c | 2 +-
src/example_edge_embed_quick_edge_init.c | 2 +-
src/example_sn_embed.c | 2 +-
src/header_encryption.c | 2 +-
src/hexdump.c | 17 +++++++++++++++++
src/minilzo.c | 18 ++++++++++++++++++
src/n2n.c | 4 ++--
src/n2n_port_mapping.c | 2 +-
src/n2n_regex.c | 2 +-
src/network_traffic_filter.c | 2 +-
src/pearson.c | 2 +-
src/random_numbers.c | 2 +-
src/sn_management.c | 2 +-
src/sn_selection.c | 2 +-
src/sn_utils.c | 2 +-
src/speck.c | 2 +-
src/supernode.c | 2 +-
src/tf.c | 2 +-
src/transform_aes.c | 2 +-
src/transform_cc20.c | 2 +-
src/transform_lzo.c | 2 +-
src/transform_null.c | 2 +-
src/transform_speck.c | 2 +-
src/transform_tf.c | 2 +-
src/transform_zstd.c | 2 +-
src/tuntap_freebsd.c | 2 +-
src/tuntap_linux.c | 2 +-
src/tuntap_netbsd.c | 2 +-
src/tuntap_osx.c | 2 +-
src/wire.c | 2 +-
tools/n2n-benchmark.c | 2 +-
tools/n2n-decode.c | 2 +-
tools/n2n-keygen.c | 2 +-
tools/tests-auth.c | 2 +-
tools/tests-compress.c | 2 +-
tools/tests-elliptic.c | 2 +-
tools/tests-hashing.c | 2 +-
tools/tests-transform.c | 2 +-
tools/tests-wire.c | 2 +-
win32/getopt.c | 22 ++++++++++++++++++++--
win32/getopt.h | 18 ++++++++++++++++++
win32/getopt1.c | 23 +++++++++++++++++++++--
win32/n2n_win32.h | 2 +-
win32/wintap.c | 2 +-
win32/wintap.h | 4 ++--
77 files changed, 275 insertions(+), 72 deletions(-)
diff --git a/README.md b/README.md
index 958d214..43331b8 100644
--- a/README.md
+++ b/README.md
@@ -115,4 +115,4 @@ Here is a list of third-party projects connected to this repository:
---
-(C) 2007-21 - ntop.org and contributors
+(C) 2007-22 - ntop.org and contributors
diff --git a/include/aes.h b/include/aes.h
index a43997e..b22f0f8 100644
--- a/include/aes.h
+++ b/include/aes.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/auth.h b/include/auth.h
index 43bc588..0376d3f 100644
--- a/include/auth.h
+++ b/include/auth.h
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/cc20.h b/include/cc20.h
index 1030d51..3a5b553 100644
--- a/include/cc20.h
+++ b/include/cc20.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/curve25519.h b/include/curve25519.h
index 96acaaf..e816bf5 100644
--- a/include/curve25519.h
+++ b/include/curve25519.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/edge_utils_win32.h b/include/edge_utils_win32.h
index 52720f7..09f8366 100644
--- a/include/edge_utils_win32.h
+++ b/include/edge_utils_win32.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/header_encryption.h b/include/header_encryption.h
index b12d858..a5e3f89 100644
--- a/include/header_encryption.h
+++ b/include/header_encryption.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/lzoconf.h b/include/lzoconf.h
index f9a8bdb..67e832e 100644
--- a/include/lzoconf.h
+++ b/include/lzoconf.h
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
/* lzoconf.h -- configuration of the LZO data compression library
This file is part of the LZO real-time data compression library.
diff --git a/include/lzodefs.h b/include/lzodefs.h
index c3e2bcf..ab55efa 100644
--- a/include/lzodefs.h
+++ b/include/lzodefs.h
@@ -1,3 +1,21 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
/* lzodefs.h -- architecture, OS and compiler specific defines
This file is part of the LZO real-time data compression library.
diff --git a/include/minilzo.h b/include/minilzo.h
index c1c2297..08e2b44 100644
--- a/include/minilzo.h
+++ b/include/minilzo.h
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
/* minilzo.h -- mini subset of the LZO real-time data compression library
This file is part of the LZO real-time data compression library.
diff --git a/include/n2n.h b/include/n2n.h
index 4025ec7..602458c 100644
--- a/include/n2n.h
+++ b/include/n2n.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/n2n_define.h b/include/n2n_define.h
index 4c4da21..010f469 100644
--- a/include/n2n_define.h
+++ b/include/n2n_define.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/n2n_port_mapping.h b/include/n2n_port_mapping.h
index e3dc762..46b2511 100644
--- a/include/n2n_port_mapping.h
+++ b/include/n2n_port_mapping.h
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
#ifndef _N2N_PORT_MAPPING_H_
#define _N2N_PORT_MAPPING_H_
diff --git a/include/n2n_regex.h b/include/n2n_regex.h
index 9ac409c..bbf416e 100644
--- a/include/n2n_regex.h
+++ b/include/n2n_regex.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/n2n_typedefs.h b/include/n2n_typedefs.h
index 6c58543..b390d52 100644
--- a/include/n2n_typedefs.h
+++ b/include/n2n_typedefs.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/n2n_wire.h b/include/n2n_wire.h
index 62d30c6..6ca11ed 100644
--- a/include/n2n_wire.h
+++ b/include/n2n_wire.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/network_traffic_filter.h b/include/network_traffic_filter.h
index 97de7ec..d3eda87 100644
--- a/include/network_traffic_filter.h
+++ b/include/network_traffic_filter.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/pearson.h b/include/pearson.h
index 97d2500..908f24f 100644
--- a/include/pearson.h
+++ b/include/pearson.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/portable_endian.h b/include/portable_endian.h
index 12a30b9..6b18236 100644
--- a/include/portable_endian.h
+++ b/include/portable_endian.h
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
// taken from
// https://raw.githubusercontent.com/pyca/bcrypt/master/src/_csrc/portable_endian.h
// as of June 11, 2020
diff --git a/include/random_numbers.h b/include/random_numbers.h
index 55cc400..b998bcf 100644
--- a/include/random_numbers.h
+++ b/include/random_numbers.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/sn_selection.h b/include/sn_selection.h
index ffd47f8..a55f52f 100644
--- a/include/sn_selection.h
+++ b/include/sn_selection.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/speck.h b/include/speck.h
index bf448fc..686818b 100644
--- a/include/speck.h
+++ b/include/speck.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/tf.h b/include/tf.h
index e9353bb..5f13f76 100644
--- a/include/tf.h
+++ b/include/tf.h
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/include/uthash.h b/include/uthash.h
index a790ea5..eca723d 100644
--- a/include/uthash.h
+++ b/include/uthash.h
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
/*
Copyright (c) 2003-2018, Troy D. Hanson http://troydhanson.github.com/uthash/
All rights reserved.
diff --git a/src/aes.c b/src/aes.c
index 12b161b..35375bd 100644
--- a/src/aes.c
+++ b/src/aes.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/auth.c b/src/auth.c
index 68b5694..2b898c9 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/cc20.c b/src/cc20.c
index 3df6584..168a423 100644
--- a/src/cc20.c
+++ b/src/cc20.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/curve25519.c b/src/curve25519.c
index 881cf73..f8afe11 100644
--- a/src/curve25519.c
+++ b/src/curve25519.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/edge.c b/src/edge.c
index 5fc6f62..d2d6585 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/edge_management.c b/src/edge_management.c
index 86898e5..1a472f0 100644
--- a/src/edge_management.c
+++ b/src/edge_management.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/edge_utils.c b/src/edge_utils.c
index 6984f35..42c1a6f 100644
--- a/src/edge_utils.c
+++ b/src/edge_utils.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/edge_utils_win32.c b/src/edge_utils_win32.c
index 73ccb0b..a32e06c 100644
--- a/src/edge_utils_win32.c
+++ b/src/edge_utils_win32.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/example_edge_embed.c b/src/example_edge_embed.c
index 3c926ce..76388b7 100644
--- a/src/example_edge_embed.c
+++ b/src/example_edge_embed.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/example_edge_embed_quick_edge_init.c b/src/example_edge_embed_quick_edge_init.c
index 148655a..e96a765 100644
--- a/src/example_edge_embed_quick_edge_init.c
+++ b/src/example_edge_embed_quick_edge_init.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/example_sn_embed.c b/src/example_sn_embed.c
index 0f5b679..dc1ed18 100644
--- a/src/example_sn_embed.c
+++ b/src/example_sn_embed.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/header_encryption.c b/src/header_encryption.c
index 462982a..5511557 100644
--- a/src/header_encryption.c
+++ b/src/header_encryption.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/hexdump.c b/src/hexdump.c
index 75093b7..a9cbd00 100644
--- a/src/hexdump.c
+++ b/src/hexdump.c
@@ -1,3 +1,20 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
#include
diff --git a/src/minilzo.c b/src/minilzo.c
index 8fd8664..f4db433 100644
--- a/src/minilzo.c
+++ b/src/minilzo.c
@@ -1,3 +1,21 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
/* minilzo.c -- mini subset of the LZO real-time data compression library
This file is part of the LZO real-time data compression library.
diff --git a/src/n2n.c b/src/n2n.c
index de62e10..f81de09 100644
--- a/src/n2n.c
+++ b/src/n2n.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -582,7 +582,7 @@ void print_n2n_version () {
printf("Welcome to n2n v.%s for %s\n"
"Built on %s\n"
- "Copyright 2007-2021 - ntop.org and contributors\n\n",
+ "Copyright 2007-2022 - ntop.org and contributors\n\n",
PACKAGE_VERSION, PACKAGE_OSNAME, PACKAGE_BUILDDATE);
}
diff --git a/src/n2n_port_mapping.c b/src/n2n_port_mapping.c
index 2edb41e..29fbc6f 100644
--- a/src/n2n_port_mapping.c
+++ b/src/n2n_port_mapping.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/n2n_regex.c b/src/n2n_regex.c
index 56e47da..6539451 100644
--- a/src/n2n_regex.c
+++ b/src/n2n_regex.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/network_traffic_filter.c b/src/network_traffic_filter.c
index 9ec76a2..dfdb54d 100644
--- a/src/network_traffic_filter.c
+++ b/src/network_traffic_filter.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/pearson.c b/src/pearson.c
index 68f9e38..4852b43 100644
--- a/src/pearson.c
+++ b/src/pearson.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/random_numbers.c b/src/random_numbers.c
index 0adb8c6..e874031 100644
--- a/src/random_numbers.c
+++ b/src/random_numbers.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/sn_management.c b/src/sn_management.c
index 63a2b31..44dc4c6 100644
--- a/src/sn_management.c
+++ b/src/sn_management.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/sn_selection.c b/src/sn_selection.c
index 57c2fe8..0c865ee 100644
--- a/src/sn_selection.c
+++ b/src/sn_selection.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/sn_utils.c b/src/sn_utils.c
index 6b8474e..4323ba4 100644
--- a/src/sn_utils.c
+++ b/src/sn_utils.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/speck.c b/src/speck.c
index f0f2809..4c43003 100644
--- a/src/speck.c
+++ b/src/speck.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/supernode.c b/src/supernode.c
index 8e78a77..848f74c 100644
--- a/src/supernode.c
+++ b/src/supernode.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/tf.c b/src/tf.c
index 418ba4e..793c527 100644
--- a/src/tf.c
+++ b/src/tf.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_aes.c b/src/transform_aes.c
index 9a7406a..d147287 100644
--- a/src/transform_aes.c
+++ b/src/transform_aes.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_cc20.c b/src/transform_cc20.c
index fd8d372..5cf9eb4 100644
--- a/src/transform_cc20.c
+++ b/src/transform_cc20.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_lzo.c b/src/transform_lzo.c
index 2c246f1..69a1eff 100644
--- a/src/transform_lzo.c
+++ b/src/transform_lzo.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_null.c b/src/transform_null.c
index 6fd9d5e..cc3cbf3 100644
--- a/src/transform_null.c
+++ b/src/transform_null.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_speck.c b/src/transform_speck.c
index 22bac10..1778eb7 100644
--- a/src/transform_speck.c
+++ b/src/transform_speck.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_tf.c b/src/transform_tf.c
index 144b6ec..4368d03 100644
--- a/src/transform_tf.c
+++ b/src/transform_tf.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/transform_zstd.c b/src/transform_zstd.c
index adaf2a1..c39ec3b 100644
--- a/src/transform_zstd.c
+++ b/src/transform_zstd.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/tuntap_freebsd.c b/src/tuntap_freebsd.c
index 02b99b1..6501659 100644
--- a/src/tuntap_freebsd.c
+++ b/src/tuntap_freebsd.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/tuntap_linux.c b/src/tuntap_linux.c
index cc23fac..b110e9c 100644
--- a/src/tuntap_linux.c
+++ b/src/tuntap_linux.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/tuntap_netbsd.c b/src/tuntap_netbsd.c
index 088f4a8..4302897 100644
--- a/src/tuntap_netbsd.c
+++ b/src/tuntap_netbsd.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/tuntap_osx.c b/src/tuntap_osx.c
index 4ba51af..6d4092d 100644
--- a/src/tuntap_osx.c
+++ b/src/tuntap_osx.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/src/wire.c b/src/wire.c
index e7e2c25..4eb6576 100644
--- a/src/wire.c
+++ b/src/wire.c
@@ -1,5 +1,5 @@
/**
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/n2n-benchmark.c b/tools/n2n-benchmark.c
index 6dfc6a7..2dba6f2 100644
--- a/tools/n2n-benchmark.c
+++ b/tools/n2n-benchmark.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/n2n-decode.c b/tools/n2n-decode.c
index e0c9a9a..94b14d6 100644
--- a/tools/n2n-decode.c
+++ b/tools/n2n-decode.c
@@ -1,5 +1,5 @@
/**
- * (C) 2019-21 - ntop.org and contributors
+ * (C) 2019-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/n2n-keygen.c b/tools/n2n-keygen.c
index 5cc21db..3ce25f9 100644
--- a/tools/n2n-keygen.c
+++ b/tools/n2n-keygen.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-auth.c b/tools/tests-auth.c
index 15452a2..232df6e 100644
--- a/tools/tests-auth.c
+++ b/tools/tests-auth.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-compress.c b/tools/tests-compress.c
index f68d510..dded8bc 100644
--- a/tools/tests-compress.c
+++ b/tools/tests-compress.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-elliptic.c b/tools/tests-elliptic.c
index 3a119bc..eb96365 100644
--- a/tools/tests-elliptic.c
+++ b/tools/tests-elliptic.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-hashing.c b/tools/tests-hashing.c
index 9455b9b..dbbbbb8 100644
--- a/tools/tests-hashing.c
+++ b/tools/tests-hashing.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-transform.c b/tools/tests-transform.c
index 0b5e67a..11f0deb 100644
--- a/tools/tests-transform.c
+++ b/tools/tests-transform.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/tools/tests-wire.c b/tools/tests-wire.c
index 9e14f01..e194f72 100644
--- a/tools/tests-wire.c
+++ b/tools/tests-wire.c
@@ -1,5 +1,5 @@
/*
- * (C) 2007-21 - ntop.org and contributors
+ * (C) 2007-22 - ntop.org and contributors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/win32/getopt.c b/win32/getopt.c
index c938ea3..f34b53a 100644
--- a/win32/getopt.c
+++ b/win32/getopt.c
@@ -1,3 +1,21 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to drepper@gnu.org
@@ -20,7 +38,7 @@
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-
+
/* This tells Alpha OSF/1 not to define a getopt prototype in .
Ditto for AIX 3.2 and . */
#ifndef _NO_PROTO
@@ -255,7 +273,7 @@ extern int strlen (const char *);
#endif /* __GNUC__ */
#endif /* not __GNU_LIBRARY__ */
-
+
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
diff --git a/win32/getopt.h b/win32/getopt.h
index 91eb54e..bc7f256 100644
--- a/win32/getopt.h
+++ b/win32/getopt.h
@@ -1,3 +1,21 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
/* Declarations for getopt.
Copyright (C) 1989,90,91,92,93,94,96,97,98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/win32/getopt1.c b/win32/getopt1.c
index f7ca91c..8742b08 100644
--- a/win32/getopt1.c
+++ b/win32/getopt1.c
@@ -1,3 +1,22 @@
+/**
+ * (C) 2007-22 - ntop.org and contributors
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not see see
+ *
+ */
+
+
/* getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
Free Software Foundation, Inc.
@@ -17,7 +36,7 @@
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-
+
#ifdef HAVE_CONFIG_H
#include
#endif
@@ -92,7 +111,7 @@ getopt_long_only (argc, argv, options, long_options, opt_index)
#endif /* Not ELIDE_CODE. */
-
+
#ifdef TEST
#include
diff --git a/win32/n2n_win32.h b/win32/n2n_win32.h
index 8cddbb0..e1a0104 100644
--- a/win32/n2n_win32.h
+++ b/win32/n2n_win32.h
@@ -1,6 +1,6 @@
/*
- (C) 2007-09 - Luca Deri
+ (C) 2007-22 - Luca Deri
*/
diff --git a/win32/wintap.c b/win32/wintap.c
index e16ba49..0777a59 100644
--- a/win32/wintap.c
+++ b/win32/wintap.c
@@ -1,5 +1,5 @@
/*
- (C) 2007-09 - Luca Deri
+ (C) 2007-22 - Luca Deri
*/
#include "n2n.h"
diff --git a/win32/wintap.h b/win32/wintap.h
index 23bd6d4..ff46ddc 100644
--- a/win32/wintap.h
+++ b/win32/wintap.h
@@ -1,5 +1,5 @@
/*
- (C) 2007 - Luca Deri
+ (C) 2007-22 - Luca Deri
*/
#ifndef _WINTAP_H_
@@ -69,4 +69,4 @@ extern void initWin32();
extern void destroyWin32();
extern void win_print_available_adapters();
-#endif
\ No newline at end of file
+#endif