[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20171124202428.9236-1-stephen@networkplumber.org>
Date: Fri, 24 Nov 2017 12:24:28 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH iproute2] SPDX license identifiers
For all files in iproute2 which do not already have an obvious license
identification, mark them with GPL-2.
If any of the original authors want a more permissive license
than that, please let ms know.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
Makefile | 1 +
bridge/Makefile | 1 +
bridge/br_common.h | 2 ++
bridge/bridge.c | 1 +
bridge/fdb.c | 1 +
bridge/link.c | 1 +
bridge/mdb.c | 1 +
bridge/vlan.c | 1 +
configure | 1 +
devlink/Makefile | 1 +
examples/bpf/bpf_tailcall.c | 1 +
genl/Makefile | 1 +
genl/genl_utils.h | 1 +
genl/static-syms.c | 1 +
include/bpf_api.h | 1 +
include/bpf_elf.h | 1 +
include/bpf_scm.h | 1 +
include/color.h | 1 +
include/dlfcn.h | 1 +
include/ip6tables.h | 1 +
include/iptables.h | 1 +
include/iptables/internal.h | 1 +
include/libgenl.h | 1 +
include/libiptc/ipt_kernel_headers.h | 1 +
include/libiptc/libip6tc.h | 1 +
include/libiptc/libiptc.h | 1 +
include/libiptc/libxtc.h | 1 +
include/libiptc/xtcshared.h | 1 +
include/libnetlink.h | 1 +
include/list.h | 1 +
include/ll_map.h | 1 +
include/names.h | 1 +
include/namespace.h | 1 +
include/rt_names.h | 1 +
include/rtm_map.h | 1 +
include/utils.h | 1 +
include/xt-internal.h | 1 +
include/xtables.h | 1 +
ip/Makefile | 1 +
ip/ifcfg | 1 +
ip/ila_common.h | 1 +
ip/ip_common.h | 1 +
ip/iplink_dummy.c | 1 +
ip/iplink_ifb.c | 1 +
ip/iplink_nlmon.c | 1 +
ip/iplink_team.c | 1 +
ip/iplink_vcan.c | 1 +
ip/ipnetns.c | 1 +
ip/iproute_lwtunnel.h | 1 +
ip/routef | 1 +
ip/routel | 2 +-
ip/rtpr | 1 +
ip/static-syms.c | 1 +
ip/xdp.h | 1 +
lib/Makefile | 1 +
lib/color.c | 1 +
lib/dnet_ntop.c | 1 +
lib/dnet_pton.c | 1 +
lib/exec.c | 1 +
lib/ipx_ntop.c | 1 +
lib/ipx_pton.c | 1 +
lib/libgenl.c | 1 +
lib/mpls_ntop.c | 2 ++
lib/mpls_pton.c | 2 ++
man/Makefile | 1 +
man/man3/Makefile | 1 +
man/man7/Makefile | 1 +
man/man8/Makefile | 1 +
misc/Makefile | 1 +
misc/lnstat.h | 1 +
misc/ssfilter.h | 1 +
netem/Makefile | 1 +
rdma/Makefile | 1 +
tc/Makefile | 1 +
tc/emp_ematch.l | 1 +
tc/f_tcindex.c | 1 +
tc/m_ematch.h | 1 +
tc/q_atm.c | 1 +
tc/q_clsact.c | 1 +
tc/q_dsmark.c | 1 +
tc/q_hhf.c | 1 +
tc/static-syms.c | 1 +
tc/tc_cbq.h | 1 +
tc/tc_common.h | 1 +
tc/tc_core.h | 1 +
tc/tc_red.h | 1 +
tc/tc_util.h | 1 +
testsuite/Makefile | 1 +
testsuite/iproute2/Makefile | 1 +
testsuite/tools/Makefile | 1 +
tipc/Makefile | 1 +
91 files changed, 94 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 6ad961043052..6a51e0db9107 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
# Top level Makefile for iproute2
ifeq ($(VERBOSE),0)
diff --git a/bridge/Makefile b/bridge/Makefile
index b2ae0a4ed04d..c6b7d08dade4 100644
--- a/bridge/Makefile
+++ b/bridge/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
BROBJ = bridge.o fdb.o monitor.o link.o mdb.o vlan.o
include ../config.mk
diff --git a/bridge/br_common.h b/bridge/br_common.h
index 01447ddca337..f07c7d1c9090 100644
--- a/bridge/br_common.h
+++ b/bridge/br_common.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
#define MDB_RTA(r) \
((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry))))
diff --git a/bridge/bridge.c b/bridge/bridge.c
index 6658cb8fd801..48fe1c8b2ef1 100644
--- a/bridge/bridge.c
+++ b/bridge/bridge.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* Get/set/delete bridge with netlink
*
diff --git a/bridge/fdb.c b/bridge/fdb.c
index 1ab1fb716260..376713b64e23 100644
--- a/bridge/fdb.c
+++ b/bridge/fdb.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* Get/set/delete fdb table with netlink
*
diff --git a/bridge/link.c b/bridge/link.c
index 65ca47e14922..e2371d0dbc12 100644
--- a/bridge/link.c
+++ b/bridge/link.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/bridge/mdb.c b/bridge/mdb.c
index f38e326e457a..7b7b81f4692f 100644
--- a/bridge/mdb.c
+++ b/bridge/mdb.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* Get mdb table with netlink
*/
diff --git a/bridge/vlan.c b/bridge/vlan.c
index 0f78a9e8fe6d..69fb5425e2b5 100644
--- a/bridge/vlan.c
+++ b/bridge/vlan.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/configure b/configure
index f0668ab3f7e9..d6832464f563 100755
--- a/configure
+++ b/configure
@@ -1,4 +1,5 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
# This is not an autoconf generated configure
#
INCLUDE=${1:-"$PWD/include"}
diff --git a/devlink/Makefile b/devlink/Makefile
index 3b2067d6658c..3afda65e6635 100644
--- a/devlink/Makefile
+++ b/devlink/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
ifeq ($(HAVE_MNL),y)
diff --git a/examples/bpf/bpf_tailcall.c b/examples/bpf/bpf_tailcall.c
index 1a30426c3138..161eb6062569 100644
--- a/examples/bpf/bpf_tailcall.c
+++ b/examples/bpf/bpf_tailcall.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include "../../include/bpf_api.h"
#define ENTRY_INIT 3
diff --git a/genl/Makefile b/genl/Makefile
index de1635e498ad..2b7a45b60319 100644
--- a/genl/Makefile
+++ b/genl/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
GENLOBJ=genl.o
include ../config.mk
diff --git a/genl/genl_utils.h b/genl/genl_utils.h
index 85b518301f3c..6e6f44501aba 100644
--- a/genl/genl_utils.h
+++ b/genl/genl_utils.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TC_UTIL_H_
#define _TC_UTIL_H_ 1
diff --git a/genl/static-syms.c b/genl/static-syms.c
index 0bc80743a776..47c4092c9eaa 100644
--- a/genl/static-syms.c
+++ b/genl/static-syms.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* This file creates a dummy version of dynamic loading
* for environments where dynamic linking
diff --git a/include/bpf_api.h b/include/bpf_api.h
index d13247199c9a..89d3488d0741 100644
--- a/include/bpf_api.h
+++ b/include/bpf_api.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BPF_API__
#define __BPF_API__
diff --git a/include/bpf_elf.h b/include/bpf_elf.h
index 406c30874ac3..a8e360f3bbb2 100644
--- a/include/bpf_elf.h
+++ b/include/bpf_elf.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BPF_ELF__
#define __BPF_ELF__
diff --git a/include/bpf_scm.h b/include/bpf_scm.h
index 122d59fc43b9..669f053855fd 100644
--- a/include/bpf_scm.h
+++ b/include/bpf_scm.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BPF_SCM__
#define __BPF_SCM__
diff --git a/include/color.h b/include/color.h
index 7fd685d0dcf8..f6c351b77746 100644
--- a/include/color.h
+++ b/include/color.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __COLOR_H__
#define __COLOR_H__ 1
diff --git a/include/dlfcn.h b/include/dlfcn.h
index f15bc2c773a6..1d8890adff6a 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* Stub dlfcn implementation for systems that lack shared library support
* but obviously can still reference compiled-in symbols.
diff --git a/include/ip6tables.h b/include/ip6tables.h
index 5f1c5b65e8c4..bfb286826af5 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _IP6TABLES_USER_H
#define _IP6TABLES_USER_H
diff --git a/include/iptables.h b/include/iptables.h
index 78c10abd7b6e..78bc378e6f39 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _IPTABLES_USER_H
#define _IPTABLES_USER_H
diff --git a/include/iptables/internal.h b/include/iptables/internal.h
index 62a8ecb99ab4..1fd137250031 100644
--- a/include/iptables/internal.h
+++ b/include/iptables/internal.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef IPTABLES_INTERNAL_H
#define IPTABLES_INTERNAL_H 1
diff --git a/include/libgenl.h b/include/libgenl.h
index 2dbb4b36adcb..cd13f476116e 100644
--- a/include/libgenl.h
+++ b/include/libgenl.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LIBGENL_H__
#define __LIBGENL_H__
diff --git a/include/libiptc/ipt_kernel_headers.h b/include/libiptc/ipt_kernel_headers.h
index a5963e9441fc..3d2a2a3277e9 100644
--- a/include/libiptc/ipt_kernel_headers.h
+++ b/include/libiptc/ipt_kernel_headers.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/* This is the userspace/kernel interface for Generic IP Chains,
required for libc6. */
#ifndef _FWCHAINS_KERNEL_HEADERS_H
diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h
index 9aed80a02e52..cd588de7a96d 100644
--- a/include/libiptc/libip6tc.h
+++ b/include/libiptc/libip6tc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBIP6TC_H
#define _LIBIP6TC_H
/* Library which manipulates firewall rules. Version 0.2. */
diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h
index 24cdbdb79fdd..1bfe4e18e73e 100644
--- a/include/libiptc/libiptc.h
+++ b/include/libiptc/libiptc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBIPTC_H
#define _LIBIPTC_H
/* Library which manipulates filtering rules. */
diff --git a/include/libiptc/libxtc.h b/include/libiptc/libxtc.h
index 37010188b64f..1e9596a6e01c 100644
--- a/include/libiptc/libxtc.h
+++ b/include/libiptc/libxtc.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBXTC_H
#define _LIBXTC_H
/* Library which manipulates filtering rules. */
diff --git a/include/libiptc/xtcshared.h b/include/libiptc/xtcshared.h
index 773ebc4c77e2..278a58f4eb9f 100644
--- a/include/libiptc/xtcshared.h
+++ b/include/libiptc/xtcshared.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LIBXTC_SHARED_H
#define _LIBXTC_SHARED_H 1
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 77b62605a76c..a4d83b9ea69b 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LIBNETLINK_H__
#define __LIBNETLINK_H__ 1
diff --git a/include/list.h b/include/list.h
index 5b529dc6e521..5af737c71b0f 100644
--- a/include/list.h
+++ b/include/list.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LIST_H__
#define __LIST_H__ 1
/* List and hash list stuff from kernel */
diff --git a/include/ll_map.h b/include/ll_map.h
index 949bfc3e16f5..c8474e6eb542 100644
--- a/include/ll_map.h
+++ b/include/ll_map.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LL_MAP_H__
#define __LL_MAP_H__ 1
diff --git a/include/names.h b/include/names.h
index 6fed58182842..3e5d3b146a23 100644
--- a/include/names.h
+++ b/include/names.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef DB_NAMES_H_
#define DB_NAMES_H_ 1
diff --git a/include/namespace.h b/include/namespace.h
index 51324b21ba0c..aed7ce08507f 100644
--- a/include/namespace.h
+++ b/include/namespace.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __NAMESPACE_H__
#define __NAMESPACE_H__ 1
diff --git a/include/rt_names.h b/include/rt_names.h
index 921be0607b51..62ebbd6a38d0 100644
--- a/include/rt_names.h
+++ b/include/rt_names.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef RT_NAMES_H_
#define RT_NAMES_H_ 1
diff --git a/include/rtm_map.h b/include/rtm_map.h
index d6e5885c894f..f85e52c4bb3a 100644
--- a/include/rtm_map.h
+++ b/include/rtm_map.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __RTM_MAP_H__
#define __RTM_MAP_H__ 1
diff --git a/include/utils.h b/include/utils.h
index 9c37c613dce2..d3895d562726 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __UTILS_H__
#define __UTILS_H__ 1
diff --git a/include/xt-internal.h b/include/xt-internal.h
index b8ea67daf988..89c73e4feb03 100644
--- a/include/xt-internal.h
+++ b/include/xt-internal.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _XTABLES_INTERNAL_H
#define _XTABLES_INTERNAL_H 1
diff --git a/include/xtables.h b/include/xtables.h
index 978ae0d150f5..b48c3166017c 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _XTABLES_H
#define _XTABLES_H
diff --git a/ip/Makefile b/ip/Makefile
index 5a1c7ad2d264..a653c1bdd967 100644
--- a/ip/Makefile
+++ b/ip/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o iptuntap.o iptoken.o \
diff --git a/ip/ifcfg b/ip/ifcfg
index 30a2dc49816c..851b9215ab63 100644
--- a/ip/ifcfg
+++ b/ip/ifcfg
@@ -1,4 +1,5 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
CheckForwarding () {
local sbase fwd
diff --git a/ip/ila_common.h b/ip/ila_common.h
index 04c6c2ed8408..f99c267223d9 100644
--- a/ip/ila_common.h
+++ b/ip/ila_common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ILA_COMMON_H_
#define _ILA_COMMON_H_
diff --git a/ip/ip_common.h b/ip/ip_common.h
index 4b8b0a71b878..3203f0cd5b52 100644
--- a/ip/ip_common.h
+++ b/ip/ip_common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _IP_COMMON_H_
#define _IP_COMMON_H_
diff --git a/ip/iplink_dummy.c b/ip/iplink_dummy.c
index cf78ea5bca92..cba229552068 100644
--- a/ip/iplink_dummy.c
+++ b/ip/iplink_dummy.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/iplink_ifb.c b/ip/iplink_ifb.c
index d7dc8f987d12..a2a7301f7c7b 100644
--- a/ip/iplink_ifb.c
+++ b/ip/iplink_ifb.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/iplink_nlmon.c b/ip/iplink_nlmon.c
index 51d5919a75d3..6ffb91012f51 100644
--- a/ip/iplink_nlmon.c
+++ b/ip/iplink_nlmon.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/iplink_team.c b/ip/iplink_team.c
index 6225268dda2d..58f955a478ac 100644
--- a/ip/iplink_team.c
+++ b/ip/iplink_team.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/iplink_vcan.c b/ip/iplink_vcan.c
index b7ae15f072a4..74a1505b28b2 100644
--- a/ip/iplink_vcan.c
+++ b/ip/iplink_vcan.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/ipnetns.c b/ip/ipnetns.c
index 1fa539863132..059a4220e40e 100644
--- a/ip/ipnetns.c
+++ b/ip/ipnetns.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#define _ATFILE_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/ip/iproute_lwtunnel.h b/ip/iproute_lwtunnel.h
index b82b58ad3486..be003cea7b26 100644
--- a/ip/iproute_lwtunnel.h
+++ b/ip/iproute_lwtunnel.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LWTUNNEL_H__
#define __LETUNNEL_H__ 1
diff --git a/ip/routef b/ip/routef
index d266e2d9725f..c251e7b87efd 100644
--- a/ip/routef
+++ b/ip/routef
@@ -1,4 +1,5 @@
#! /bin/sh
+# SPDX-License-Identifier: GPL-2.0
if [ -z "$*" ] ; then
exec ip -4 ro flush scope global type unicast
diff --git a/ip/routel b/ip/routel
index 9a30462aa6b2..7056886d0f94 100644
--- a/ip/routel
+++ b/ip/routel
@@ -1,5 +1,5 @@
#!/bin/sh
-#$Id$
+# SPDX-License-Identifier: GPL-2.0
#
# Script created by: Stephen R. van den Berg <srb@...i.nl>, 1999/04/18
diff --git a/ip/rtpr b/ip/rtpr
index c3629fd60a0e..192a476f817e 100644
--- a/ip/rtpr
+++ b/ip/rtpr
@@ -1,4 +1,5 @@
#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
exec tr "[\\\\]" "[
]"
diff --git a/ip/static-syms.c b/ip/static-syms.c
index 0bc80743a776..47c4092c9eaa 100644
--- a/ip/static-syms.c
+++ b/ip/static-syms.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* This file creates a dummy version of dynamic loading
* for environments where dynamic linking
diff --git a/ip/xdp.h b/ip/xdp.h
index 1efd591b087c..215a6dcb9e90 100644
--- a/ip/xdp.h
+++ b/ip/xdp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __XDP__
#define __XDP__
diff --git a/lib/Makefile b/lib/Makefile
index 0fbdf4c31f50..7b34ed5f8a48 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
CFLAGS += -fPIC
diff --git a/lib/color.c b/lib/color.c
index 8d049a01ec0e..a13a4930b10c 100644
--- a/lib/color.c
+++ b/lib/color.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
diff --git a/lib/dnet_ntop.c b/lib/dnet_ntop.c
index 112dc0d90591..17d960e30881 100644
--- a/lib/dnet_ntop.c
+++ b/lib/dnet_ntop.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <errno.h>
#include <string.h>
#include <sys/types.h>
diff --git a/lib/dnet_pton.c b/lib/dnet_pton.c
index 73857562be02..1cf54e51868d 100644
--- a/lib/dnet_pton.c
+++ b/lib/dnet_pton.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <errno.h>
#include <string.h>
#include <sys/types.h>
diff --git a/lib/exec.c b/lib/exec.c
index 97c991202aea..eb36b59dee7f 100644
--- a/lib/exec.c
+++ b/lib/exec.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <sys/wait.h>
#include <stdio.h>
#include <errno.h>
diff --git a/lib/ipx_ntop.c b/lib/ipx_ntop.c
index 5f646b3e0ec4..80b8a34e1a70 100644
--- a/lib/ipx_ntop.c
+++ b/lib/ipx_ntop.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/lib/ipx_pton.c b/lib/ipx_pton.c
index 071a775e7437..a97c1c1bc7bf 100644
--- a/lib/ipx_pton.c
+++ b/lib/ipx_pton.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <errno.h>
#include <string.h>
#include <sys/types.h>
diff --git a/lib/libgenl.c b/lib/libgenl.c
index bb5fbb5f518d..f2ce698fc711 100644
--- a/lib/libgenl.c
+++ b/lib/libgenl.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* libgenl.c GENL library
*/
diff --git a/lib/mpls_ntop.c b/lib/mpls_ntop.c
index 5902f5037b13..f8d89f421ecb 100644
--- a/lib/mpls_ntop.c
+++ b/lib/mpls_ntop.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
#include <errno.h>
#include <string.h>
#include <sys/types.h>
diff --git a/lib/mpls_pton.c b/lib/mpls_pton.c
index 6d2e6a69436a..065374eb11bf 100644
--- a/lib/mpls_pton.c
+++ b/lib/mpls_pton.c
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
#include <errno.h>
#include <string.h>
#include <sys/types.h>
diff --git a/man/Makefile b/man/Makefile
index 749faa11ef4a..6b095ee46647 100644
--- a/man/Makefile
+++ b/man/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
INSTALL=install
INSTALLDIR=install -m 0755 -d
INSTALLMAN=install -m 0644
diff --git a/man/man3/Makefile b/man/man3/Makefile
index a98741de2926..e3d3e60782ca 100644
--- a/man/man3/Makefile
+++ b/man/man3/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
MAN3PAGES = $(wildcard *.3)
all:
diff --git a/man/man7/Makefile b/man/man7/Makefile
index 689fc713b672..1a8d521914cc 100644
--- a/man/man7/Makefile
+++ b/man/man7/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
MAN7PAGES = $(wildcard *.7)
all:
diff --git a/man/man8/Makefile b/man/man8/Makefile
index 12af66be4bc7..932ba1f3c488 100644
--- a/man/man8/Makefile
+++ b/man/man8/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
TARGETS = ip-address.8 ip-link.8 ip-route.8
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
diff --git a/misc/Makefile b/misc/Makefile
index d02616e3482a..34ef6b21b4ed 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
SSOBJ=ss.o ssfilter.o
LNSTATOBJ=lnstat.o lnstat_util.o
diff --git a/misc/lnstat.h b/misc/lnstat.h
index 83dad9703b92..199eb54ab288 100644
--- a/misc/lnstat.h
+++ b/misc/lnstat.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LNSTAT_H
#define _LNSTAT_H
diff --git a/misc/ssfilter.h b/misc/ssfilter.h
index dfc5b938cdfc..f5b0bc8a16e7 100644
--- a/misc/ssfilter.h
+++ b/misc/ssfilter.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#define SSF_DCOND 0
#define SSF_SCOND 1
#define SSF_OR 2
diff --git a/netem/Makefile b/netem/Makefile
index 434185273f64..ba4c5a76baab 100644
--- a/netem/Makefile
+++ b/netem/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
DISTGEN = maketable normal pareto paretonormal
diff --git a/rdma/Makefile b/rdma/Makefile
index 1b5aa50b2cb8..c8966bfda9f8 100644
--- a/rdma/Makefile
+++ b/rdma/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
ifeq ($(HAVE_MNL),y)
diff --git a/tc/Makefile b/tc/Makefile
index 24bd3e2eda79..3716dd6a28de 100644
--- a/tc/Makefile
+++ b/tc/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
TCOBJ= tc.o tc_qdisc.o tc_class.o tc_filter.o tc_util.o tc_monitor.o \
tc_exec.o m_police.o m_estimator.o m_action.o m_ematch.o \
emp_ematch.yacc.o emp_ematch.lex.o
diff --git a/tc/emp_ematch.l b/tc/emp_ematch.l
index d9b45be12055..dc1067591a96 100644
--- a/tc/emp_ematch.l
+++ b/tc/emp_ematch.l
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
%{
#include "emp_ematch.yacc.h"
#include "m_ematch.h"
diff --git a/tc/f_tcindex.c b/tc/f_tcindex.c
index 4cd7859fcb1d..749273dbd9ab 100644
--- a/tc/f_tcindex.c
+++ b/tc/f_tcindex.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* f_tcindex.c Traffic control index filter
*
diff --git a/tc/m_ematch.h b/tc/m_ematch.h
index 81456aac3d5a..fa6e214a44c6 100644
--- a/tc/m_ematch.h
+++ b/tc/m_ematch.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __TC_EMATCH_H_
#define __TC_EMATCH_H_
diff --git a/tc/q_atm.c b/tc/q_atm.c
index 783a578c308a..3ea4cf4eb986 100644
--- a/tc/q_atm.c
+++ b/tc/q_atm.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* q_atm.c ATM.
*
diff --git a/tc/q_clsact.c b/tc/q_clsact.c
index 5e8dd91cb374..341f653f60b1 100644
--- a/tc/q_clsact.c
+++ b/tc/q_clsact.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <string.h>
diff --git a/tc/q_dsmark.c b/tc/q_dsmark.c
index 65eeb271588b..967fd8921415 100644
--- a/tc/q_dsmark.c
+++ b/tc/q_dsmark.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* q_dsmark.c Differentiated Services field marking.
*
diff --git a/tc/q_hhf.c b/tc/q_hhf.c
index 2ec3d42f0429..66c718866354 100644
--- a/tc/q_hhf.c
+++ b/tc/q_hhf.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/* q_hhf.c Heavy-Hitter Filter (HHF)
*
* Copyright (C) 2013 Terry Lam <vtlam@...gle.com>
diff --git a/tc/static-syms.c b/tc/static-syms.c
index 0bc80743a776..47c4092c9eaa 100644
--- a/tc/static-syms.c
+++ b/tc/static-syms.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* This file creates a dummy version of dynamic loading
* for environments where dynamic linking
diff --git a/tc/tc_cbq.h b/tc/tc_cbq.h
index 8f956490dd30..fa17d249a1cc 100644
--- a/tc/tc_cbq.h
+++ b/tc/tc_cbq.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TC_CBQ_H_
#define _TC_CBQ_H_ 1
diff --git a/tc/tc_common.h b/tc/tc_common.h
index a2f389845fee..264fbdac0288 100644
--- a/tc/tc_common.h
+++ b/tc/tc_common.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#define TCA_BUF_MAX (64*1024)
diff --git a/tc/tc_core.h b/tc/tc_core.h
index 8a63b79c147f..1dfa9a4f773b 100644
--- a/tc/tc_core.h
+++ b/tc/tc_core.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TC_CORE_H_
#define _TC_CORE_H_ 1
diff --git a/tc/tc_red.h b/tc/tc_red.h
index 6f6b09e3e05e..88fba58b7416 100644
--- a/tc/tc_red.h
+++ b/tc/tc_red.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TC_RED_H_
#define _TC_RED_H_ 1
diff --git a/tc/tc_util.h b/tc/tc_util.h
index eae1091329b8..40a8865d6e35 100644
--- a/tc/tc_util.h
+++ b/tc/tc_util.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TC_UTIL_H_
#define _TC_UTIL_H_ 1
diff --git a/testsuite/Makefile b/testsuite/Makefile
index 055136b52683..2a54e5c845e6 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
## -- Config --
DEV := lo
PREFIX := sudo -E unshare -n
diff --git a/testsuite/iproute2/Makefile b/testsuite/iproute2/Makefile
index ba128aa78d5f..b8a7d5153175 100644
--- a/testsuite/iproute2/Makefile
+++ b/testsuite/iproute2/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
SUBDIRS := $(filter-out Makefile,$(wildcard *))
.PHONY: all configure clean distclean show $(SUBDIRS)
diff --git a/testsuite/tools/Makefile b/testsuite/tools/Makefile
index 9581de51fd35..f2cdc9803939 100644
--- a/testsuite/tools/Makefile
+++ b/testsuite/tools/Makefile
@@ -1,2 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
$(CC) -o $@ $^
diff --git a/tipc/Makefile b/tipc/Makefile
index d3c957e230a4..abd33ab073e8 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
ifeq ($(HAVE_MNL),y)
--
2.11.0
Powered by blists - more mailing lists