Documentation
¶
Overview ¶
Package userdata implements a TLV parser/serializer for libnftables-compatible comments
Index ¶
- func Append(udata []byte, typ Type, data []byte) []byte
- func AppendString(udata []byte, typ Type, str string) []byte
- func AppendUint32(udata []byte, typ Type, num uint32) []byte
- func Get(udata []byte, styp Type) []byte
- func GetString(udata []byte, typ Type) (string, bool)
- func GetUint32(udata []byte, typ Type) (uint32, bool)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Type ¶
type Type byte
TLV type values are defined in: https://git.netfilter.org/iptables/tree/iptables/nft.c?id=73611d5582e72367a698faf1b5301c836e981465#n1659
const ( NFTNL_UDATA_SET_KEYBYTEORDER Type = iota NFTNL_UDATA_SET_DATABYTEORDER NFTNL_UDATA_SET_MERGE_ELEMENTS NFTNL_UDATA_SET_KEY_TYPEOF NFTNL_UDATA_SET_DATA_TYPEOF NFTNL_UDATA_SET_EXPR NFTNL_UDATA_SET_DATA_INTERVAL NFTNL_UDATA_SET_COMMENT NFTNL_UDATA_SET_MAX )
TLV type values are defined in: https://git.netfilter.org/libnftnl/tree/include/libnftnl/udata.h#n39
Click to show internal directories.
Click to hide internal directories.