gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: Replace deprecated brctl (http


From: gnunet
Subject: [taler-deployment] branch master updated: Replace deprecated brctl (https://lwn.net/Articles/703776/)
Date: Sun, 04 Dec 2022 04:25:20 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new c6589d9  Replace deprecated brctl (https://lwn.net/Articles/703776/)
c6589d9 is described below

commit c6589d973064bf46d1655e06759e459c11047603
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Dec 4 12:24:29 2022 +0900

    Replace deprecated brctl (https://lwn.net/Articles/703776/)
---
 netjail/netjail-init.sh | 10 +++++++---
 netjail/netjail.sh      |  3 ++-
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/netjail/netjail-init.sh b/netjail/netjail-init.sh
index 7fd0dd5..9b28a37 100755
--- a/netjail/netjail-init.sh
+++ b/netjail/netjail-init.sh
@@ -17,13 +17,17 @@ export 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 
 BRIDGE=builderbridge
 
-brctl addbr $BRIDGE
-brctl stp $BRIDGE off
+# This is deprecated
+# brctl addbr $BRIDGE
+# brctl stp $BRIDGE off
+ip link add dev $BRIDGE type bridge stp_state 0
+
 ip link set dev $BRIDGE up
 
 # Connect bridge to host network
 ip link add tap0 type veth peer name br-tap0
-brctl addif $BRIDGE br-tap0
+#brctl addif $BRIDGE br-tap0
+ip link set dev br-tap0 master $BRIDGE
 ip link set dev tap0 up
 ip link set dev br-tap0 up
 
diff --git a/netjail/netjail.sh b/netjail/netjail.sh
index 136390b..e445245 100755
--- a/netjail/netjail.sh
+++ b/netjail/netjail.sh
@@ -31,7 +31,8 @@ BRTAP=br-tap-$NSUID
 
 # Setup link to our bridge
 ip link add "$TAP" type veth peer name "$BRTAP"
-brctl addif "$BRIDGE" "$BRTAP"
+#brctl addif "$BRIDGE" "$BRTAP"
+ip link set dev $BRTAP master $BRIDGE
 ip link set "$TAP" netns "$NSNAME"
 ip link set dev "$BRTAP" up
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]