Currently the package "golang.org/x/sys/unix" is used for unix.NETLINK_NETFILTER which makes any project that depends on this library to not be able to compile on a mac which makes it a bit annoying.
I wanted to suggest if we can instead do a little copy paste instead of a lil dependency and hardcode the value of unix.NETLINK_NETFILTER into a const in the library. The value is defined here https://man7.org/linux/man-pages/man7/netlink.7.html https://github.com/torvalds/linux/blob/0031c06807cfa8aa51a759ff8aa09e1aa48149af/include/uapi/linux/netlink.h#L21 so it should never change
Currently the package
"golang.org/x/sys/unix"is used forunix.NETLINK_NETFILTERwhich makes any project that depends on this library to not be able to compile on amacwhich makes it a bit annoying.I wanted to suggest if we can instead do a little copy paste instead of a lil dependency and hardcode the value of
unix.NETLINK_NETFILTERinto a const in the library. The value is defined here https://man7.org/linux/man-pages/man7/netlink.7.html https://github.com/torvalds/linux/blob/0031c06807cfa8aa51a759ff8aa09e1aa48149af/include/uapi/linux/netlink.h#L21 so it should never change