Use SPDX License Identifiers in headers
Phil Sutter
reviewerPATCH 1/1 Use SPDX License Identifiers in headers
Replace the copyright notice in header comments by an equivalent SPDX-License-Identifier string. Drop a following empty line if at the bottom of the comment. Leave any other header comment content in place.
This also fixes for an incomplete notice in examples/nft-ruleset-get.c since commit c335442eefcca ("src: incorrect header refers to GPLv2 only").
--- examples/nft-chain-add.c | 5 +---- examples/nft-chain-del.c | 5 +---- examples/nft-chain-get.c | 5 +---- examples/nft-compat-get.c | 5 +---- examples/nft-ct-expectation-add.c | 5 +---- examples/nft-ct-expectation-del.c | 5 +---- examples/nft-ct-expectation-get.c | 5 +---- examples/nft-ct-helper-add.c | 5 +---- examples/nft-ct-helper-del.c | 5 +---- examples/nft-ct-helper-get.c | 5 +---- examples/nft-ct-timeout-add.c | 5 +---- examples/nft-ct-timeout-del.c | 5 +---- examples/nft-ct-timeout-get.c | 5 +---- examples/nft-events.c | 5 +---- examples/nft-map-add.c | 5 +---- examples/nft-obj-add.c | 5 +---- examples/nft-obj-del.c | 5 +---- examples/nft-obj-get.c | 5 +---- examples/nft-rule-add.c | 5 +---- examples/nft-rule-ct-expectation-add.c | 5 +---- examples/nft-rule-ct-helper-add.c | 5 +---- examples/nft-rule-ct-timeout-add.c | 5 +---- examples/nft-rule-del.c | 5 +---- examples/nft-rule-get.c | 5 +---- examples/nft-ruleset-get.c | 5 +---- examples/nft-set-add.c | 5 +---- examples/nft-set-del.c | 5 +---- examples/nft-set-elem-add.c | 5 +---- examples/nft-set-elem-del.c | 5 +---- examples/nft-set-elem-get.c | 5 +---- examples/nft-set-get.c | 5 +---- examples/nft-table-add.c | 5 +---- examples/nft-table-del.c | 5 +---- examples/nft-table-get.c | 5 +---- examples/nft-table-upd.c | 5 +---- src/batch.c | 5 +---- src/chain.c | 5 +---- src/common.c | 5 +---- src/expr.c | 5 +---- src/expr/bitwise.c | 5 +---- src/expr/byteorder.c | 5 +---- src/expr/cmp.c | 5 +---- src/expr/connlimit.c | 5 +---- src/expr/counter.c | 5 +---- src/expr/ct.c | 5 +---- src/expr/data_reg.c | 5 +---- src/expr/dup.c | 5 +---- src/expr/dynset.c | 5 +---- src/expr/exthdr.c | 5 +---- src/expr/fib.c | 5 +---- src/expr/fwd.c | 5 +---- src/expr/hash.c | 6 +----- src/expr/immediate.c | 5 +---- src/expr/inner.c | 5 +---- src/expr/last.c | 5 +---- src/expr/limit.c | 5 +---- src/expr/log.c | 5 +---- src/expr/lookup.c | 5 +---- src/expr/masq.c | 5 +---- src/expr/match.c | 5 +---- src/expr/meta.c | 5 +---- src/expr/nat.c | 5 +---- src/expr/numgen.c | 6 +----- src/expr/objref.c | 5 +---- src/expr/payload.c | 5 +---- src/expr/queue.c | 6 +----- src/expr/quota.c | 5 +---- src/expr/range.c | 5 +---- src/expr/redir.c | 5 +---- src/expr/reject.c | 5 +---- src/expr/rt.c | 5 +---- src/expr/socket.c | 5 +---- src/expr/target.c | 5 +---- src/expr/tproxy.c | 5 +---- src/expr/tunnel.c | 5 +---- src/expr/xfrm.c | 5 +---- src/gen.c | 5 +---- src/obj/counter.c | 5 +---- src/obj/ct_expect.c | 5 +---- src/obj/ct_helper.c | 5 +---- src/obj/ct_timeout.c | 5 +---- src/obj/limit.c | 5 +---- src/obj/quota.c | 5 +---- src/obj/secmark.c | 5 +---- src/obj/tunnel.c | 5 +---- src/object.c | 5 +---- src/rule.c | 5 +---- src/ruleset.c | 5 +---- src/set.c | 5 +---- src/set_elem.c | 5 +---- src/table.c | 5 +---- src/trace.c | 5 +---- src/udata.c | 5 +---- src/utils.c | 5 +---- tests/nft-chain-test.c | 6 +----- tests/nft-expr_bitwise-test.c | 5 +---- tests/nft-expr_byteorder-test.c | 6 +----- tests/nft-expr_cmp-test.c | 6 +----- tests/nft-expr_counter-test.c | 6 +----- tests/nft-expr_ct-test.c | 6 +----- tests/nft-expr_dup-test.c | 6 +----- tests/nft-expr_exthdr-test.c | 6 +----- tests/nft-expr_fwd-test.c | 6 +----- tests/nft-expr_hash-test.c | 6 +----- tests/nft-expr_immediate-test.c | 6 +----- tests/nft-expr_limit-test.c | 6 +----- tests/nft-expr_log-test.c | 6 +----- tests/nft-expr_lookup-test.c | 6 +----- tests/nft-expr_masq-test.c | 6 +----- tests/nft-expr_match-test.c | 6 +----- tests/nft-expr_meta-test.c | 6 +----- tests/nft-expr_nat-test.c | 6 +----- tests/nft-expr_numgen-test.c | 6 +----- tests/nft-expr_objref-test.c | 6 +----- tests/nft-expr_payload-test.c | 6 +----- tests/nft-expr_queue-test.c | 6 +----- tests/nft-expr_quota-test.c | 6 +----- tests/nft-expr_range-test.c | 6 +----- tests/nft-expr_redir-test.c | 6 +----- tests/nft-expr_reject-test.c | 6 +----- tests/nft-expr_target-test.c | 6 +----- tests/nft-object-test.c | 6 +----- tests/nft-rule-test.c | 6 +----- tests/nft-set-test.c | 6 +----- tests/nft-table-test.c | 6 +----- 125 files changed, 125 insertions(+), 533 deletions(-)
examples/nft-chain-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-chain-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-chain-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-compat-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-ct-expectation-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2019 by Stéphane Veyret <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <time.h>
examples/nft-ct-expectation-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2019 by Stéphane Veyret <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-ct-expectation-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2019 by Stéphane Veyret <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-ct-helper-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-ct-helper-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-ct-helper-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-ct-timeout-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-ct-timeout-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-ct-timeout-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-events.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-map-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-obj-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-obj-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-obj-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-rule-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-rule-ct-expectation-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2019 by Stéphane Veyret <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-rule-ct-helper-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-rule-ct-timeout-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-rule-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-rule-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-ruleset-get.c +1 -4
@@ -5,10 +5,7 @@* * Copyright (c) 2013 Pablo Neira Ayuso <[email protected]> * -* it under the terms of the GNU General Public License as published -* by the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
examples/nft-set-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-set-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-set-elem-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-set-elem-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-set-elem-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-set-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-table-add.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-table-del.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-table-get.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
examples/nft-table-upd.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/batch.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2013-2015 Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/chain.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/common.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdlib.h>
src/expr.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/bitwise.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/byteorder.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/cmp.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/connlimit.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2018 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/counter.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/ct.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/data_reg.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/dup.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2015 Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/dynset.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2014, 2015 Patrick McHardy <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/expr/exthdr.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/fib.c +1 -4
@@ -2,10 +2,7 @@* (C) 2016 Red Hat GmbH * Author: Florian Westphal <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/fwd.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2015 Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/hash.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2016 by Laura Garcia <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/immediate.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/inner.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2022 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/expr/last.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/limit.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/log.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/lookup.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/masq.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2014 by Arturo Borrero Gonzalez <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/match.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/meta.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/nat.c +1 -4
@@ -2,10 +2,7 @@* (C) 2012-2014 Pablo Neira Ayuso <[email protected]> * (C) 2012 Intel Corporation * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * Authors: * Tomasz Bursztyka <[email protected]>
src/expr/numgen.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2016 by Laura Garcia <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/objref.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/payload.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/queue.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Eric Leblond <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/quota.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/range.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/expr/redir.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2014 by Arturo Borrero Gonzalez <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/reject.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/rt.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2016 Anders K. Pedersen <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/socket.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2018 Máté Eckl <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/target.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/expr/tproxy.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2018 Máté Eckl <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/expr/tunnel.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2018 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/expr/xfrm.c +1 -4
@@ -1,8 +1,5 @@/* -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/gen.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2014 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/obj/counter.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/ct_expect.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2019 by Stéphane Veyret <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <arpa/inet.h>
src/obj/ct_helper.c +1 -4
@@ -2,10 +2,7 @@* (C) 2017 Red Hat GmbH * Author: Florian Westphal <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/ct_timeout.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2018 by Harsha Sharma <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/limit.c +1 -4
@@ -1,10 +1,7 @@/* * Copyright (c) 2017 Pablo M. Bermudo Garay <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/quota.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/secmark.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/obj/tunnel.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2018 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
src/object.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/rule.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/ruleset.c +1 -4
@@ -3,10 +3,7 @@* (C) 2013 by Arturo Borrero Gonzalez <[email protected]> * (C) 2013 by Alvaro Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/set.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/set_elem.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/table.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This code has been sponsored by Sophos Astaro <http://www.sophos.com> */
src/trace.c +1 -4
@@ -2,10 +2,7 @@* (C) 2015 Red Hat GmbH * Author: Florian Westphal <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include "internal.h"
src/udata.c +1 -4
@@ -2,10 +2,7 @@* (C) 2012-2016 by Pablo Neira Ayuso <[email protected]> * (C) 2016 by Carlos Falgueras García <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <libnftnl/udata.h>
src/utils.c +1 -4
@@ -2,10 +2,7 @@* (C) 2012-2013 by Pablo Neira Ayuso <[email protected]> * (C) 2013 by Arturo Borrero Gonzalez <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <internal.h>
tests/nft-chain-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_bitwise-test.c +1 -4
@@ -1,10 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * */
tests/nft-expr_byteorder-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_cmp-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_counter-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_ct-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_dup-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_exthdr-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_fwd-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_hash-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2016 by Laura Garcia <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_immediate-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_limit-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_log-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_lookup-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_masq-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_match-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_meta-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_nat-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_numgen-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2016 by Laura Garcia <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_objref-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_payload-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_queue-test.c +1 -5
@@ -3,11 +3,7 @@* * Based on test framework by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_quota-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2016 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_range-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_redir-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_reject-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-expr_target-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-object-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-rule-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-set-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
tests/nft-table-test.c +1 -5
@@ -1,11 +1,7 @@/* * (C) 2013 by Ana Rey Botello <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. -* +* SPDX-License-Identifier: GPL-2.0-or-later */ #include <stdio.h>
Signature · 1 line
2.47.0
Pablo Neira Ayuso
maintainerexamples/nft-chain-add.c
Quoted 5 lines · Phil Sutter
examples/nft-chain-add.c +0
-0@@ -1,10 +1,7 @@
Maybe more intuitive to place
+/* SPDX-License-Identifier: GPL-2.0-or-later */
in the first line of this file? This is what was done in iproute2.
Quoted 11 lines
examples/nft-chain-add.c +1
-4/* * (C) 2012 by Pablo Neira Ayuso <[email protected]> * -* 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 2 of the License, or -* (at your option) any later version. +* SPDX-License-Identifier: GPL-2.0-or-later * * This software has been sponsored by Sophos Astaro <http://www.sophos.com> */
Phil Sutter
reviewerQuoted 9 lines · Pablo Neira Ayuso
examples/nft-chain-add.c
Quoted 5 lines · Phil Sutter
examples/nft-chain-add.c +0
-0@@ -1,10 +1,7 @@Maybe more intuitive to place
Quoted 3 lines
+/* SPDX-License-Identifier: GPL-2.0-or-later */
in the first line of this file? This is what was done in iproute2.
Fine with me! I just semi-automatically replaced the license text block by this specifier and didn't care about its position. A quick check of how things are done in linux.git shows it's not entirely consistent
there: When Thomas Gleixner did an equivalent to my patch in commit 0fdebc5ec2ca ("treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1)"), he used double-slash comments, while Greg Kroah-Hartman chose to use multi-line comments in commit b24413180f56 ("License cleanup: add SPDX GPL-2.0 license identifier to files with no license"). Is this random or am I missing a detail?
BTW: Jan suggested to also (introd)use SPDX-FileCopyrightText label, but spdx.dev explicitly states: "Therefore, you should not remove or modify existing copyright notices in files when adding an SPDX ID."[1] What's your opinion about it?
Thanks, Phil
Pablo Neira Ayuso
maintainerQuoted 14 lines · Phil Sutter
Quoted 9 lines · Pablo Neira Ayuso
examples/nft-chain-add.c
Quoted 5 lines · Phil Sutter
examples/nft-chain-add.c +0
-0@@ -1,10 +1,7 @@Maybe more intuitive to place
Quoted 3 lines
+/* SPDX-License-Identifier: GPL-2.0-or-later */
in the first line of this file? This is what was done in iproute2.
Quoted 9 lines
Fine with me! I just semi-automatically replaced the license text block by this specifier and didn't care about its position. A quick check of how things are done in linux.git shows it's not entirely consistent
there: When Thomas Gleixner did an equivalent to my patch in commit0fdebc5ec2ca("treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1)"), he used double-slash comments, while Greg Kroah-Hartman chose to use multi-line comments in commitb24413180f56("License cleanup: add SPDX GPL-2.0 license identifier to files with no license"). Is this random or am I missing a detail?
What I learnt in my crash course about license compliance is that this SPDX stuff is for robots that parse source code. I suspect placing this in the first line saves time parsing files for them.
For a human standpoint, to quickly look at the first line of each file via script, then ... head -1 $file | sort | uniq -c.
Quoted 4 lines
BTW: Jan suggested to also (introd)use SPDX-FileCopyrightText label, but spdx.dev explicitly states: "Therefore, you should not remove or modify existing copyright notices in files when adding an SPDX ID."[1] What's your opinion about it?
No idea, I hate legal stuff, really. I saw a room full of people taking about SPDX.
Being pragmatic, I would do what I see people do around with this, and they are just turning license text into SPDX license labels.
And getting back to the original topic, we only have to agree where to place the SPDX license line for libnftnl. I don't have a strong opinion on this, if you like your approach, that is fine by me.
Phil Sutter
reviewerQuoted 25 lines · Pablo Neira Ayuso
Quoted 14 lines · Phil Sutter
Quoted 9 lines · Pablo Neira Ayuso
examples/nft-chain-add.c
Quoted 5 lines · Phil Sutter
examples/nft-chain-add.c +0
-0@@ -1,10 +1,7 @@Maybe more intuitive to place
Quoted 3 lines
+/* SPDX-License-Identifier: GPL-2.0-or-later */
in the first line of this file? This is what was done in iproute2.
Quoted 9 lines
Fine with me! I just semi-automatically replaced the license text block by this specifier and didn't care about its position. A quick check of how things are done in linux.git shows it's not entirely consistent
there: When Thomas Gleixner did an equivalent to my patch in commit0fdebc5ec2ca("treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1)"), he used double-slash comments, while Greg Kroah-Hartman chose to use multi-line comments in commitb24413180f56("License cleanup: add SPDX GPL-2.0 license identifier to files with no license"). Is this random or am I missing a detail?
Quoted 3 lines
What I learnt in my crash course about license compliance is that this SPDX stuff is for robots that parse source code. I suspect placing this in the first line saves time parsing files for them.
Sounds reasonable. I was merely wondering about the different comment styles, but I guess it won't matter since any robot has to expect both styles anyway.
Quoted 2 lines
For a human standpoint, to quickly look at the first line of each file via script, then ... head -1 $file | sort | uniq -c.
Speaking of each file, do we care about libnftnl's header files?
Quoted 7 lines
Quoted 4 lines
BTW: Jan suggested to also (introd)use SPDX-FileCopyrightText label, but spdx.dev explicitly states: "Therefore, you should not remove or modify existing copyright notices in files when adding an SPDX ID."[1] What's your opinion about it?
No idea, I hate legal stuff, really. I saw a room full of people taking about SPDX.
"I have seen things you people wouldn't believe ..." :D
Quoted 2 lines
Being pragmatic, I would do what I see people do around with this, and they are just turning license text into SPDX license labels.
ACK.
Quoted 3 lines
And getting back to the original topic, we only have to agree where to place the SPDX license line for libnftnl. I don't have a strong opinion on this, if you like your approach, that is fine by me.
Line 1 is fine with me! I'll submit a v2.
Thanks, Phil
Quoted 5 lines · Phil Sutter
Quoted 5 lines
Maybe more intuitive to place
+/* SPDX-License-Identifier: GPL-2.0-or-later */
Quoted 7 lines
Quoted 1 line
in the first line of this file? This is what was done in iproute2.
Fine with me! [...]
When Thomas Gleixner did an equivalent to my patch in commit0fdebc5ec2ca("treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1)"), he used double-slash comments, while Greg Kroah-Hartman chose to use multi-line comments in commitb24413180f56
Where the language offers multiple ways to start comments, parsers must recognize all of them, because humans sure aren't going to change all of their source just for the sake of some puny tool.
Quoted 4 lines
BTW: Jan suggested to also (introd)use SPDX-FileCopyrightText label, but spdx.dev explicitly states: "Therefore, you should not remove or modify existing copyright notices in files when adding an SPDX ID."[1] What's your opinion about it?
IMO, SPDX markup is popular _because_ everyone took it as a liberty to modify copyright notices — for some interpretation of "modify". The particular interpretation/justification is that boilerplate reduction counts as (re-)formatting rather than a conceptual modification of the owner/year/terms.
Anyway, the Linux kernel source was already mass-transformed. LinuxFoundation lawyers surely have an eye on such things (not least because of a recent lawyer-induced patch from Greg KH that drew drama *ahem*).
In summary: What's good for the main kernel can't be bad for libnftnl.
With the "modify" aspect discussed out of the way,
Quoted 3 lines
spdx.dev explicitly states: "Therefore, you should not remove or modify existing copyright notices in files when adding an SPDX ID."[1] What's your opinion about it?
The https://spdx.dev/learn/handling-license-info/ page introduces the "SPDX-License-Identifier" tag, or "SPDX ID" for short. SPDX-L-I only conveys terms.
It is my personal opinion that SPDX-License-Identifier and SPDX-FileCopyrightText[2] *together* can replace the usual copyright notices encountered, pursuant to my observation of the mass transformation (see above).
[2] https://spdx.github.io/spdx-spec/v2.3/file-tags/
/* My opinions are not legal advice. */