Skip to content

Commit 5537404

Browse files
committed
Merge pull request #51 from ldx/modprobe
Modprobe ip_tables when ip4tc is loaded.
2 parents 5a4e679 + c9ba299 commit 5537404

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iptc/ip4tc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
import sys
1010
import weakref
1111

12-
from util import find_library
12+
from util import find_library, load_kernel
1313
from xtables import (XT_INV_PROTO, NFPROTO_IPV4, XTablesError, xtables,
1414
xt_align, xt_counters, xt_entry_target, xt_entry_match)
1515

1616
__all__ = ["Table", "Chain", "Rule", "Match", "Target", "Policy", "IPTCError"]
1717

18+
load_kernel("ip_tables")
19+
1820
_IFNAMSIZ = 16
1921

2022
_libc = ct.CDLL("libc.so.6")

0 commit comments

Comments
 (0)