nftables ¤
Classes:
-
NftFields– -
Expr– -
Rule– -
ChainHook– -
Chain– -
Set– -
Object– -
FlowtableHook– -
Flowtable– -
Table– -
Nftables–
Functions:
Attributes:
-
NFPROTO_INET– -
NFPROTO_IPV4– -
NFPROTO_ARP– -
NFPROTO_NETDEV– -
NFPROTO_BRIDGE– -
NFPROTO_IPV6– -
nftables_table_family–
nftables_table_family module-attribute ¤
nftables_table_family = {
"inet": NFPROTO_INET,
"ip": NFPROTO_IPV4,
"arp": NFPROTO_ARP,
"netdev": NFPROTO_NETDEV,
"bridge": NFPROTO_BRIDGE,
"ip6": NFPROTO_IPV6,
}
NftFields ¤
Bases: object
Methods:
Rule ¤
Rule(addr: Value, chain: 'Chain')
Bases: NftFields
Methods:
-
find– -
iter_exprs– -
print– -
__getattr__– -
get_hook_list_dev_names– -
print_fields–
Attributes:
find classmethod ¤
find(
table_name: str,
table_family: int,
chain_name: str,
rule_id: int,
nsid: int | None = None,
) -> Iterator["Rule"]
Chain ¤
Chain(addr: Value)
Bases: NftFields
Methods:
-
find– -
iter_rules– -
print– -
__getattr__– -
get_hook_list_dev_names– -
print_fields–
Attributes:
-
bound(int) – -
genmask(int) – -
handle(int) – -
use(int) – -
flags(int) – -
name(str) – -
hook(ChainHook) – -
userdata(bytearray) – -
policy(int) – -
type(str) – -
table('Table') – -
basechain(Value | None) –
find classmethod ¤
find(
table_family: int | None = None,
table_name: str | None = None,
chain_name: str | None = None,
nsid: int | None = None,
) -> Iterator["Chain"]
Set ¤
Set(addr: Value)
Bases: NftFields
Methods:
Attributes:
-
use(int) – -
dead(int) – -
genmask(int) – -
field_count(int) – -
num_exprs(int) – -
name(str) – -
flags(int) – -
ktype(int) – -
klen(int) – -
dtype(int) – -
dlen(int) – -
policy(int) – -
timeout(int) – -
gc_int(int) – -
objtype(int) – -
handle(int) – -
nelems(int) – -
desc_size(int) – -
desc_concat(list[int]) – -
table('Table') – -
userdata(bytearray) –
Object ¤
Object(addr: Value)
Flowtable ¤
Flowtable(addr: Value)
Table ¤
Table(addr: Value)
Bases: NftFields
Methods:
-
find– -
iter_chains– -
iter_sets– -
iter_flowtables– -
iter_objects– -
nested_print– -
print– -
__getattr__– -
get_hook_list_dev_names– -
print_fields–
Attributes:
find classmethod ¤
find(
table_name: str | None = None,
table_family: int | None = None,
nsid: int | None = None,
) -> Iterator["Table"]