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

Function devsFromMsg

flowtable.go:289–306  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

287}
288
289func devsFromMsg(b []byte) ([]string, error) {
290 ad, err := netlink.NewAttributeDecoder(b)
291 if err != nil {
292 return nil, err
293 }
294
295 ad.ByteOrder = binary.BigEndian
296
297 devs := make([]string, 0)
298 for ad.Next() {
299 switch ad.Type() {
300 case NFTA_DEVICE_NAME:
301 devs = append(devs, ad.String())
302 }
303 }
304
305 return devs, nil
306}

Callers 1

ftsHookFromMsgFunction · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…