From 409814f252bac422f1ca97e0c7a4aa0e368fb09b Mon Sep 17 00:00:00 2001 From: Vilmos Nebehaj Date: Mon, 6 Feb 2017 11:34:21 -0800 Subject: [PATCH] First stab at supporting xtables v12 See #203 --- iptc/xtables.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iptc/xtables.py b/iptc/xtables.py index 2cfccbb..20d650a 100644 --- a/iptc/xtables.py +++ b/iptc/xtables.py @@ -666,6 +666,7 @@ class _xtables_target_v10(ct.Structure): _xtables_target_v11 = _xtables_target_v10 +_xtables_target_v12 = _xtables_target_v10 class xtables_target(ct.Union): @@ -679,7 +680,8 @@ class xtables_target(ct.Union): # Apparently v8 was skipped ("v9", _xtables_target_v9), ("v10", _xtables_target_v10), - ("v11", _xtables_target_v11)] + ("v11", _xtables_target_v11), + ("v12", _xtables_target_v12)] class XTablesError(Exception):