MCPcopy Create free account

hub / github.com/google/nftables / functions

Functions499 in github.com/google/nftables

↓ 2 callersFunctionGetUint32
(udata []byte, typ Type)
userdata/userdata.go:92
↓ 2 callersFunctionInt32
(b []byte)
binaryutil/binaryutil.go:115
↓ 2 callersMethodListChain
ListChain returns a single chain configured in the specified table
chain.go:197
↓ 2 callersMethodListTablesOfFamily
ListTablesOfFamily returns currently configured tables for the specified table family in the kernel. It lists all tables if family is TableFamilyUnspe
table.go:141
↓ 2 callersFunctionMarshal
Marshal a Match or Target Info type into its binary representation.
xt/info.go:19
↓ 2 callersFunctionMustConcatSetType
MustConcatSetType does the same as ConcatSetType, but panics instead of an error. It simplifies safe initialization of global variables.
set.go:199
↓ 2 callersFunctionNetFirstAndLastIP
NetFirstAndLastIP takes the beginning address of an entire network in CIDR notation (e.g. 192.168.1.0/24) and returns the first and last IP addresses
util.go:56
↓ 2 callersFunctionNewMonitor
NewMonitor returns a Monitor with options to be started. Note that NewMonitor only prepares a Monitor. To install the monitor, call [Conn.AddMonitor]
monitor.go:178
↓ 2 callersFunctionPutInt32
For dealing with types not supported by the encoding/binary interface
binaryutil/binaryutil.go:109
↓ 2 callersMethodPutInt32
PutInt32 marshals an int32 in native endianess and alignment.
alignedbuff/alignedbuff.go:239
↓ 2 callersFunctionPutString
(s string)
binaryutil/binaryutil.go:119
↓ 2 callersMethodPutString
PutString marshals a string.
alignedbuff/alignedbuff.go:246
↓ 2 callersFunctionUnmarshal
Unmarshal Info binary payload into its corresponding dedicated type as indicated by the name argument. In several cases, unmarshalling depends on the
xt/info.go:27
↓ 2 callersMethodaddTable
(t *Table, flag netlink.HeaderFlags)
table.go:69
↓ 2 callersFunctionbool32
(ab *alignedbuff.AlignedBuff)
xt/util.go:11
↓ 2 callersMethoddialNetlink
()
conn.go:299
↓ 2 callersFunctionelementsFromMsg
(fam byte, msg netlink.Message)
set.go:845
↓ 2 callersFunctionexprFromName
(name string)
expr/expr.go:147
↓ 2 callersFunctionflushNFTRuleset
()
integration/nft_test.go:249
↓ 2 callersFunctionlistNFTRuleset
()
integration/nft_test.go:240
↓ 2 callersMethodlistTablesOfNameAndFamily
(name string, family TableFamily)
table.go:145
↓ 2 callersMethodmarshalAB
(fam TableFamily, rev uint32, ab *alignedbuff.AlignedBuff)
xt/target_dnat.go:49
↓ 2 callersFunctionnestedAttr
(data []byte, attrType uint16)
expr/range.go:122
↓ 2 callersMethodnetlinkConnUnderLock
netlinkConnUnderLock works like netlinkConn but must be called while holding the Conn.mu lock.
conn.go:138
↓ 2 callersFunctionnfdump
nfdump returns a hexdump of 4 bytes per line (like nft --debug=all), allowing users to make sense of large byte literals more easily.
internal/nftest/nftest.go:106
↓ 2 callersFunctionobjFromMsg
(msg netlink.Message, returnLegacyType bool)
obj.go:230
↓ 2 callersFunctionputBool32
(ab *alignedbuff.AlignedBuff, b bool)
xt/util.go:22
↓ 2 callersFunctionruleFromMsg
(fam TableFamily, msg netlink.Message)
rule.go:230
↓ 2 callersMethodsetInterfaceExprs
(exprs []interface{})
expr/dynset.go:148
↓ 2 callersFunctiontableFromMsg
(msg netlink.Message)
table.go:187
↓ 2 callersMethodunmarshal
(ad *netlink.AttributeDecoder)
quota.go:31
↓ 2 callersMethodunmarshalAB
(fam TableFamily, rev uint32, ab *alignedbuff.AlignedBuff)
xt/target_dnat.go:67
↓ 1 callersMethodConn
Conn opens an nftables connection that records netlink messages into the Recorder.
internal/nftest/nftest.go:23
↓ 1 callersMethodDecode
(b []byte)
util.go:40
↓ 1 callersMethodDelChain
DelChain deletes the specified Chain. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains#Deleting_chains
chain.go:156
↓ 1 callersMethodDelFlowtable
(f *Flowtable)
flowtable.go:156
↓ 1 callersMethodDelRule
DelRule deletes the specified Rule, rule's handle cannot be 0
rule.go:204
↓ 1 callersMethodDelSet
DelSet deletes a specific set, along with all elements it contains.
set.go:684
↓ 1 callersMethodDelTable
DelTable deletes a specific table, along with all chains/rules it contains.
table.go:53
↓ 1 callersFunctionDiff
Diff returns the first difference between the specified netlink messages and the expected netlink message payloads.
internal/nftest/nftest.go:58
↓ 1 callersFunctionFlowtableHookRef
(h FlowtableHook)
flowtable.go:73
↓ 1 callersMethodFlushChain
FlushChain removes all rules within the specified Chain. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains#Flushing_chain
chain.go:175
↓ 1 callersMethodFlushSet
FlushSet deletes all data points from an nftables set.
set.go:724
↓ 1 callersMethodFlushTable
FlushTable removes all rules in all chains within the specified Table. See also https://wiki.nftables.org/wiki-nftables/index.php/Configuring_tables#F
table.go:100
↓ 1 callersMethodGetRule
GetRule returns the rules in the specified table and chain. Deprecated: use GetRules instead.
rule.go:61
↓ 1 callersMethodGetSetByName
GetSetByName returns the set in the specified table if matching name is found.
set.go:925
↓ 1 callersMethodInt32
Int32 unmarshals an int32 in native endianess and alignment. It returns ErrEOF when trying to read beyond the payload.
alignedbuff/alignedbuff.go:134
↓ 1 callersMethodListChains
ListChains returns currently configured chains in the kernel
chain.go:192
↓ 1 callersMethodListChainsOfTableFamily
ListChainsOfTableFamily returns currently configured chains for the specified family in the kernel. It lists all chains ins all tables if family is Ta
chain.go:236
↓ 1 callersFunctionMarshalExprData
(fam byte, e Any)
expr/expr.go:73
↓ 1 callersFunctionMatchRulesetBytes
MatchRulesetBytes is a test helper that ensures the fillRuleset modifications correspond to the provided want netlink message payloads
internal/nftest/nftest.go:81
↓ 1 callersFunctionNewRecorder
NewRecorder returns a ready-to-use Recorder.
internal/nftest/nftest.go:52
↓ 1 callersMethodPutUint16
PutUint16 marshals an uint16 in native endianess and alignment.
alignedbuff/alignedbuff.go:210
↓ 1 callersMethodPutUint32
PutUint32 marshals an uint32 in native endianess and alignment.
alignedbuff/alignedbuff.go:225
↓ 1 callersMethodPutUint64
PutUint64 marshals an uint64 in native endianess and alignment.
alignedbuff/alignedbuff.go:232
↓ 1 callersMethodReplaceRule
(r *Rule)
rule.go:183
↓ 1 callersMethodRequests
Requests returns the recorded netlink messages (typically nftables requests).
internal/nftest/nftest.go:47
↓ 1 callersMethodResetNamedObjects
ResetNamedObjects reset all the Obj that belongs to the given table This function always return NamedObj types
obj.go:226
↓ 1 callersMethodSetDeleteElements
SetDeleteElements deletes data points from an nftables set.
set.go:701
↓ 1 callersMethodStringWithLength
StringWithLength unmarshals a string of a given length (for non-null terminated strings)
alignedbuff/alignedbuff.go:160
↓ 1 callersMethodUint16
Uint16 unmarshals an uint16 in native endianess and alignment. It returns ErrEOF when trying to read beyond the payload.
alignedbuff/alignedbuff.go:90
↓ 1 callersMethodUint32
Uint32 unmarshals an uint32 in native endianess and alignment. It returns ErrEOF when trying to read beyond the payload.
alignedbuff/alignedbuff.go:112
↓ 1 callersMethodUint64
Uint64 unmarshals an uint64 in native endianess and alignment. It returns ErrEOF when trying to read beyond the payload.
alignedbuff/alignedbuff.go:123
↓ 1 callersFunctionWithSockOptions
WithSockOptions sets the specified socket options when creating a new netlink connection.
conn.go:111
↓ 1 callersFunctionapplyNFTRuleset
(scriptPath string)
integration/nft_test.go:231
↓ 1 callersFunctionbatch
(messages []netlink.Message)
conn.go:349
↓ 1 callersMethoddata
()
obj.go:67
↓ 1 callersMethoddecode
(fam byte)
set.go:296
↓ 1 callersFunctiondevsFromMsg
(b []byte)
flowtable.go:289
↓ 1 callersFunctionexprsBytesFromName
exprsBytesFromName parses raw expressions bytes based on provided expr name
expr/expr.go:84
↓ 1 callersFunctionexprsFromBytes
exprsFromBytes parses nested raw expressions bytes to construct nftables expressions
expr/expr.go:99
↓ 1 callersMethodfamily
()
obj.go:86
↓ 1 callersFunctionftsFromMsg
(msg netlink.Message)
flowtable.go:228
↓ 1 callersFunctionftsHookFromMsg
(b []byte)
flowtable.go:260
↓ 1 callersFunctiongenFromMsg
(msg netlink.Message)
gen.go:18
↓ 1 callersMethodgetFlowtables
(t *Table)
flowtable.go:193
↓ 1 callersFunctionhookFromMsg
(b []byte)
chain.go:307
↓ 1 callersFunctionifname
(n string)
integration/nft_test.go:33
↓ 1 callersFunctionlimitTime
(value uint64)
expr/limit.go:48
↓ 1 callersFunctionlinediff
linediff returns a side-by-side diff of two nfdump() return values, flagging lines which are not equal with an exclamation point prefix.
internal/nftest/nftest.go:125
↓ 1 callersMethodmarshalAB
(fam TableFamily, rev uint32, ab *alignedbuff.AlignedBuff)
xt/target_masquerade_ip.go:56
↓ 1 callersMethodmarshalData
(fam byte)
expr/tproxy.go:53
↓ 1 callersMethodmarshalData
(fam byte)
expr/fib.go:50
↓ 1 callersMethodmarshalData
(fam byte)
expr/redirect.go:43
↓ 1 callersMethodmarshalData
(fam byte)
expr/numgen.go:46
↓ 1 callersMethodmarshalData
(fam byte)
expr/nat.go:71
↓ 1 callersMethodmarshalData
(fam byte)
expr/immediate.go:42
↓ 1 callersMethodmarshalData
(fam byte)
expr/ct.go:131
↓ 1 callersMethodmarshalData
(fam byte)
expr/ct.go:212
↓ 1 callersMethodmarshalData
(fam byte)
expr/ct.go:280
↓ 1 callersMethodmarshalData
(fam byte)
expr/ct.go:339
↓ 1 callersMethodmarshalData
(fam byte)
expr/payload.go:72
↓ 1 callersMethodmarshalData
(fam byte)
expr/bitwise.go:44
↓ 1 callersMethodmarshalData
(fam byte)
expr/match.go:31
↓ 1 callersMethodmarshalData
(fam byte)
expr/hash.go:54
↓ 1 callersMethodmarshalData
(fam byte)
expr/target.go:34
↓ 1 callersMethodmarshalData
(fam byte)
expr/reject.go:41
↓ 1 callersMethodmarshalData
(fam byte)
expr/quota.go:44
↓ 1 callersMethodmarshalData
(fam byte)
expr/range.go:45
↓ 1 callersMethodmarshalData
(fam byte)
expr/counter.go:42
← previousnext →101–200 of 499, ranked by callers