type handler … type request … type netlinkHandler … // newNetlinkHandler initializes a netlink socket in the current network namespace and returns // an instance of netlinkHandler with the initialized socket. func newNetlinkHandler() (handler, error) { … } // newRequest creates a netlink request tailored for the NFAcct subsystem encapsulating the // specified cmd and flags. It incorporates the netlink header and netfilter generic header // into the resulting request. func (n *netlinkHandler) newRequest(cmd int, flags uint16) request { … }