]> git.ipfire.org Git - thirdparty/openvpn.git/commit
t_net.sh: delete dummy iface using iproute command
authorAntonio Quartulli <a@unstable.cc>
Thu, 7 Apr 2022 08:15:55 +0000 (10:15 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 8 Apr 2022 10:51:36 +0000 (12:51 +0200)
commit976e6caf0e161d3c787e1378cec44608c17b292a
treeba434cf01de7aa2d8d719d8288cd58c3b84e0429
parentc838a9f98fa2d8b6d7b2658e8399bc9d19ec60e0
t_net.sh: delete dummy iface using iproute command

A dummy interface cannot be deleted using --rmtun because openvpn tries
to send some ioctl (i.e. TUNSETPERSIST) which is not supported by this
device type. This results in the following error:

2022-04-07 09:59:29 Cannot ioctl TUNSETPERSIST(0) ovpn-dummy0: Bad file
descriptor (errno=9)
2022-04-07 09:59:29 Exiting due to fatal error

and the interface is not deleted.

Use iproute to generically delete an interface.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220407081555.25228-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24086.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_net.sh