Debian Codegraph @

tests/shell/testcases/optionals/comments_objects_dup_0

raw
1 #!/bin/bash
2
3 EXPECTED='table ip filter {
4 quota q {
5 over 1200 bytes
6 comment "test1"
7 comment "test1"
8 }
9 }
10 '
11
12 $NFT -f - <<< "$EXPECTED"
13 if [ $? -eq 0 ]
14 then
15 exit 1
16 fi
17
18 EXPECTED='table ip filter {
19 counter c {
20 packets 0 bytes 0
21 comment "test2"
22 comment "test2"
23 }
24 }
25 '
26
27 $NFT -f - <<< "$EXPECTED"
28 if [ $? -eq 0 ]
29 then
30 exit 1
31 fi
32
33 EXPECTED='table ip filter {
34 ct helper h {
35 type "sip" protocol tcp
36 l3proto ip
37 comment "test3"
38 comment "test3"
39 }
40 }
41 '
42
43 $NFT -f - <<< "$EXPECTED"
44 if [ $? -eq 0 ]
45 then
46 exit 1
47 fi
48
49 EXPECTED='table ip filter {
50 ct expectation e {
51 protocol tcp
52 dport 666
53 timeout 100ms
54 size 96
55 l3proto ip
56 comment "test4"
57 comment "test4"
58 }
59 }
60 '
61
62 $NFT -f - <<< "$EXPECTED"
63 if [ $? -eq 0 ]
64 then
65 exit 1
66 fi
67
68 EXPECTED='table ip filter {
69 limit l {
70 rate 400/hour
71 comment "test5"
72 comment "test5"
73 }
74 }
75 '
76
77 $NFT -f - <<< "$EXPECTED"
78 if [ $? -eq 0 ]
79 then
80 exit 1
81 fi
82
83 EXPECTED='table ip filter {
84 synproxy s {
85 mss 1460
86 wscale 2
87 comment "test6"
88 comment "test6"
89 }
90 }
91 '
92
93 $NFT -f - <<< "$EXPECTED"
94 if [ $? -eq 0 ]
95 then
96 exit 1
97 fi