blob: 21430b0d81f4ed44ca27662a9f5759c745fffda4 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
# SPDX-License-Identifier: LGPL-2.1-or-later
[Match]
Name=dummy98
[Network]
IPv6AcceptRA=no
Address=10.1.2.3/16
Address=10.1.2.4/16
Address=10.2.2.4/16
Address=2001:db8:0:f101::15/64
Address=2001:db8:0:f101::16/64
Address=2001:db8:0:f102::15/64
# these lines are ignored
Address=hogehoge
Address=foofoo
## With Label=
[Address]
Address=10.3.1.1/24
Label=label1
[Address]
Address=10.3.2.1/24
Label=label2
[Address]
Address=10.3.3.1/24
Label=
## With Broadcast=
[Address]
Address=10.4.1.1/24
Broadcast=no
[Address]
Address=10.4.2.1/24
Broadcast=yes
[Address]
Address=10.4.3.1/24
Broadcast=10.4.3.63
[Address]
# Invalid broadcast
Address=10.4.4.1/24
Broadcast=yes
Broadcast=
Broadcast=::1
[Address]
# broadcast cannot set for IPv6 address
Address=2001:db8:0:f101::2/64
Broadcast=::1
## With/without Peer=
[Address]
Address=10.5.1.1/24
Peer=10.5.1.101/24
[Address]
Address=10.5.2.1/24
Peer=10.5.2.101/24
[Address]
Address=10.5.3.1/24
#Peer= (no-peer)
[Address]
Address=2001:db8:0:f103::1/128
Peer=2001:db8:0:f103::101/128
[Address]
Address=2001:db8:0:f103::2/128
Peer=2001:db8:0:f103::102/128
[Address]
Address=2001:db8:0:f103::3/128
#Peer= (no-peer)
[Address]
# address and peer must be in the same family
Address=10.5.4.1/24
Peer=2001:db8:0:f103::10/128
[Address]
# address and peer must be in the same family
Address=2001:db8:0:f103::4/64
Peer=192.168.0.1
[Address]
# invalid peer, this section will be ignored
Address=10.5.5.1/24
Peer=hoge
## With Scope=
[Address]
Address=10.6.1.1/24
Scope=global
[Address]
Address=10.6.2.1/24
Scope=link
## For lifetime
[Address]
Address=10.7.1.1/24
PreferredLifetime=infinity
[Address]
Address=10.7.2.1/24
PreferredLifetime=0
[Address]
Address=2001:db8:0:f104::1/64
PreferredLifetime=infinity
[Address]
Address=2001:db8:0:f104::2/64
PreferredLifetime=0
## For RouteMetric=
[Address]
Address=10.8.1.1/24
RouteMetric=128
[Address]
# invalid metric
Address=10.8.2.1/24
RouteMetric=hoge
[Address]
Address=2001:db8:0:f105::1/64
RouteMetric=128
## For flags
[Address]
Address=10.9.1.1/24
AddPrefixRoute=no
[Address]
Address=10.9.2.1/24
AddPrefixRoute=yes
[Address]
# invalid flags for IPv4 address
Address=10.9.3.1/24
HomeAddress=yes
ManageTemporaryAddress=yes
[Address]
Address=2001:db8:0:f106::1/64
HomeAddress=no
ManageTemporaryAddress=no
AddPrefixRoute=no
[Address]
Address=2001:db8:0:f106::2/64
HomeAddress=yes
ManageTemporaryAddress=yes
AddPrefixRoute=yes
# TODO: add tests for AutoJoin=
## null address
[Address]
Address=0.0.0.0/16
Label=subnet16
[Address]
Address=0.0.0.0/24
Label=subnet24
[Address]
Address=::/73
[Address]
Address=::/74
[Address]
Address=10.10.1.1/24
# just a random label which should exist
NetLabel=system_u:object_r:root_t:s0
NFTSet=address:inet:sd_test:addr4 prefix:inet:sd_test:network4 ifindex:inet:sd_test:ifindex
|