From cde438f670e61dcf87a6fe2dc8c94eef57b39f4a Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 5 Jan 2018 13:27:59 +0100 Subject: [PATCH] af-packet: add missing copyright header And also fixes the copyright date in some files. --- ebpf/bypass_filter.c | 18 +++++++++++++++++- ebpf/filter.c | 18 +++++++++++++++++- ebpf/lb.c | 18 +++++++++++++++++- ebpf/vlan_filter.c | 17 +++++++++++++++++ ebpf/xdp_filter.c | 18 +++++++++++++++++- src/flow-bypass.c | 2 +- src/flow-bypass.h | 2 +- src/source-af-packet.c | 2 +- 8 files changed, 88 insertions(+), 7 deletions(-) diff --git a/ebpf/bypass_filter.c b/ebpf/bypass_filter.c index a79041f303..23f5f32dc6 100644 --- a/ebpf/bypass_filter.c +++ b/ebpf/bypass_filter.c @@ -1,4 +1,20 @@ -//#include +/* Copyright (C) 2018 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * 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 + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + #include #include #include diff --git a/ebpf/filter.c b/ebpf/filter.c index 9293d9cbbb..1976ffcf18 100644 --- a/ebpf/filter.c +++ b/ebpf/filter.c @@ -1,4 +1,20 @@ -//#include +/* Copyright (C) 2018 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * 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 + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + #include #include #include diff --git a/ebpf/lb.c b/ebpf/lb.c index d7a5685de2..afc8d4f614 100644 --- a/ebpf/lb.c +++ b/ebpf/lb.c @@ -1,4 +1,20 @@ -//#include +/* Copyright (C) 2018 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * 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 + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + #include #include #include diff --git a/ebpf/vlan_filter.c b/ebpf/vlan_filter.c index f3913d8a8c..5c3865273d 100644 --- a/ebpf/vlan_filter.c +++ b/ebpf/vlan_filter.c @@ -1,3 +1,20 @@ +/* Copyright (C) 2018 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * 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 + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + #include #include #include diff --git a/ebpf/xdp_filter.c b/ebpf/xdp_filter.c index ac9aaeefd6..c8484a0442 100644 --- a/ebpf/xdp_filter.c +++ b/ebpf/xdp_filter.c @@ -1,4 +1,20 @@ -//#include +/* Copyright (C) 2018 Open Information Security Foundation + * + * You can copy, redistribute or modify this Program under the terms of + * the GNU General Public License version 2 as published by the Free + * Software Foundation. + * + * 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 + * version 2 along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + #define KBUILD_MODNAME "foo" #include #include diff --git a/src/flow-bypass.c b/src/flow-bypass.c index b3a7b63fd0..9367e8ed85 100644 --- a/src/flow-bypass.c +++ b/src/flow-bypass.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2016-2017 Open Information Security Foundation +/* Copyright (C) 2016-2018 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free diff --git a/src/flow-bypass.h b/src/flow-bypass.h index ffa37b6971..3f438d4f58 100644 --- a/src/flow-bypass.h +++ b/src/flow-bypass.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2016 Open Information Security Foundation +/* Copyright (C) 2016-2018 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free diff --git a/src/source-af-packet.c b/src/source-af-packet.c index a7710b46ff..f7ce87d3fa 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2011-2017 Open Information Security Foundation +/* Copyright (C) 2011-2018 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free