Commit 8e677c9
committed
ncm-network: Restrictions on device naming should match kernel
That is:
- Maximum 15 characters (16 including null)
- No whitespace
- No forward-slashes
- No colons (but they are allowed in filenames to label alias IPs)
While we're at it, make the regexp in the module absolute, as we're actually matching filenames there.
Similar validation should also happen in the schema as only throwing errors at runtime is _really_ unfriendly.1 parent 124f057 commit 8e677c9
2 files changed
Lines changed: 15 additions & 27 deletions
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 159 | + | |
| 160 | + | |
180 | 161 | | |
181 | 162 | | |
182 | 163 | | |
| |||
228 | 209 | | |
229 | 210 | | |
230 | 211 | | |
231 | | - | |
| 212 | + | |
| 213 | + | |
232 | 214 | | |
233 | 215 | | |
234 | | - | |
235 | 216 | | |
236 | 217 | | |
237 | 218 | | |
| |||
0 commit comments