summaryrefslogtreecommitdiff
path: root/ip
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2023-01-10 18:53:46 -0800
committerStephen Hemminger <stephen@networkplumber.org>2023-01-14 09:00:34 -0800
commitc37d21944bcad56c63a27664e4d3ab6d5a98f534 (patch)
tree7f39f74fb9a8785ae5f0d05c4aa253b85c3e876d /ip
parent18a13ec516a3593985d3657066a01a98c0998745 (diff)
downloadiproute2-c37d21944bcad56c63a27664e4d3ab6d5a98f534.tar.gz
ip: use SPDX
Use SPDX instead of boilerplate text for ip and related sub commands. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'ip')
-rw-r--r--ip/ip.c6
-rw-r--r--ip/ip6tunnel.c15
-rw-r--r--ip/ipaddress.c7
-rw-r--r--ip/ipaddrlabel.c16
-rw-r--r--ip/ipfou.c6
-rw-r--r--ip/ipila.c6
-rw-r--r--ip/ipl2tp.c7
-rw-r--r--ip/iplink.c7
-rw-r--r--ip/iplink_amt.c6
-rw-r--r--ip/iplink_batadv.c1
-rw-r--r--ip/iplink_bond.c6
-rw-r--r--ip/iplink_bond_slave.c6
-rw-r--r--ip/iplink_bridge.c6
-rw-r--r--ip/iplink_bridge_slave.c6
-rw-r--r--ip/iplink_can.c6
-rw-r--r--ip/iplink_geneve.c6
-rw-r--r--ip/iplink_hsr.c6
-rw-r--r--ip/iplink_ipoib.c6
-rw-r--r--ip/iplink_ipvlan.c6
-rw-r--r--ip/iplink_macvlan.c6
-rw-r--r--ip/iplink_netdevsim.c1
-rw-r--r--ip/iplink_vlan.c6
-rw-r--r--ip/iplink_vrf.c6
-rw-r--r--ip/iplink_vxcan.c6
-rw-r--r--ip/iplink_vxlan.c6
-rw-r--r--ip/iplink_xdp.c6
-rw-r--r--ip/iplink_xstats.c6
-rw-r--r--ip/ipmacsec.c6
-rw-r--r--ip/ipmaddr.c7
-rw-r--r--ip/ipmonitor.c7
-rw-r--r--ip/ipmroute.c7
-rw-r--r--ip/ipneigh.c7
-rw-r--r--ip/ipnetconf.c7
-rw-r--r--ip/ipntable.c18
-rw-r--r--ip/ipprefix.c17
-rw-r--r--ip/iproute.c7
-rw-r--r--ip/iproute_lwtunnel.c7
-rw-r--r--ip/iprule.c7
-rw-r--r--ip/ipseg6.c5
-rw-r--r--ip/iptoken.c6
-rw-r--r--ip/iptunnel.c7
-rw-r--r--ip/iptuntap.c7
-rw-r--r--ip/ipvrf.c7
-rw-r--r--ip/ipxfrm.c20
-rw-r--r--ip/link_gre.c7
-rw-r--r--ip/link_gre6.c7
-rw-r--r--ip/link_ip6tnl.c7
-rw-r--r--ip/link_iptnl.c7
-rw-r--r--ip/link_veth.c7
-rw-r--r--ip/link_vti.c6
-rw-r--r--ip/link_vti6.c6
-rw-r--r--ip/rtm_map.c7
-rw-r--r--ip/rtmon.c7
-rw-r--r--ip/tcp_metrics.c5
-rw-r--r--ip/tunnel.c18
-rw-r--r--ip/tunnel.h15
-rw-r--r--ip/xfrm.h17
-rw-r--r--ip/xfrm_monitor.c20
-rw-r--r--ip/xfrm_policy.c20
-rw-r--r--ip/xfrm_state.c20
60 files changed, 67 insertions, 432 deletions
diff --git a/ip/ip.c b/ip/ip.c
index 863e42aa..8424736f 100644
--- a/ip/ip.c
+++ b/ip/ip.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ip.c "ip" utility frontend.
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*/
diff --git a/ip/ip6tunnel.c b/ip/ip6tunnel.c
index 5399f91d..347bd46a 100644
--- a/ip/ip6tunnel.c
+++ b/ip/ip6tunnel.c
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2006 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* Author:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index 5e833482..c7553bcd 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipaddress.c "ip address".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdarg.h>
diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
index beb08da3..46f68c41 100644
--- a/ip/ipaddrlabel.c
+++ b/ip/ipaddrlabel.c
@@ -1,26 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipaddrlabel.c "ip addrlabel"
*
* Copyright (C)2007 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- *
- *
* Based on iprule.c.
*
* Authors: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
- *
*/
#include <stdio.h>
diff --git a/ip/ipfou.c b/ip/ipfou.c
index 9c697770..ed99a548 100644
--- a/ip/ipfou.c
+++ b/ip/ipfou.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipfou.c FOU (foo over UDP) support
*
- * 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.
- *
* Authors: Tom Herbert <therbert@google.com>
*/
diff --git a/ip/ipila.c b/ip/ipila.c
index 475c35b5..335d15f6 100644
--- a/ip/ipila.c
+++ b/ip/ipila.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipila.c ILA (Identifier Locator Addressing) support
*
- * 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.
- *
* Authors: Tom Herbert <tom@herbertland.com>
*/
diff --git a/ip/ipl2tp.c b/ip/ipl2tp.c
index f1d574de..87a4b898 100644
--- a/ip/ipl2tp.c
+++ b/ip/ipl2tp.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipl2tp.c "ip l2tp"
*
- * 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.
- *
* Original Author: James Chapman <jchapman@katalix.com>
- *
*/
#include <stdio.h>
diff --git a/ip/iplink.c b/ip/iplink.c
index e94dc6a5..4ec9e370 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink.c "ip link".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/iplink_amt.c b/ip/iplink_amt.c
index 48e079f8..3a35bd9d 100644
--- a/ip/iplink_amt.c
+++ b/ip/iplink_amt.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_amt.c AMT device support
*
- * 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.
- *
* Authors: Taehee Yoo <ap420073@gmail.com>
*/
diff --git a/ip/iplink_batadv.c b/ip/iplink_batadv.c
index 45bd923f..27d31676 100644
--- a/ip/iplink_batadv.c
+++ b/ip/iplink_batadv.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_batadv.c Batman-adv support
*
diff --git a/ip/iplink_bond.c b/ip/iplink_bond.c
index 7943499e..214244da 100644
--- a/ip/iplink_bond.c
+++ b/ip/iplink_bond.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_bond.c Bonding device support
*
- * 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.
- *
* Authors: Jiri Pirko <jiri@resnulli.us>
* Scott Feldman <sfeldma@cumulusnetworks.com>
*/
diff --git a/ip/iplink_bond_slave.c b/ip/iplink_bond_slave.c
index 8103704b..ad687500 100644
--- a/ip/iplink_bond_slave.c
+++ b/ip/iplink_bond_slave.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_bond_slave.c Bonding slave device support
*
- * 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.
- *
* Authors: Jiri Pirko <jiri@resnulli.us>
*/
diff --git a/ip/iplink_bridge.c b/ip/iplink_bridge.c
index 8b0c1422..7e4e62c8 100644
--- a/ip/iplink_bridge.c
+++ b/ip/iplink_bridge.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_bridge.c Bridge device support
*
- * 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.
- *
* Authors: Jiri Pirko <jiri@resnulli.us>
*/
diff --git a/ip/iplink_bridge_slave.c b/ip/iplink_bridge_slave.c
index ca4b264e..43b42948 100644
--- a/ip/iplink_bridge_slave.c
+++ b/ip/iplink_bridge_slave.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_bridge_slave.c Bridge slave device support
*
- * 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.
- *
* Authors: Jiri Pirko <jiri@resnulli.us>
*/
diff --git a/ip/iplink_can.c b/ip/iplink_can.c
index 9bbe3d95..f2967db5 100644
--- a/ip/iplink_can.c
+++ b/ip/iplink_can.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_can.c CAN device support
*
- * 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.
- *
* Authors: Wolfgang Grandegger <wg@grandegger.com>
*/
diff --git a/ip/iplink_geneve.c b/ip/iplink_geneve.c
index 98099cc9..62c61bce 100644
--- a/ip/iplink_geneve.c
+++ b/ip/iplink_geneve.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_geneve.c GENEVE device support
*
- * 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.
- *
* Authors: John W. Linville <linville@tuxdriver.com>
*/
diff --git a/ip/iplink_hsr.c b/ip/iplink_hsr.c
index da2d03d4..76f24a6a 100644
--- a/ip/iplink_hsr.c
+++ b/ip/iplink_hsr.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_hsr.c HSR device support
*
- * 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.
- *
* Authors: Arvid Brodin <arvid.brodin@alten.se>
*
* Based on iplink_vlan.c by Patrick McHardy <kaber@trash.net>
diff --git a/ip/iplink_ipoib.c b/ip/iplink_ipoib.c
index b730c533..7bf4e321 100644
--- a/ip/iplink_ipoib.c
+++ b/ip/iplink_ipoib.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_ipoib.c IPoIB device support
*
- * 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.
- *
* Authors: Or Gerlitz <ogerlitz@mellanox.com>
* copied iflink_vlan.c authored by Patrick McHardy <kaber@trash.net>
*/
diff --git a/ip/iplink_ipvlan.c b/ip/iplink_ipvlan.c
index baae767b..f29fa4f9 100644
--- a/ip/iplink_ipvlan.c
+++ b/ip/iplink_ipvlan.c
@@ -1,10 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/* iplink_ipvlan.c IPVLAN/IPVTAP device support
*
- * 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.
- *
* Authors: Mahesh Bandewar <maheshb@google.com>
*/
diff --git a/ip/iplink_macvlan.c b/ip/iplink_macvlan.c
index 05e6bc77..0f13637d 100644
--- a/ip/iplink_macvlan.c
+++ b/ip/iplink_macvlan.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_macvlan.c macvlan/macvtap device support
*
- * 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.
- *
* Authors: Patrick McHardy <kaber@trash.net>
* Arnd Bergmann <arnd@arndb.de>
*/
diff --git a/ip/iplink_netdevsim.c b/ip/iplink_netdevsim.c
index 34486081..5aaa775a 100644
--- a/ip/iplink_netdevsim.c
+++ b/ip/iplink_netdevsim.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#include <stdio.h>
#include <stdlib.h>
diff --git a/ip/iplink_vlan.c b/ip/iplink_vlan.c
index 1426f2af..4ac5bc03 100644
--- a/ip/iplink_vlan.c
+++ b/ip/iplink_vlan.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_vlan.c VLAN device support
*
- * 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.
- *
* Authors: Patrick McHardy <kaber@trash.net>
*/
diff --git a/ip/iplink_vrf.c b/ip/iplink_vrf.c
index 5d20f29d..9474a2b7 100644
--- a/ip/iplink_vrf.c
+++ b/ip/iplink_vrf.c
@@ -1,10 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/* iplink_vrf.c VRF device support
*
- * 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.
- *
* Authors: Shrijeet Mukherjee <shm@cumulusnetworks.com>
*/
diff --git a/ip/iplink_vxcan.c b/ip/iplink_vxcan.c
index 8b08c9a7..e0f9bacb 100644
--- a/ip/iplink_vxcan.c
+++ b/ip/iplink_vxcan.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_vxcan.c vxcan device support (Virtual CAN Tunnel)
*
- * 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.
- *
* Author: Oliver Hartkopp <socketcan@hartkopp.net>
* Based on: link_veth.c from Pavel Emelianov <xemul@openvz.org>
*/
diff --git a/ip/iplink_vxlan.c b/ip/iplink_vxlan.c
index 01522d6e..c7e0e1c4 100644
--- a/ip/iplink_vxlan.c
+++ b/ip/iplink_vxlan.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_vxlan.c VXLAN device support
*
- * 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.
- *
* Authors: Stephen Hemminger <shemminger@vyatta.com
*/
diff --git a/ip/iplink_xdp.c b/ip/iplink_xdp.c
index 4a490bc8..5928dff7 100644
--- a/ip/iplink_xdp.c
+++ b/ip/iplink_xdp.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_xdp.c XDP program loader
*
- * 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.
- *
* Authors: Daniel Borkmann <daniel@iogearbox.net>
*/
diff --git a/ip/iplink_xstats.c b/ip/iplink_xstats.c
index 1d180b0b..6c184c02 100644
--- a/ip/iplink_xstats.c
+++ b/ip/iplink_xstats.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iplink_stats.c Extended statistics commands
*
- * 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.
- *
* Authors: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
*/
diff --git a/ip/ipmacsec.c b/ip/ipmacsec.c
index 6dd73827..f3b2e03b 100644
--- a/ip/ipmacsec.c
+++ b/ip/ipmacsec.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipmacsec.c "ip macsec".
*
- * 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.
- *
* Authors: Sabrina Dubroca <sd@queasysnail.net>
*/
diff --git a/ip/ipmaddr.c b/ip/ipmaddr.c
index d41ac63a..f8d6b992 100644
--- a/ip/ipmaddr.c
+++ b/ip/ipmaddr.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipmaddr.c "ip maddress".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c
index d808369c..9b055264 100644
--- a/ip/ipmonitor.c
+++ b/ip/ipmonitor.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipmonitor.c "ip monitor".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/ipmroute.c b/ip/ipmroute.c
index 32019c94..b6d9e618 100644
--- a/ip/ipmroute.c
+++ b/ip/ipmroute.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipmroute.c "ip mroute".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/ipneigh.c b/ip/ipneigh.c
index 0cf7bb60..ee14ffcc 100644
--- a/ip/ipneigh.c
+++ b/ip/ipneigh.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipneigh.c "ip neigh".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/ipnetconf.c b/ip/ipnetconf.c
index bb0ebe12..7ddaefb4 100644
--- a/ip/ipnetconf.c
+++ b/ip/ipnetconf.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipnetconf.c "ip netconf".
*
- * 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.
- *
* Authors: Nicolas Dichtel, <nicolas.dichtel@6wind.com>
- *
*/
#include <stdio.h>
diff --git a/ip/ipntable.c b/ip/ipntable.c
index 762c790d..4ce02a31 100644
--- a/ip/ipntable.c
+++ b/ip/ipntable.c
@@ -1,23 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2006 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on ipneigh.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/ipprefix.c b/ip/ipprefix.c
index 466af208..ddf77014 100644
--- a/ip/ipprefix.c
+++ b/ip/ipprefix.c
@@ -1,23 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2005 USAGI/WIDE Project
*
- * 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.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on ip.c, iproute.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/iproute.c b/ip/iproute.c
index f34289e8..0bab0fdf 100644
--- a/ip/iproute.c
+++ b/ip/iproute.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iproute.c "ip route".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/iproute_lwtunnel.c b/ip/iproute_lwtunnel.c
index bf4468b6..52221c69 100644
--- a/ip/iproute_lwtunnel.c
+++ b/ip/iproute_lwtunnel.c
@@ -1,14 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iproute_lwtunnel.c
*
- * 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.
- *
* Authors: Roopa Prabhu, <roopa@cumulusnetworks.com>
* Thomas Graf <tgraf@suug.ch>
- *
*/
#include <stdio.h>
diff --git a/ip/iprule.c b/ip/iprule.c
index 8e5a2287..654ffffe 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iprule.c "ip rule".
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/ipseg6.c b/ip/ipseg6.c
index 4f541ae4..305b8961 100644
--- a/ip/ipseg6.c
+++ b/ip/ipseg6.c
@@ -1,10 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* seg6.c "ip sr/seg6"
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation;
- *
* Author: David Lebrun <david.lebrun@uclouvain.be>
*/
diff --git a/ip/iptoken.c b/ip/iptoken.c
index 9f356890..f25a7c8b 100644
--- a/ip/iptoken.c
+++ b/ip/iptoken.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iptoken.c "ip token"
*
- * 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.
- *
* Authors: Daniel Borkmann, <borkmann@redhat.com>
*/
diff --git a/ip/iptunnel.c b/ip/iptunnel.c
index 7a0e7237..02c3670b 100644
--- a/ip/iptunnel.c
+++ b/ip/iptunnel.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iptunnel.c "ip tunnel"
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/iptuntap.c b/ip/iptuntap.c
index 8e4e09bf..ab7d5d87 100644
--- a/ip/iptuntap.c
+++ b/ip/iptuntap.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* iptunnel.c "ip tuntap"
*
- * 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.
- *
* Authors: David Woodhouse <David.Woodhouse@intel.com>
- *
*/
#include <stdio.h>
diff --git a/ip/ipvrf.c b/ip/ipvrf.c
index 91578031..0718bea8 100644
--- a/ip/ipvrf.c
+++ b/ip/ipvrf.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* ipvrf.c "ip vrf"
*
- * 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.
- *
* Authors: David Ahern <dsa@cumulusnetworks.com>
- *
*/
#include <sys/types.h>
diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
index 7a1ebc95..b78c712d 100644
--- a/ip/ipxfrm.c
+++ b/ip/ipxfrm.c
@@ -1,25 +1,9 @@
-/* $USAGI: $ */
-
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2004 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on ip.c, iproute.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/link_gre.c b/ip/link_gre.c
index f462a227..74a5b5e9 100644
--- a/ip/link_gre.c
+++ b/ip/link_gre.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_gre.c gre driver module
*
- * 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.
- *
* Authors: Herbert Xu <herbert@gondor.apana.org.au>
- *
*/
#include <string.h>
diff --git a/ip/link_gre6.c b/ip/link_gre6.c
index 232d9bde..b03bd65a 100644
--- a/ip/link_gre6.c
+++ b/ip/link_gre6.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_gre6.c gre driver module
*
- * 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.
- *
* Authors: Dmitry Kozlov <xeb@mail.ru>
- *
*/
#include <string.h>
diff --git a/ip/link_ip6tnl.c b/ip/link_ip6tnl.c
index 2fcc13ef..b27d696f 100644
--- a/ip/link_ip6tnl.c
+++ b/ip/link_ip6tnl.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_ip6tnl.c ip6tnl driver module
*
- * 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.
- *
* Authors: Nicolas Dichtel <nicolas.dichtel@6wind.com>
- *
*/
#include <string.h>
diff --git a/ip/link_iptnl.c b/ip/link_iptnl.c
index b25855ba..1315aebe 100644
--- a/ip/link_iptnl.c
+++ b/ip/link_iptnl.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_iptnl.c ipip and sit driver module
*
- * 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.
- *
* Authors: Nicolas Dichtel <nicolas.dichtel@6wind.com>
- *
*/
#include <string.h>
diff --git a/ip/link_veth.c b/ip/link_veth.c
index 33e8f2b1..6da5b64f 100644
--- a/ip/link_veth.c
+++ b/ip/link_veth.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_veth.c veth driver module
*
- * 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.
- *
* Authors: Pavel Emelianov <xemul@openvz.org>
- *
*/
#include <string.h>
diff --git a/ip/link_vti.c b/ip/link_vti.c
index 3a52ea87..50943254 100644
--- a/ip/link_vti.c
+++ b/ip/link_vti.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_vti.c VTI driver module
*
- * 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.
- *
* Authors: Herbert Xu <herbert@gondor.apana.org.au>
* Saurabh Mohan <saurabh.mohan@vyatta.com> Modified link_gre.c for VTI
*/
diff --git a/ip/link_vti6.c b/ip/link_vti6.c
index 0b080fa9..5764221e 100644
--- a/ip/link_vti6.c
+++ b/ip/link_vti6.c
@@ -1,11 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* link_vti6.c VTI driver module
*
- * 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.
- *
* Authors: Herbert Xu <herbert@gondor.apana.org.au>
* Saurabh Mohan <saurabh.mohan@vyatta.com> Modified link_gre.c for VTI
* Steffen Klassert <steffen.klassert@secunet.com> Modified link_vti.c for IPv6
diff --git a/ip/rtm_map.c b/ip/rtm_map.c
index 8d8eafe0..29463bae 100644
--- a/ip/rtm_map.c
+++ b/ip/rtm_map.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* rtm_map.c
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/rtmon.c b/ip/rtmon.c
index b021f773..aad9968f 100644
--- a/ip/rtmon.c
+++ b/ip/rtmon.c
@@ -1,13 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* rtmon.c RTnetlink listener.
*
- * 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.
- *
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
- *
*/
#include <stdio.h>
diff --git a/ip/tcp_metrics.c b/ip/tcp_metrics.c
index acbd745a..9c8fb072 100644
--- a/ip/tcp_metrics.c
+++ b/ip/tcp_metrics.c
@@ -1,10 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* tcp_metrics.c "ip tcp_metrics/tcpmetrics"
*
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation;
- *
* Authors: Julian Anastasov <ja@ssi.bg>, August 2012
*/
diff --git a/ip/tunnel.c b/ip/tunnel.c
index 224c81e4..75cb0b51 100644
--- a/ip/tunnel.c
+++ b/ip/tunnel.c
@@ -1,23 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2006 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* split from ip_tunnel.c
- */
-/*
+ *
* Author:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/tunnel.h b/ip/tunnel.h
index 604f8cbf..0c9852e3 100644
--- a/ip/tunnel.h
+++ b/ip/tunnel.h
@@ -1,20 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2006 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* Author:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/xfrm.h b/ip/xfrm.h
index 6f251603..33c42730 100644
--- a/ip/xfrm.h
+++ b/ip/xfrm.h
@@ -1,22 +1,7 @@
-/* $USAGI: $ */
-
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2004 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/xfrm_monitor.c b/ip/xfrm_monitor.c
index b0056d9d..1f67fe9d 100644
--- a/ip/xfrm_monitor.c
+++ b/ip/xfrm_monitor.c
@@ -1,25 +1,9 @@
-/* $USAGI: $ */
-
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2005 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on ipmonitor.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/xfrm_policy.c b/ip/xfrm_policy.c
index be5fcfed..be2235ca 100644
--- a/ip/xfrm_policy.c
+++ b/ip/xfrm_policy.c
@@ -1,25 +1,9 @@
-/* $USAGI: $ */
-
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2004 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on iproute.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/
diff --git a/ip/xfrm_state.c b/ip/xfrm_state.c
index 16c65e23..aa0dce07 100644
--- a/ip/xfrm_state.c
+++ b/ip/xfrm_state.c
@@ -1,25 +1,9 @@
-/* $USAGI: $ */
-
+/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C)2004 USAGI/WIDE Project
*
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <http://www.gnu.org/licenses>.
- */
-/*
* based on iproute.c
- */
-/*
+ *
* Authors:
* Masahide NAKAMURA @USAGI
*/