fixed extraHeader in SetAddElements

This commit is contained in:
Leon Vack 2020-01-12 16:07:37 +01:00 committed by Leon Vack
parent 80a905063c
commit 19eb6eac29
No known key found for this signature in database
GPG Key ID: B66DAB934BCECCB7
1 changed files with 1 additions and 1 deletions

2
set.go
View File

@ -170,7 +170,7 @@ func (cc *Conn) SetAddElements(s *Set, vals []SetElement) error {
Type: netlink.HeaderType((unix.NFNL_SUBSYS_NFTABLES << 8) | unix.NFT_MSG_NEWSETELEM),
Flags: netlink.Request | netlink.Acknowledge | netlink.Create,
},
Data: append(extraHeader(unix.NFTA_SET_NAME, 0), cc.marshalAttr(elements)...),
Data: append(extraHeader(uint8(s.Table.Family), 0), cc.marshalAttr(elements)...),
})
return nil