[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #16543] LwIP unix port use deprecated tool
From: |
Andrey Vinogradov |
Subject: |
[lwip-devel] [task #16543] LwIP unix port use deprecated tool |
Date: |
Wed, 22 May 2024 15:36:27 -0400 (EDT) |
Follow-up Comment #2, task #16543 (group lwip):
contrib/ports/unix/setup-tapif:
@@ -1,7 +1,5 @@
#!/bin/bash
-# This script needs bridge-util debian package or similar
-# for other distros.
# Run using "source setup-tapif" to get exported PRECONFIGURED_TAPIF
variable
# Alternatively, add "export PRECONFIGURED_TAPIF=tap0" to ~/.bashrc
@@ -16,7 +14,7 @@ export PRECONFIGURED_TAPIF=tap0
sudo ip tuntap add dev $PRECONFIGURED_TAPIF mode tap user `whoami`
sudo ip link set $PRECONFIGURED_TAPIF up
-sudo brctl addbr lwipbridge
-sudo brctl addif lwipbridge $PRECONFIGURED_TAPIF
+sudo ip link add dev lwipbridge type bridge
+sudo ip link set dev $PRECONFIGURED_TAPIF master lwipbridge
sudo ip addr add 192.168.1.1/24 dev lwipbridge
sudo ip link set dev lwipbridge up
-------------------------------------------
this patch works fine for my app (Ubuntu)
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/task/?16543>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/