[test] Make changes in test file to reflect Chain Policy field changes.
This commit is contained in:
parent
9c2cb3eeea
commit
65889cb04c
|
@ -2327,13 +2327,14 @@ func TestSet4(t *testing.T) {
|
||||||
Name: "ipv4table",
|
Name: "ipv4table",
|
||||||
Family: nftables.TableFamilyIPv4,
|
Family: nftables.TableFamilyIPv4,
|
||||||
}
|
}
|
||||||
|
defPol := nftables.ChainPolicyAccept
|
||||||
ch := &nftables.Chain{
|
ch := &nftables.Chain{
|
||||||
Name: "ipv4chain-2",
|
Name: "ipv4chain-2",
|
||||||
Table: tbl,
|
Table: tbl,
|
||||||
Type: nftables.ChainTypeNAT,
|
Type: nftables.ChainTypeNAT,
|
||||||
Priority: nftables.ChainPriorityNATDest,
|
Priority: nftables.ChainPriorityNATDest,
|
||||||
Hooknum: nftables.ChainHookPrerouting,
|
Hooknum: nftables.ChainHookPrerouting,
|
||||||
Policy: 1, // TODO
|
Policy: &defPol,
|
||||||
}
|
}
|
||||||
set := nftables.Set{
|
set := nftables.Set{
|
||||||
Anonymous: false,
|
Anonymous: false,
|
||||||
|
|
Loading…
Reference in New Issue