Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/nftables
/ types & classes
Types & classes
131 in github.com/google/nftables
⨍
Functions
499
◇
Types & classes
131
↓ 12 callers
TypeAlias
TableFamily
TableFamily specifies the address family of the table Match or Target Info data is contained in. On purpose, we don't import the expr package here in
xt/info.go:10
↓ 7 callers
TypeAlias
MonitorEventType
monitor.go:94
↓ 6 callers
TypeAlias
VerdictKind
expr/verdict.go:39
↓ 5 callers
TypeAlias
Unknown
Unknown represents the bytes Info payload for unknown Info types where no dedicated match/target info type has (yet) been defined.
xt/unknown.go:5
↓ 4 callers
TypeAlias
TableFamily
TableFamily specifies the address family for this table.
table.go:30
↓ 3 callers
TypeAlias
Comment
Comment gets marshalled and unmarshalled as a fixed-sized char array, filled with zeros as necessary, see: https://elixir.bootlin.com/linux/v6.8.7/sou
xt/comment.go:15
↓ 2 callers
TypeAlias
CmpOp
CmpOp specifies which type of comparison should be performed.
expr/expr.go:428
↓ 1 callers
TypeAlias
AddrTypeFlags
xt/match_addrtype.go:15
↓ 1 callers
TypeAlias
ChainHook
ChainHook specifies at which step in packet processing the Chain should be executed. See also https://wiki.nftables.org/wiki-nftables/index.php/Config
chain.go:30
↓ 1 callers
TypeAlias
ChainPolicy
ChainPolicy defines what this chain default policy will be.
chain.go:88
↓ 1 callers
TypeAlias
ChainPriority
ChainPriority orders the chain relative to Netfilter internal operations. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chain
chain.go:51
↓ 1 callers
TypeAlias
ChainType
ChainType defines what this chain will be used for. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains#Base_chain_types
chain.go:78
↓ 1 callers
TypeAlias
CtKey
CtKey specifies which piece of conntrack information should be loaded. See also https://wiki.nftables.org/wiki-nftables/index.php/Matching_connection_
expr/ct.go:27
↓ 1 callers
TypeAlias
ExthdrOp
expr/exthdr.go:25
↓ 1 callers
TypeAlias
FlowtableFlags
flowtable.go:62
↓ 1 callers
TypeAlias
FlowtableHook
flowtable.go:71
↓ 1 callers
TypeAlias
FlowtablePriority
flowtable.go:83
↓ 1 callers
TypeAlias
HashType
expr/hash.go:25
↓ 1 callers
TypeAlias
LimitTime
LimitTime represents the limit unit.
expr/limit.go:37
↓ 1 callers
TypeAlias
LimitType
LimitType represents the type of the limit expression.
expr/limit.go:28
↓ 1 callers
TypeAlias
LogFlags
expr/log.go:40
↓ 1 callers
TypeAlias
LogLevel
expr/log.go:25
↓ 1 callers
TypeAlias
MetaKey
MetaKey specifies which piece of meta information should be loaded. See also https://wiki.nftables.org/wiki-nftables/index.php/Matching_packet_metainf
expr/expr.go:227
↓ 1 callers
TypeAlias
NATType
expr/nat.go:25
↓ 1 callers
TypeAlias
ObjType
obj.go:33
↓ 1 callers
TypeAlias
PayloadBase
expr/payload.go:25
↓ 1 callers
TypeAlias
PayloadCsumType
expr/payload.go:26
↓ 1 callers
TypeAlias
QueueFlag
expr/queue.go:27
↓ 1 callers
TypeAlias
SocketKey
expr/socket.go:32
↓ 1 callers
TypeAlias
TcpInvFlagset
xt/match_tcp.go:21
↓ 1 callers
TypeAlias
Type
userdata/userdata.go:23
↓ 1 callers
TypeAlias
UdpInvFlagset
xt/match_udp.go:18
Struct
AddrType
Rev. 0, see https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_addrtype.h#L38
xt/match_addrtype.go:8
Struct
AddrTypeV1
See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_addrtype.h#L31
xt/match_addrtype.go:33
Struct
AlignedBuff
AlignedBuff implements marshalling and unmarshalling information in platform/architecture native endianess and data type alignment. It additionally co
alignedbuff/alignedbuff.go:33
Interface
Any
Any is an interface implemented by any expression type.
expr/expr.go:219
Struct
Bitwise
expr/bitwise.go:25
Interface
ByteOrder
ByteOrder is like binary.ByteOrder, but allocates memory and returns byte slices, for convenience.
binaryutil/binaryutil.go:26
Struct
Byteorder
expr/byteorder.go:32
TypeAlias
ByteorderOp
expr/byteorder.go:25
Struct
Chain
A Chain contains Rules. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
chain.go:98
Struct
Cmp
Cmp compares a register with the specified data.
expr/expr.go:441
Struct
Conn
A Conn represents a netlink connection of the nftables family. All methods return their input, so that variables can be defined from string literals
conn.go:37
FuncType
ConnOption
ConnOption is an option to change the behavior of the nftables Conn returned by Open.
conn.go:50
Struct
Connlimit
Per https://git.netfilter.org/libnftnl/tree/src/expr/connlimit.c?id=84d12cfacf8ddd857a09435f3d982ab6250d250c
expr/connlimit.go:34
TypeAlias
ConntrackFlags
xt/match_conntrack.go:9
Struct
ConntrackMtinfo1
See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L38
xt/match_conntrack.go:49
Struct
ConntrackMtinfo2
See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L51
xt/match_conntrack.go:56
Struct
ConntrackMtinfo3
See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L64
xt/match_conntrack.go:63
Struct
ConntrackMtinfoBase
xt/match_conntrack.go:28
Struct
Counter
expr/counter.go:25
Struct
CounterObj
counter.go:23
Struct
Ct
Ct defines type for NFT connection tracking
expr/ct.go:112
Struct
CtExpect
expr/ct.go:260
Struct
CtHelper
expr/ct.go:194
TypeAlias
CtStatePolicyTimeout
expr/ct.go:67
Struct
CtTimeout
expr/ct.go:321
Struct
Dup
expr/dup.go:25
Struct
Dynset
Dynset represent a rule dynamically adding or updating a set or a map based on an incoming packet.
expr/dynset.go:35
Struct
Exthdr
expr/exthdr.go:32
Struct
Fib
Fib defines fib expression structure
expr/fib.go:26
Struct
FlowOffload
expr/flow_offload.go:26
Struct
Flowtable
flowtable.go:96
Struct
GenMsg
gen.go:10
Struct
Hash
Hash defines type for nftables internal hashing functions
expr/hash.go:33
Struct
Immediate
expr/immediate.go:26
Interface
InfoAny
InfoAny is a (un)marshaling implemented by any info type.
xt/info.go:13
Struct
Limit
Limit represents a rate limit expression.
expr/limit.go:66
Struct
Log
Log defines type for NFT logging See https://git.netfilter.org/libnftnl/tree/src/expr/log.c?id=09456c720e9c00eecc08e41ac6b7c291b3821ee5#n25
expr/log.go:55
Struct
Lookup
Lookup represents a match against the contents of a set.
expr/lookup.go:26
Struct
Masq
Masq (Masquerade) is a special case of SNAT, where the source address is automagically set to the address of the output interface. See also https://wi
expr/expr.go:331
Struct
Match
See https://git.netfilter.org/libnftnl/tree/src/expr/match.c?id=09456c720e9c00eecc08e41ac6b7c291b3821ee5#n30
expr/match.go:14
Struct
Meta
Meta loads packet meta information for later comparisons. See also https://wiki.nftables.org/wiki-nftables/index.php/Matching_packet_metainformation
expr/expr.go:260
Struct
Monitor
A Monitor is an event-based nftables monitor that will receive one event per new (or deleted) table, chain, rule, set, etc., depending on the monitor
monitor.go:138
TypeAlias
MonitorAction
monitor.go:26
Struct
MonitorEvent
A MonitorEvent represents a single change received via a [Monitor]. Depending on the Type, the Data field can be type-asserted to the specific data t
monitor.go:118
Struct
MonitorEvents
monitor.go:125
TypeAlias
MonitorObject
monitor.go:36
FuncType
MonitorOption
func(*Monitor)
monitor.go:152
Struct
NAT
expr/nat.go:33
Struct
NFGenMsg
General form of address family dependent message, see https://git.netfilter.org/libnftnl/tree/include/linux/netfilter/nfnetlink.h#29
util.go:34
Struct
NamedObj
NamedObj represents nftables stateful object attributes Corresponds to netfilter nft_object_attributes as per https://git.netfilter.org/libnftnl/tree/
obj.go:75
TypeAlias
NatIPv4MultiRangeCompat
NatIPv4MultiRangeCompat despite being a slice of NAT IPv4 ranges is currently allowed to only hold exactly one element. See https://elixir.bootlin.co
xt/target_masquerade_ip.go:23
Struct
NatIPv4Range
See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L25
xt/target_masquerade_ip.go:11
Struct
NatRange
see: https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L38
xt/target_dnat.go:27
Struct
NatRange2
see: https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L46
xt/target_dnat.go:36
TypeAlias
NatRangeFlags
xt/target_dnat.go:9
Struct
Notrack
expr/notrack.go:22
Struct
Numgen
Numgen defines Numgen expression structure
expr/numgen.go:27
Interface
Obj
Obj represents a netfilter stateful object. See also https://wiki.nftables.org/wiki-nftables/index.php/Stateful_objects
obj.go:64
Struct
Objref
expr/objref.go:25
Struct
Payload
expr/payload.go:48
TypeAlias
PayloadOperationType
expr/payload.go:27
Struct
Queue
expr/queue.go:40
TypeAlias
QueueAttribute
expr/queue.go:25
Struct
Quota
Quota defines a threshold against a number of bytes.
expr/quota.go:26
Struct
QuotaObj
quota.go:23
Struct
Range
Range implements range expression
expr/range.go:26
Struct
Recorder
Recorder provides an nftables connection that does not send to the Linux kernel but instead records netlink messages into the recorder. The recorded r
internal/nftest/nftest.go:17
Struct
Redir
expr/redirect.go:25
next →
1–100 of 131, ranked by callers