blob: df680b9cc3060ab0e0d1f2a97a3cefe61d4db6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# create
# pass add -n 10 10.11 10.11.12 10.11.12.13
4/4 addresses added (dummy).
# pass add -nf-
4/4 addresses added (dummy).
# pass add -nqv 10 10.11 10.11.12 10.11.12.13
A 10.0.0.0/8
A 10.11.0.0/16
A 10.11.12.0/24
A 10.11.12.13
# pass add -nqvv 10 10.11 10.11.12 10.11.12.13
A 10.0.0.0/8
A 10.11.0.0/16
A 10.11.12.0/24
A 10.11.12.13
# pass add 10 10.11 10.11.12 10.11.12.13
4/4 addresses added.
# pass delete -n 10.11.0.0/16 10.11.12.0/24
2/2 addresses deleted (dummy).
# pass delete -nf-
2/2 addresses deleted (dummy).
# pass delete -nqv 10.11.0.0/16 10.11.12.0/24
D 10.11.0.0/16
D 10.11.12.0/24
# pass delete -nqvv 10.11.0.0/16 10.11.12.0/24
D 10.11.0.0/16
D 10.11.12.0/24
# pass delete 10.11.0.0/16 10.11.12.0/24
2/2 addresses deleted.
# pass replace -n 10.0/8 172.16.0/12 192.168.0/16
1 addresses deleted (dummy).
2 addresses added (dummy).
# pass replace -nf-
1 addresses deleted (dummy).
2 addresses added (dummy).
# pass replace -nqv 10.0/8 172.16.0/12 192.168.0/16
A 172.16.0.0/12
A 192.168.0.0/16
D 10.11.12.13
# pass replace -nqvv 10.0/8 172.16.0/12 192.168.0/16
10.0.0.0/8
A 172.16.0.0/12
A 192.168.0.0/16
D 10.11.12.13
# pass replace 10.0/8 172.16.0/12 192.168.0/16
1 addresses deleted.
2 addresses added.
# pass test 10.1.1.1 172.17.1.1 192.168.1.1
3/3 addresses match.
# fail test 11.1.1.1
0/1 addresses match.
# fail test 10.1.1.1 11.1.1.1
1/2 addresses match.
# kill
1 table deleted.
ktable: 12 allocated, 12 released, 0 leaked.
kentry: 30 allocated, 30 released, 0 leaked.
|