Closed xmh0511 closed 8 months ago
Could you please verify the correct values for TUN_PROTO_IP6
and TUN_PROTO_IP4
in FreeBSD? Are they the same as those in Linux or Darwin?
FreeBSD always does not have packet information, in my test. see https://github.com/ssrlive/rust-tun/blob/v2/src/platform/freebsd/device.rs#L454
Since these defined packet information structures prevent
ipstack
from supporting FreeBSD, which is caused bytun
, however,ipstack
can support FreeBSD together withtun2
sincetun2
supports FreeBSD now, we can re-consider supporting the platform by reverting https://github.com/narrowlink/ipstack/commit/04b7ac7c8e1d9e533584c6f817fa24b63258299a.