wireless-ap: Enable 802.11w by default
[people/ms/network.git] / test / constants.sh
1 #!/bin/bash
2
3 INVALID_IPv4_NETWORKS=(
4         2001:470:1f09:1249::
5         2001:470:1f09:1249::/256
6         2001:470:1f09:1249::/-20
7         2001:470:6ef3::
8         192.168.101.0/224
9         192.168.190.0/-23
10         1.2.3.X/abc
11         1.2.3.4/33
12         a.b.c.d/24
13         a.b.c.d/e
14         1.2.3.4/e
15 )
16
17 INVALID_IPv6_NETWORKS=(
18         192.168.101.0/24
19         192.168.190.0/23
20         1.2.3.X/abc
21         1.2.3.4/33
22         a.b.c.d/24
23         a.b.c.d/e
24         1.2.3.4/e
25         2001:470:1f09:1249::
26         2001:470:1f09:1249::/256
27         2001:470:1f09:1249::/-20
28         2001:470:6ef3::
29 )
30
31
32 INVALID_NETWORKS=(
33         1.2.3.X/abc
34         1.2.3.4/33
35         a.b.c.d/24
36         a.b.c.d/e
37         1.2.3.4/e
38         2001:470:6ef3::
39         2001:470:1f09:1249::
40         2001:470:1f09:1249::/256
41         2001:470:1f09:1249::/-20
42         1.2.3.4/33
43         1.2.3.4/-33
44         192.168.106.1
45         8.8.8.8
46 )
47
48
49 VALID_IPv4_NETWORKS=(
50         1.2.3.4/24
51         192.168.101.0/24
52         1.2.3.4/32
53 )
54
55 VALID_IPv6_NETWORKS=(
56         2001:470:1f09:1249::/64
57         2001:470:6ef3::/48
58 )
59
60 VALID_NETWORKS=( "${VALID_IPv4_NETWORKS[@]}" "${VALID_IPv6_NETWORKS[@]}")
61
62
63
64 VALID_IPv4_ADDRESSES=(
65         12.3.4.5/32
66         192.168.101.254
67         127.0.0.1
68 )
69
70 VALID_IPv6_ADDRESSES=(
71         2001:470:1f08:1249::2
72         2001:470:1f08:1249::1
73         ::1
74
75 )
76
77 # We can merge these two array because bot of them conatin only vaild IP adresses
78 VALID_ADDRESSES=("${VALID_IPv4_ADDRESSES[@]}" "${VALID_IPv6_ADDRESSES[@]}")
79
80
81
82 INVALID_IPv4_ADDRESSES=(
83         1.2.3.X/abc
84         a.b.c.d/24
85         a.b.c.d/e
86         1.2.3.500
87         1.2.3.4/33
88         1.2.3.4/e
89         ::1
90         2001:470:1f08:1249::2
91         2001:470:1f08:1249::1
92 )
93
94
95 INVALID_IPv6_ADDRESSES=(
96         1200::AB00:1234::2552:7777:1313
97         1200:0000:AB00:1234:O000:2552:7777:1313
98         127.0.0.0.1
99         "::1/256"
100         
101 )
102
103 # we cannot just merge the 2 array above because 127.0.0.0.1 is a valid IPv4 addresse but an invalid IPv6 address
104 INVALID_ADDRESSES=(
105         1200::AB00:1234::2552:7777:1313
106         1200:0000:AB00:1234:O000:2552:7777:1313
107         "::1/256"
108         1.2.3.X/abc
109         a.b.c.d/24
110         a.b.c.d/e
111         1.2.3.500
112         1.2.3.4/33
113         1.2.3.4/e
114 )
115
116 IP_TEST_SUPPORTED_PROTOCOLS=(
117         ipv4
118         ipv6
119 )
120
121 IP_TEST_UNSUPPORTED_PROTOCOLS=(
122         ""
123         ipb6
124         ipc6
125         upv6
126         ipb4
127         ipc4
128         upv4
129 )