I ran into a problem where a wireguard interface on FreeBSD wasn't supported. Turns out libpcap treats many of these types of interfaces the sameish. Enough that I think this will work generically for many virtual drivers (wireguard, loopback, openvpn).
This specifically may address #102. At least it does address it on FreeBSD.
There's also a compiler warning fix about excess parenthesis.
I ran into a problem where a wireguard interface on FreeBSD wasn't supported. Turns out libpcap treats many of these types of interfaces the sameish. Enough that I think this will work generically for many virtual drivers (wireguard, loopback, openvpn).
This specifically may address #102. At least it does address it on FreeBSD.
There's also a compiler warning fix about excess parenthesis.