[test] Make changes in test file to reflect Chain Policy field changes.

This commit is contained in:
Maxime Demode 2019-10-16 11:44:15 +02:00
parent 9c2cb3eeea
commit 65889cb04c
1 changed files with 2 additions and 1 deletions

View File

@ -2327,13 +2327,14 @@ func TestSet4(t *testing.T) {
Name: "ipv4table",
Family: nftables.TableFamilyIPv4,
}
defPol := nftables.ChainPolicyAccept
ch := &nftables.Chain{
Name: "ipv4chain-2",
Table: tbl,
Type: nftables.ChainTypeNAT,
Priority: nftables.ChainPriorityNATDest,
Hooknum: nftables.ChainHookPrerouting,
Policy: 1, // TODO
Policy: &defPol,
}
set := nftables.Set{
Anonymous: false,