MCPcopy Create free account
hub / github.com/google/nftables / extraHeader

Function extraHeader

util.go:25–30  ·  view source on GitHub ↗
(family uint8, resID uint16)

Source from the content-addressed store, hash-verified

23)
24
25func extraHeader(family uint8, resID uint16) []byte {
26 return append([]byte{
27 family,
28 unix.NFNETLINK_V0,
29 }, binaryutil.BigEndian.PutUint16(resID)...)
30}
31
32// General form of address family dependent message, see
33// https://git.netfilter.org/libnftnl/tree/include/linux/netfilter/nfnetlink.h#29

Callers 15

GetRulesMethod · 0.85
newRuleMethod · 0.85
DelRuleMethod · 0.85
SetAddElementsMethod · 0.85
AddSetMethod · 0.85
DelSetMethod · 0.85
SetDeleteElementsMethod · 0.85
FlushSetMethod · 0.85
GetSetsMethod · 0.85
GetSetByNameMethod · 0.85
GetSetElementsMethod · 0.85
AddFlowtableMethod · 0.85

Calls 1

PutUint16Method · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…