When I try to build the crate on FreeBSD 13.2 this error pops up(it works just fine on Linux):
default-net-0.20.0/src/bpf/binding.rs:82:1
|
69 | pub struct bpf_hdr {
| ------------------ previous definition of the type `bpf_hdr` here
...
82 | pub struct bpf_hdr {
| ^^^^^^^^^^^^^^^^^^ `bpf_hdr` redefined here
|
= note: `bpf_hdr` must be defined only once in the type namespace of this module
There's two distinct definitions of that struct so I assume one applies to some OS(es) but not others
Thank you for the report !
I addressed a testing shortfall for BSD OS and implemented necessary fixes, including cfg additions.
These changes will be part of the next release.
Hello,
When I try to build the crate on FreeBSD 13.2 this error pops up(it works just fine on Linux):
There's two distinct definitions of that struct so I assume one applies to some OS(es) but not others
One idea would be to remove
and to add something like this?
or maybe the cfg for the struct fields should be the other way around.
thanks very much!