From 26357f7f2174fa18637009b16827e7c4cd82de0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 12 Jan 2023 14:28:17 +0100 Subject: [PATCH] pyroute2 fixed NFTA_SET_ELEM_LIST_TABLE https://github.com/svinota/pyroute2/commit/f3cb21f79df5071754b6a45494fb4047b70b8fe4 --- src/capport/utils/nft_set.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/capport/utils/nft_set.py b/src/capport/utils/nft_set.py index 7731536..15b4d63 100644 --- a/src/capport/utils/nft_set.py +++ b/src/capport/utils/nft_set.py @@ -58,7 +58,7 @@ class NftSet: pyroute2.netlink.NLM_F_CREATE, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', NFTA_SET_ELEM_LIST_ELEMENTS=ser_entries, ), @@ -68,7 +68,7 @@ class NftSet: _nftsocket.NFT_MSG_DELSETELEM, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', NFTA_SET_ELEM_LIST_ELEMENTS=ser_entries, ), @@ -79,7 +79,7 @@ class NftSet: pyroute2.netlink.NLM_F_CREATE | pyroute2.netlink.NLM_F_EXCL, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', NFTA_SET_ELEM_LIST_ELEMENTS=ser_entries_with_timeout, ), @@ -106,7 +106,7 @@ class NftSet: pyroute2.netlink.NLM_F_CREATE, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', NFTA_SET_ELEM_LIST_ELEMENTS=ser_entries, ), @@ -116,7 +116,7 @@ class NftSet: _nftsocket.NFT_MSG_DELSETELEM, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', NFTA_SET_ELEM_LIST_ELEMENTS=ser_entries, ), @@ -137,7 +137,7 @@ class NftSet: _nftsocket.NFT_MSG_GETSETELEM, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', ) ) @@ -158,7 +158,7 @@ class NftSet: _nftsocket.NFT_MSG_DELSETELEM, nfgen_family=NFPROTO_INET, attrs=dict( - NFTA_SET_TABLE='captive_mark', + NFTA_SET_ELEM_LIST_TABLE='captive_mark', NFTA_SET_ELEM_LIST_SET='allowed', ) )