Run ip link up before adding addresses and routes
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Apr 2024 13:41:04 +0000 (15:41 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 7 Apr 2024 13:41:04 +0000 (15:41 +0200)
commite1823fc941f16b4b769e4511c8acb274705cc989
tree7b47f7df7064c1d353f161382e7490fd39811f8b
parent7eeb29220a73ab9c5367f652873042f8a81c6cef
Run ip link up before adding addresses and routes

On Linux, some iproute2 commands to set addresses and add routes don't work
or have no effect if the link is not up, so make sure we set the link up
first.
src/ifconfig.c