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

Method marshalData

expr/flow_offload.go:42–46  ·  view source on GitHub ↗
(fam byte)

Source from the content-addressed store, hash-verified

40}
41
42func (e *FlowOffload) marshalData(fam byte) ([]byte, error) {
43 return netlink.MarshalAttributes([]netlink.Attribute{
44 {Type: NFTNL_EXPR_FLOW_TABLE_NAME, Data: []byte(e.Name)},
45 })
46}
47
48func (e *FlowOffload) unmarshal(fam byte, data []byte) error {
49 ad, err := netlink.NewAttributeDecoder(data)

Callers 1

marshalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected