Skip to contentSkip to conversation

Bug#1012567: openvpn --mktun --dev-type tap --dev tap2 fails

Openvpn-devel Bernhard Schmidt 2 participants 2 messages Jun 9, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

I've received the following bug report for the dco-enabled OpenVPN 2.6 build currently sitting in Debian unstable. It looks like DCO is interfering with the CLI option to create a tap interface.

Bernhard

---
Package: openvpn
Version: 2.6.0~git20220518+dco-2
Severity: important

Since 2.6.0~git20220518+dco-2 the following command fails:

openvpn --mktun --dev-type tap --dev tap2

with

Assertion failed at dco_linux.c:442 (tt-type == DEV_TYPE_TUN) Exit due to fatal error

I don't have dco support in the linux kernel.

openvpn --disable-dco --mktun --dev-type tap --dev tap2

works as a workaround, but I think --mktun --dev-type tap should continue to work without it.

Regards,

Signature · 4 lines
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
---
#2 lore raw

Hi Bernhard,

Thanks a lot for forwarding the bug - it's a nice catch.

Will work on a fix.

Regards,

Quoted 32 lines · Bernhard Schmidt

Hi,

I've received the following bug report for the dco-enabled OpenVPN 2.6 build currently sitting in Debian unstable. It looks like DCO is interfering with the CLI option to create a tap interface.

Bernhard

---
Package: openvpn
Version: 2.6.0~git20220518+dco-2
Severity: important

Since 2.6.0~git20220518+dco-2 the following command fails:

openvpn --mktun --dev-type tap --dev tap2

with

Assertion failed at dco_linux.c:442 (tt-type == DEV_TYPE_TUN) Exit due to fatal error

I don't have dco support in the linux kernel.

openvpn --disable-dco --mktun --dev-type tap --dev tap2

works as a workaround, but I think --mktun --dev-type tap should continue to work without it.

Regards,

Signature · 1 line
Antonio Quartulli