Debian Codegraph @

tests/shell/testcases/listing/0016anonymous_0

raw
1 #!/bin/bash
2
3 $NFT add table x
4 $NFT add chain x y
5 $NFT add rule x y ip saddr { 1.1.1.1 }
6 $NFT add rule x y meta mark set ip saddr map { 1.1.1.1 : 2 }
7
8 $NFT list set x __set0 &>/dev/null
9 ret=$?
10 if [ $ret -eq 0 ]
11 then
12 exit 1
13 fi
14
15 $NFT flush set x __set0 &>/dev/null
16 ret=$?
17 if [ $ret -eq 0 ]
18 then
19 exit 1
20 fi
21
22 $NFT list map x __map0 &>/dev/null
23 if [ $ret -eq 0 ]
24 then
25 exit 1
26 fi
27
28 $NFT flush map x __map0 &>/dev/null
29 ret=$?
30 if [ $ret -eq 0 ]
31 then
32 exit 1
33 fi