HomeFreeBSD

if_ovpn tests: Test using a TCP socket for DCO

Description

if_ovpn tests: Test using a TCP socket for DCO

This used to trigger panics, so try to reproduce it.
Create an if_ovpn interface, set a new peer on it with a TCP fd (as
opposed to the expected UDP) and ensure that this is rejected.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Aug 11 2022, 8:34 AM
Parents
rGfd6b3bede5a5: if_ovpn: reject non-UDP sockets
Branches
Unknown
Tags
Unknown