Skip to content

Remove dependency on "golang.org/x/sys/unix" #12

@davinci26

Description

@davinci26

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions