summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2017-11-24 12:21:35 -0800
committerStephen Hemminger <stephen@networkplumber.org>2017-11-24 12:21:35 -0800
commit6054c1ebf7727123654f2c0764f3693813e9bad6 (patch)
treecdeae4036382ff1c21202bdeb1dac3aa9416b22b
parent859af0a5dca7ccc73cc09b457ec8220fc466811a (diff)
SPDX license identifiers
For all files in iproute2 which do not have an obvious license identification, mark them with SPDK GPL-2 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--Makefile1
-rw-r--r--bridge/Makefile1
-rw-r--r--bridge/br_common.h2
-rw-r--r--bridge/bridge.c1
-rw-r--r--bridge/fdb.c1
-rw-r--r--bridge/link.c1
-rw-r--r--bridge/mdb.c1
-rw-r--r--bridge/vlan.c1
-rwxr-xr-xconfigure1
-rw-r--r--devlink/Makefile1
-rw-r--r--examples/bpf/bpf_tailcall.c1
-rw-r--r--genl/Makefile1
-rw-r--r--genl/genl_utils.h1
-rw-r--r--genl/static-syms.c1
-rw-r--r--include/bpf_api.h1
-rw-r--r--include/bpf_elf.h1
-rw-r--r--include/bpf_scm.h1
-rw-r--r--include/color.h1
-rw-r--r--include/dlfcn.h1
-rw-r--r--include/ip6tables.h1
-rw-r--r--include/iptables.h1
-rw-r--r--include/iptables/internal.h1
-rw-r--r--include/libgenl.h1
-rw-r--r--include/libiptc/ipt_kernel_headers.h1
-rw-r--r--include/libiptc/libip6tc.h1
-rw-r--r--include/libiptc/libiptc.h1
-rw-r--r--include/libiptc/libxtc.h1
-rw-r--r--include/libiptc/xtcshared.h1
-rw-r--r--include/libnetlink.h1
-rw-r--r--include/list.h1
-rw-r--r--include/ll_map.h1
-rw-r--r--include/names.h1
-rw-r--r--include/namespace.h1
-rw-r--r--include/rt_names.h1
-rw-r--r--include/rtm_map.h1
-rw-r--r--include/utils.h1
-rw-r--r--include/xt-internal.h1
-rw-r--r--include/xtables.h1
-rw-r--r--ip/Makefile1
-rw-r--r--ip/ifcfg1
-rw-r--r--ip/ila_common.h1
-rw-r--r--ip/ip_common.h1
-rw-r--r--ip/iplink_dummy.c1
-rw-r--r--ip/iplink_ifb.c1
-rw-r--r--ip/iplink_nlmon.c1
-rw-r--r--ip/iplink_team.c1
-rw-r--r--ip/iplink_vcan.c1
-rw-r--r--ip/ipnetns.c1
-rw-r--r--ip/iproute_lwtunnel.h1
-rw-r--r--ip/routef1
-rw-r--r--ip/routel2
-rw-r--r--ip/rtpr1
-rw-r--r--ip/static-syms.c1
-rw-r--r--ip/xdp.h1
-rw-r--r--lib/Makefile1
-rw-r--r--lib/color.c1
-rw-r--r--lib/dnet_ntop.c1
-rw-r--r--lib/dnet_pton.c1
-rw-r--r--lib/exec.c1
-rw-r--r--lib/ipx_ntop.c1
-rw-r--r--lib/ipx_pton.c1
-rw-r--r--lib/libgenl.c1
-rw-r--r--lib/mpls_ntop.c2
-rw-r--r--lib/mpls_pton.c2
-rw-r--r--man/Makefile1
-rw-r--r--man/man3/Makefile1
-rw-r--r--man/man7/Makefile1
-rw-r--r--man/man8/Makefile1
-rw-r--r--misc/Makefile1
-rw-r--r--misc/lnstat.h1
-rw-r--r--misc/ssfilter.h1
-rw-r--r--netem/Makefile1
-rw-r--r--rdma/Makefile1
-rw-r--r--tc/Makefile1
-rw-r--r--tc/emp_ematch.l1
-rw-r--r--tc/f_tcindex.c1
-rw-r--r--tc/m_ematch.h1
-rw-r--r--tc/q_atm.c1
-rw-r--r--tc/q_clsact.c1
-rw-r--r--tc/q_dsmark.c1
-rw-r--r--tc/q_hhf.c1
-rw-r--r--tc/static-syms.c1
-rw-r--r--tc/tc_cbq.h1
-rw-r--r--tc/tc_common.h1
-rw-r--r--tc/tc_core.h1
-rw-r--r--tc/tc_red.h1
-rw-r--r--tc/tc_util.h1
-rw-r--r--testsuite/Makefile1
-rw-r--r--testsuite/iproute2/Makefile1
-rw-r--r--testsuite/tools/Makefile1
-rw-r--r--tipc/Makefile1
91 files changed, 94 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6ad96104..6a51e0db 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 b2ae0a4e..c6b7d08d 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 01447ddc..f07c7d1c 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 6658cb8f..48fe1c8b 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 1ab1fb71..376713b6 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 65ca47e1..e2371d0d 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 f38e326e..7b7b81f4 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 0f78a9e8..69fb5425 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 f0668ab3..d6832464 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 3b2067d6..3afda65e 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 1a30426c..161eb606 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 de1635e4..2b7a45b6 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 85b51830..6e6f4450 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 0bc80743..47c4092c 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 d1324719..89d3488d 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 406c3087..a8e360f3 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 122d59fc..669f0538 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 7fd685d0..f6c351b7 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 f15bc2c7..1d8890ad 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 5f1c5b65..bfb28682 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 78c10abd..78bc378e 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 62a8ecb9..1fd13725 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 2dbb4b36..cd13f476 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 a5963e94..3d2a2a32 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 9aed80a0..cd588de7 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 24cdbdb7..1bfe4e18 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 37010188..1e9596a6 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 773ebc4c..278a58f4 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 77b62605..a4d83b9e 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 5b529dc6..5af737c7 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 949bfc3e..c8474e6e 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 6fed5818..3e5d3b14 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 51324b21..aed7ce08 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 921be060..62ebbd6a 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 d6e5885c..f85e52c4 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 9c37c613..d3895d56 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 b8ea67da..89c73e4f 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 978ae0d1..b48c3166 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 5a1c7ad2..a653c1bd 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 30a2dc49..851b9215 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 04c6c2ed..f99c2672 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 4b8b0a71..3203f0cd 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 cf78ea5b..cba22955 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 d7dc8f98..a2a7301f 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 51d5919a..6ffb9101 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 6225268d..58f955a4 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 b7ae15f0..74a1505b 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 1fa53986..059a4220 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 b82b58ad..be003cea 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 d266e2d9..c251e7b8 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 9a30462a..7056886d 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@cuci.nl>, 1999/04/18
diff --git a/ip/rtpr b/ip/rtpr
index c3629fd6..192a476f 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 0bc80743..47c4092c 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 1efd591b..215a6dcb 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 0fbdf4c3..7b34ed5f 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 8d049a01..a13a4930 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 112dc0d9..17d960e3 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 73857562..1cf54e51 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 97c99120..eb36b59d 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 5f646b3e..80b8a34e 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 071a775e..a97c1c1b 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 bb5fbb5f..f2ce698f 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 5902f503..f8d89f42 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 6d2e6a69..065374eb 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 749faa11..6b095ee4 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 a98741de..e3d3e607 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 689fc713..1a8d5219 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 12af66be..932ba1f3 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 d02616e3..34ef6b21 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 83dad970..199eb54a 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 dfc5b938..f5b0bc8a 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 43418527..ba4c5a76 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 1b5aa50b..c8966bfd 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 24bd3e2e..3716dd6a 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 d9b45be1..dc106759 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 4cd7859f..749273db 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 81456aac..fa6e214a 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 783a578c..3ea4cf4e 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 5e8dd91c..341f653f 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 65eeb271..967fd892 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 2ec3d42f..66c71886 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@google.com>
diff --git a/tc/static-syms.c b/tc/static-syms.c
index 0bc80743..47c4092c 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 8f956490..fa17d249 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 a2f38984..264fbdac 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 8a63b79c..1dfa9a4f 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 6f6b09e3..88fba58b 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 eae10913..40a8865d 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 055136b5..2a54e5c8 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 ba128aa7..b8a7d515 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 9581de51..f2cdc980 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 d3c957e2..abd33ab0 100644
--- a/tipc/Makefile
+++ b/tipc/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
include ../config.mk
ifeq ($(HAVE_MNL),y)