Commit 872fffb
committed
helpers: fix maximum interface name length check
Update helpers to enforce a maximum interface name length of 15
characters, matching the actual limit. In Linux, the last byte of the
16-byte array is reserved for the null terminator.
Signed-off-by: Tomas Novotny <tomas@novotny.cz>1 parent 12afbda commit 872fffb
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments