(fam byte)
| 40 | } |
| 41 | |
| 42 | func (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 | |
| 48 | func (e *FlowOffload) unmarshal(fam byte, data []byte) error { |
| 49 | ad, err := netlink.NewAttributeDecoder(data) |