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>
This commit is contained in:
parent
859af0a5dc
commit
6054c1ebf7
1
Makefile
1
Makefile
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Top level Makefile for iproute2
|
# Top level Makefile for iproute2
|
||||||
|
|
||||||
ifeq ($(VERBOSE),0)
|
ifeq ($(VERBOSE),0)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
BROBJ = bridge.o fdb.o monitor.o link.o mdb.o vlan.o
|
BROBJ = bridge.o fdb.o monitor.o link.o mdb.o vlan.o
|
||||||
|
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
|
||||||
#define MDB_RTA(r) \
|
#define MDB_RTA(r) \
|
||||||
((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry))))
|
((struct rtattr *)(((char *)(r)) + RTA_ALIGN(sizeof(struct br_mdb_entry))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* Get/set/delete bridge with netlink
|
* Get/set/delete bridge with netlink
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* Get/set/delete fdb table with netlink
|
* Get/set/delete fdb table with netlink
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* Get mdb table with netlink
|
* Get mdb table with netlink
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# This is not an autoconf generated configure
|
# This is not an autoconf generated configure
|
||||||
#
|
#
|
||||||
INCLUDE=${1:-"$PWD/include"}
|
INCLUDE=${1:-"$PWD/include"}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
ifeq ($(HAVE_MNL),y)
|
ifeq ($(HAVE_MNL),y)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include "../../include/bpf_api.h"
|
#include "../../include/bpf_api.h"
|
||||||
|
|
||||||
#define ENTRY_INIT 3
|
#define ENTRY_INIT 3
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
GENLOBJ=genl.o
|
GENLOBJ=genl.o
|
||||||
|
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _TC_UTIL_H_
|
#ifndef _TC_UTIL_H_
|
||||||
#define _TC_UTIL_H_ 1
|
#define _TC_UTIL_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* This file creates a dummy version of dynamic loading
|
* This file creates a dummy version of dynamic loading
|
||||||
* for environments where dynamic linking
|
* for environments where dynamic linking
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __BPF_API__
|
#ifndef __BPF_API__
|
||||||
#define __BPF_API__
|
#define __BPF_API__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __BPF_ELF__
|
#ifndef __BPF_ELF__
|
||||||
#define __BPF_ELF__
|
#define __BPF_ELF__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __BPF_SCM__
|
#ifndef __BPF_SCM__
|
||||||
#define __BPF_SCM__
|
#define __BPF_SCM__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __COLOR_H__
|
#ifndef __COLOR_H__
|
||||||
#define __COLOR_H__ 1
|
#define __COLOR_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* Stub dlfcn implementation for systems that lack shared library support
|
* Stub dlfcn implementation for systems that lack shared library support
|
||||||
* but obviously can still reference compiled-in symbols.
|
* but obviously can still reference compiled-in symbols.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _IP6TABLES_USER_H
|
#ifndef _IP6TABLES_USER_H
|
||||||
#define _IP6TABLES_USER_H
|
#define _IP6TABLES_USER_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _IPTABLES_USER_H
|
#ifndef _IPTABLES_USER_H
|
||||||
#define _IPTABLES_USER_H
|
#define _IPTABLES_USER_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef IPTABLES_INTERNAL_H
|
#ifndef IPTABLES_INTERNAL_H
|
||||||
#define IPTABLES_INTERNAL_H 1
|
#define IPTABLES_INTERNAL_H 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __LIBGENL_H__
|
#ifndef __LIBGENL_H__
|
||||||
#define __LIBGENL_H__
|
#define __LIBGENL_H__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/* This is the userspace/kernel interface for Generic IP Chains,
|
/* This is the userspace/kernel interface for Generic IP Chains,
|
||||||
required for libc6. */
|
required for libc6. */
|
||||||
#ifndef _FWCHAINS_KERNEL_HEADERS_H
|
#ifndef _FWCHAINS_KERNEL_HEADERS_H
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LIBIP6TC_H
|
#ifndef _LIBIP6TC_H
|
||||||
#define _LIBIP6TC_H
|
#define _LIBIP6TC_H
|
||||||
/* Library which manipulates firewall rules. Version 0.2. */
|
/* Library which manipulates firewall rules. Version 0.2. */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LIBIPTC_H
|
#ifndef _LIBIPTC_H
|
||||||
#define _LIBIPTC_H
|
#define _LIBIPTC_H
|
||||||
/* Library which manipulates filtering rules. */
|
/* Library which manipulates filtering rules. */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LIBXTC_H
|
#ifndef _LIBXTC_H
|
||||||
#define _LIBXTC_H
|
#define _LIBXTC_H
|
||||||
/* Library which manipulates filtering rules. */
|
/* Library which manipulates filtering rules. */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LIBXTC_SHARED_H
|
#ifndef _LIBXTC_SHARED_H
|
||||||
#define _LIBXTC_SHARED_H 1
|
#define _LIBXTC_SHARED_H 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __LIBNETLINK_H__
|
#ifndef __LIBNETLINK_H__
|
||||||
#define __LIBNETLINK_H__ 1
|
#define __LIBNETLINK_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __LIST_H__
|
#ifndef __LIST_H__
|
||||||
#define __LIST_H__ 1
|
#define __LIST_H__ 1
|
||||||
/* List and hash list stuff from kernel */
|
/* List and hash list stuff from kernel */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __LL_MAP_H__
|
#ifndef __LL_MAP_H__
|
||||||
#define __LL_MAP_H__ 1
|
#define __LL_MAP_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef DB_NAMES_H_
|
#ifndef DB_NAMES_H_
|
||||||
#define DB_NAMES_H_ 1
|
#define DB_NAMES_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __NAMESPACE_H__
|
#ifndef __NAMESPACE_H__
|
||||||
#define __NAMESPACE_H__ 1
|
#define __NAMESPACE_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef RT_NAMES_H_
|
#ifndef RT_NAMES_H_
|
||||||
#define RT_NAMES_H_ 1
|
#define RT_NAMES_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __RTM_MAP_H__
|
#ifndef __RTM_MAP_H__
|
||||||
#define __RTM_MAP_H__ 1
|
#define __RTM_MAP_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __UTILS_H__
|
#ifndef __UTILS_H__
|
||||||
#define __UTILS_H__ 1
|
#define __UTILS_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _XTABLES_INTERNAL_H
|
#ifndef _XTABLES_INTERNAL_H
|
||||||
#define _XTABLES_INTERNAL_H 1
|
#define _XTABLES_INTERNAL_H 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _XTABLES_H
|
#ifndef _XTABLES_H
|
||||||
#define _XTABLES_H
|
#define _XTABLES_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \
|
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 \
|
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 \
|
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o iptuntap.o iptoken.o \
|
||||||
|
|
|
||||||
1
ip/ifcfg
1
ip/ifcfg
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
CheckForwarding () {
|
CheckForwarding () {
|
||||||
local sbase fwd
|
local sbase fwd
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _ILA_COMMON_H_
|
#ifndef _ILA_COMMON_H_
|
||||||
#define _ILA_COMMON_H_
|
#define _ILA_COMMON_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _IP_COMMON_H_
|
#ifndef _IP_COMMON_H_
|
||||||
#define _IP_COMMON_H_
|
#define _IP_COMMON_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#define _ATFILE_SOURCE
|
#define _ATFILE_SOURCE
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __LWTUNNEL_H__
|
#ifndef __LWTUNNEL_H__
|
||||||
#define __LETUNNEL_H__ 1
|
#define __LETUNNEL_H__ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
if [ -z "$*" ] ; then
|
if [ -z "$*" ] ; then
|
||||||
exec ip -4 ro flush scope global type unicast
|
exec ip -4 ro flush scope global type unicast
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
#
|
#
|
||||||
# Script created by: Stephen R. van den Berg <srb@cuci.nl>, 1999/04/18
|
# Script created by: Stephen R. van den Berg <srb@cuci.nl>, 1999/04/18
|
||||||
|
|
|
||||||
1
ip/rtpr
1
ip/rtpr
|
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
exec tr "[\\\\]" "[
|
exec tr "[\\\\]" "[
|
||||||
]"
|
]"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* This file creates a dummy version of dynamic loading
|
* This file creates a dummy version of dynamic loading
|
||||||
* for environments where dynamic linking
|
* for environments where dynamic linking
|
||||||
|
|
|
||||||
1
ip/xdp.h
1
ip/xdp.h
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __XDP__
|
#ifndef __XDP__
|
||||||
#define __XDP__
|
#define __XDP__
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
CFLAGS += -fPIC
|
CFLAGS += -fPIC
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* libgenl.c GENL library
|
* libgenl.c GENL library
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
INSTALLDIR=install -m 0755 -d
|
INSTALLDIR=install -m 0755 -d
|
||||||
INSTALLMAN=install -m 0644
|
INSTALLMAN=install -m 0644
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
MAN3PAGES = $(wildcard *.3)
|
MAN3PAGES = $(wildcard *.3)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
MAN7PAGES = $(wildcard *.7)
|
MAN7PAGES = $(wildcard *.7)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
TARGETS = ip-address.8 ip-link.8 ip-route.8
|
TARGETS = ip-address.8 ip-link.8 ip-route.8
|
||||||
|
|
||||||
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
|
MAN8PAGES = $(TARGETS) $(filter-out $(TARGETS),$(wildcard *.8))
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
SSOBJ=ss.o ssfilter.o
|
SSOBJ=ss.o ssfilter.o
|
||||||
LNSTATOBJ=lnstat.o lnstat_util.o
|
LNSTATOBJ=lnstat.o lnstat_util.o
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _LNSTAT_H
|
#ifndef _LNSTAT_H
|
||||||
#define _LNSTAT_H
|
#define _LNSTAT_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#define SSF_DCOND 0
|
#define SSF_DCOND 0
|
||||||
#define SSF_SCOND 1
|
#define SSF_SCOND 1
|
||||||
#define SSF_OR 2
|
#define SSF_OR 2
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
DISTGEN = maketable normal pareto paretonormal
|
DISTGEN = maketable normal pareto paretonormal
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
ifeq ($(HAVE_MNL),y)
|
ifeq ($(HAVE_MNL),y)
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
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 \
|
tc_exec.o m_police.o m_estimator.o m_action.o m_ematch.o \
|
||||||
emp_ematch.yacc.o emp_ematch.lex.o
|
emp_ematch.yacc.o emp_ematch.lex.o
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
%{
|
%{
|
||||||
#include "emp_ematch.yacc.h"
|
#include "emp_ematch.yacc.h"
|
||||||
#include "m_ematch.h"
|
#include "m_ematch.h"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* f_tcindex.c Traffic control index filter
|
* f_tcindex.c Traffic control index filter
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef __TC_EMATCH_H_
|
#ifndef __TC_EMATCH_H_
|
||||||
#define __TC_EMATCH_H_
|
#define __TC_EMATCH_H_
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* q_atm.c ATM.
|
* q_atm.c ATM.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* q_dsmark.c Differentiated Services field marking.
|
* q_dsmark.c Differentiated Services field marking.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/* q_hhf.c Heavy-Hitter Filter (HHF)
|
/* q_hhf.c Heavy-Hitter Filter (HHF)
|
||||||
*
|
*
|
||||||
* Copyright (C) 2013 Terry Lam <vtlam@google.com>
|
* Copyright (C) 2013 Terry Lam <vtlam@google.com>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
/*
|
/*
|
||||||
* This file creates a dummy version of dynamic loading
|
* This file creates a dummy version of dynamic loading
|
||||||
* for environments where dynamic linking
|
* for environments where dynamic linking
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _TC_CBQ_H_
|
#ifndef _TC_CBQ_H_
|
||||||
#define _TC_CBQ_H_ 1
|
#define _TC_CBQ_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
|
||||||
#define TCA_BUF_MAX (64*1024)
|
#define TCA_BUF_MAX (64*1024)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _TC_CORE_H_
|
#ifndef _TC_CORE_H_
|
||||||
#define _TC_CORE_H_ 1
|
#define _TC_CORE_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _TC_RED_H_
|
#ifndef _TC_RED_H_
|
||||||
#define _TC_RED_H_ 1
|
#define _TC_RED_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
#ifndef _TC_UTIL_H_
|
#ifndef _TC_UTIL_H_
|
||||||
#define _TC_UTIL_H_ 1
|
#define _TC_UTIL_H_ 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
## -- Config --
|
## -- Config --
|
||||||
DEV := lo
|
DEV := lo
|
||||||
PREFIX := sudo -E unshare -n
|
PREFIX := sudo -E unshare -n
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
SUBDIRS := $(filter-out Makefile,$(wildcard *))
|
SUBDIRS := $(filter-out Makefile,$(wildcard *))
|
||||||
.PHONY: all configure clean distclean show $(SUBDIRS)
|
.PHONY: all configure clean distclean show $(SUBDIRS)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
|
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
|
||||||
$(CC) -o $@ $^
|
$(CC) -o $@ $^
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
include ../config.mk
|
include ../config.mk
|
||||||
|
|
||||||
ifeq ($(HAVE_MNL),y)
|
ifeq ($(HAVE_MNL),y)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue