SPDX license identifiers
Subsystems (4)
PATCH 1/1 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 <[email protected]>
--- 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(-)
Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # Top level Makefile for iproute2 ifeq ($(VERBOSE),0)
bridge/Makefile +1 -0
@@ -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
bridge/br_common.h +2 -0
@@ -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))))
bridge/bridge.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Get/set/delete bridge with netlink *
bridge/fdb.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Get/set/delete fdb table with netlink *
bridge/link.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
bridge/mdb.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Get mdb table with netlink */
bridge/vlan.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h> #include <unistd.h>
configure +1 -0
@@ -1,4 +1,5 @@ #! /bin/bash +# SPDX-License-Identifier: GPL-2.0 # This is not an autoconf generated configure # INCLUDE=${1:-"$PWD/include"}
devlink/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 include ../config.mk ifeq ($(HAVE_MNL),y)
examples/bpf/bpf_tailcall.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include "../../include/bpf_api.h" #define ENTRY_INIT 3
genl/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 GENLOBJ=genl.o include ../config.mk
genl/genl_utils.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TC_UTIL_H_#define _TC_UTIL_H_ 1
genl/static-syms.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * This file creates a dummy version of dynamic loading * for environments where dynamic linking
include/bpf_api.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __BPF_API__#define __BPF_API__
include/bpf_elf.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __BPF_ELF__#define __BPF_ELF__
include/bpf_scm.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __BPF_SCM__#define __BPF_SCM__
include/color.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __COLOR_H__#define __COLOR_H__ 1
include/dlfcn.h +1 -0
@@ -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.
include/ip6tables.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IP6TABLES_USER_H#define _IP6TABLES_USER_H
include/iptables.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IPTABLES_USER_H#define _IPTABLES_USER_H
include/iptables/internal.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef IPTABLES_INTERNAL_H #define IPTABLES_INTERNAL_H 1
include/libgenl.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LIBGENL_H__#define __LIBGENL_H__
include/libiptc/ipt_kernel_headers.h +1 -0
@@ -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
include/libiptc/libip6tc.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LIBIP6TC_H#define _LIBIP6TC_H/* Library which manipulates firewall rules. Version 0.2. */
include/libiptc/libiptc.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LIBIPTC_H#define _LIBIPTC_H/* Library which manipulates filtering rules. */
include/libiptc/libxtc.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LIBXTC_H#define _LIBXTC_H/* Library which manipulates filtering rules. */
include/libiptc/xtcshared.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LIBXTC_SHARED_H#define _LIBXTC_SHARED_H 1
include/libnetlink.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LIBNETLINK_H__#define __LIBNETLINK_H__ 1
include/list.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LIST_H__#define __LIST_H__ 1/* List and hash list stuff from kernel */
include/ll_map.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LL_MAP_H__#define __LL_MAP_H__ 1
include/names.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef DB_NAMES_H_ #define DB_NAMES_H_ 1
include/namespace.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __NAMESPACE_H__#define __NAMESPACE_H__ 1
include/rt_names.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef RT_NAMES_H_ #define RT_NAMES_H_ 1
include/rtm_map.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __RTM_MAP_H__#define __RTM_MAP_H__ 1
include/utils.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __UTILS_H__#define __UTILS_H__ 1
include/xt-internal.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _XTABLES_INTERNAL_H#define _XTABLES_INTERNAL_H 1
include/xtables.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _XTABLES_H#define _XTABLES_H
ip/Makefile +1 -0
@@ -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 \
ip/ifcfg +1 -0
@@ -1,4 +1,5 @@ #! /bin/bash +# SPDX-License-Identifier: GPL-2.0 CheckForwarding () { local sbase fwd
ip/ila_common.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ILA_COMMON_H_#define _ILA_COMMON_H_
ip/ip_common.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IP_COMMON_H_#define _IP_COMMON_H_
ip/iplink_dummy.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
ip/iplink_ifb.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
ip/iplink_nlmon.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
ip/iplink_team.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
ip/iplink_vcan.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdlib.h>
ip/ipnetns.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #define _ATFILE_SOURCE#include <sys/types.h> #include <sys/stat.h>
ip/iproute_lwtunnel.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LWTUNNEL_H__#define __LETUNNEL_H__ 1
ip/routef +1 -0
@@ -1,4 +1,5 @@ #! /bin/sh +# SPDX-License-Identifier: GPL-2.0 if [ -z "$*" ] ; then exec ip -4 ro flush scope global type unicast
ip/routel +1 -1
@@ -1,5 +1,5 @@ #!/bin/sh -#$Id$ +# SPDX-License-Identifier: GPL-2.0 # # Script created by: Stephen R. van den Berg <[email protected]>, 1999/04/18
ip/rtpr +1 -0
@@ -1,4 +1,5 @@ #! /bin/bash +# SPDX-License-Identifier: GPL-2.0 exec tr "[\\\\]" "[ ]"
ip/static-syms.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * This file creates a dummy version of dynamic loading * for environments where dynamic linking
ip/xdp.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __XDP__#define __XDP__
lib/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 include ../config.mk CFLAGS += -fPIC
lib/color.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <stdarg.h> #include <stdlib.h>
lib/dnet_ntop.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <errno.h> #include <string.h> #include <sys/types.h>
lib/dnet_pton.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <errno.h> #include <string.h> #include <sys/types.h>
lib/exec.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <sys/wait.h> #include <stdio.h> #include <errno.h>
lib/ipx_ntop.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <errno.h> #include <sys/types.h> #include <sys/socket.h>
lib/ipx_pton.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <errno.h> #include <string.h> #include <sys/types.h>
lib/libgenl.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * libgenl.c GENL library */
lib/mpls_ntop.c +2 -0
@@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <errno.h> #include <string.h> #include <sys/types.h>
lib/mpls_pton.c +2 -0
@@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <errno.h> #include <string.h> #include <sys/types.h>
man/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 INSTALL=install INSTALLDIR=install -m 0755 -d INSTALLMAN=install -m 0644
man/man3/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 MAN3PAGES = $(wildcard *.3) all:
man/man7/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 MAN7PAGES = $(wildcard *.7) all:
man/man8/Makefile +1 -0
@@ -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))
misc/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 SSOBJ=ss.o ssfilter.o LNSTATOBJ=lnstat.o lnstat_util.o
misc/lnstat.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LNSTAT_H#define _LNSTAT_H
misc/ssfilter.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #define SSF_DCOND 0#define SSF_SCOND 1#define SSF_OR 2
netem/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 include ../config.mk DISTGEN = maketable normal pareto paretonormal
rdma/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 include ../config.mk ifeq ($(HAVE_MNL),y)
tc/Makefile +1 -0
@@ -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
tc/emp_ematch.l +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ %{ #include "emp_ematch.yacc.h" #include "m_ematch.h"
tc/f_tcindex.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * f_tcindex.c Traffic control index filter *
tc/m_ematch.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __TC_EMATCH_H_#define __TC_EMATCH_H_
tc/q_atm.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * q_atm.c ATM. *
tc/q_clsact.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <stdio.h> #include <string.h>
tc/q_dsmark.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * q_dsmark.c Differentiated Services field marking. *
tc/q_hhf.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* q_hhf.c Heavy-Hitter Filter (HHF) * * Copyright (C) 2013 Terry Lam <[email protected]>
tc/static-syms.c +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * This file creates a dummy version of dynamic loading * for environments where dynamic linking
tc/tc_cbq.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TC_CBQ_H_#define _TC_CBQ_H_ 1
tc/tc_common.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #define TCA_BUF_MAX (64*1024)
tc/tc_core.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TC_CORE_H_#define _TC_CORE_H_ 1
tc/tc_red.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TC_RED_H_#define _TC_RED_H_ 1
tc/tc_util.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TC_UTIL_H_#define _TC_UTIL_H_ 1
testsuite/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 ## -- Config -- DEV := lo PREFIX := sudo -E unshare -n
testsuite/iproute2/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 SUBDIRS := $(filter-out Makefile,$(wildcard *)) .PHONY: all configure clean distclean show $(SUBDIRS)
testsuite/tools/Makefile +1 -0
@@ -1,2 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c $(CC) -o $@ $^
tipc/Makefile +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 include ../config.mk ifeq ($(HAVE_MNL),y)
Signature · 1 line
2.11.0