From 196cccaf9df00303f95bd795b94d702e33e10f07 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Mon, 30 Dec 2019 12:09:46 -0500 Subject: [PATCH] Switch to use correct attribute name Signed-off-by: Serguei Bezverkhi --- set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set.go b/set.go index ba50e34..6fa1645 100644 --- a/set.go +++ b/set.go @@ -248,7 +248,7 @@ func (s *Set) makeElemList(vals []SetElement, id uint32) ([]netlink.Attribute, e return []netlink.Attribute{ {Type: unix.NFTA_SET_NAME, Data: []byte(s.Name + "\x00")}, - {Type: unix.NFTA_SET_KEY_TYPE, Data: binaryutil.BigEndian.PutUint32(id)}, + {Type: unix.NFTA_LOOKUP_SET_ID, Data: binaryutil.BigEndian.PutUint32(id)}, {Type: unix.NFTA_SET_TABLE, Data: []byte(s.Table.Name + "\x00")}, {Type: unix.NFTA_SET_ELEM_LIST_ELEMENTS | unix.NLA_F_NESTED, Data: encodedElem}, }, nil