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

Function parseRuleFromMsg

monitor.go:373–377  ·  view source on GitHub ↗
(msg netlink.Message)

Source from the content-addressed store, hash-verified

371}
372
373func parseRuleFromMsg(msg netlink.Message) (*Rule, error) {
374 genmsg := &NFGenMsg{}
375 genmsg.Decode(msg.Data[:4])
376 return ruleFromMsg(TableFamily(genmsg.NFGenFamily), msg)
377}

Callers 1

monitorMethod · 0.85

Calls 3

DecodeMethod · 0.95
ruleFromMsgFunction · 0.85
TableFamilyTypeAlias · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…