Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/netifrc:master commit in: net/, doc/
Date: Sun, 21 Apr 2019 04:12:06
Message-Id: 1555819841.b5bb3cdf925730a693eed9e2528b92c04975c7d0.robbat2@OpenRC
1 commit: b5bb3cdf925730a693eed9e2528b92c04975c7d0
2 Author: Kirill Semenkov <semenkovk <AT> gmail <DOT> com>
3 AuthorDate: Mon Dec 17 09:10:50 2018 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 21 04:10:41 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=b5bb3cdf
7
8 Veth support added
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 doc/net.example.Linux.in | 24 ++++++++++++++++++++++++
13 net/Makefile | 2 +-
14 2 files changed, 25 insertions(+), 1 deletion(-)
15
16 diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in
17 index 3b414ba..6fc6094 100644
18 --- a/doc/net.example.Linux.in
19 +++ b/doc/net.example.Linux.in
20 @@ -914,6 +914,30 @@
21 # of the node as well
22 #openvpn_tun1="--user foo --group bar"
23
24 +#-----------------------------------------------------------------------------
25 +# Virtual interface device (veth)
26 +# For veth support install iproute2 and awk
27 +#
28 +# The script uses "standard" ways of IP-address assignement in net.lo script. Network namespaces are not implemented here
29 +# because net.lo currently knows nothing about network namespaces.
30 +#
31 +# You must specify veth interface type to avoid interference with "normal" interfaces startup
32 +# The interface type must be set for both peers
33 +#type_veth0="veth"
34 +# Here we declare peers for "ip link add" command
35 +#veth_veth0="veth0 veth1"
36 +#config_veth0="192.168.0.1/24"
37 +#
38 +# Avoids race
39 +#rc_net_veth1_need="net.veth0"
40 +#type_veth1="veth"
41 +# Both peers are created when the first one starts, we don't need to create the second peer
42 +# explicitly, we just configure it
43 +#veth_veth1_create="no"
44 +#config_veth1="192.168.2.1/24"
45 +#
46 +
47 +
48 #-----------------------------------------------------------------------------
49 # Bridging (802.1d)
50 # Preferred: iproute2, emerge sys-apps/iproute2
51
52 diff --git a/net/Makefile b/net/Makefile
53 index 390f8d8..dab94f9 100644
54 --- a/net/Makefile
55 +++ b/net/Makefile
56 @@ -14,7 +14,7 @@ INC-Linux= adsl.sh apipa.sh arping.sh bonding.sh br2684ctl.sh bridge.sh \
57 ccwgroup.sh clip.sh ethtool.sh iproute2.sh ifplugd.sh ip6to4.sh \
58 ipppd.sh iwconfig.sh netplugd.sh pppd.sh pump.sh tuntap.sh udhcpc.sh \
59 vlan.sh macvlan.sh ip6rd.sh firewalld.sh dummy.sh hsr.sh l2tp.sh \
60 - iw.sh wireguard.sh
61 + iw.sh wireguard.sh veth.sh
62
63 SRCS-NetBSD= ifwatchd.sh.in
64 INC-NetBSD= ifwatchd.sh