Created attachment 263255 [details] [PATCH] sbin/ifconfig/ifconfig.8 `sys/net/if.h` limits interfaces at 16 bytes including terminating null with `IF_NAMESIZE`. This limit is not documented in ifconfig(8) and the error messages yielded by picking a name that is too long do not make it obvious what the limit actually is. One has to dig around in /usr/src to find the actual limit. e.g. > ifconfig lo0 name thisnameiswaytoolongletshaveanerror42 < ifconfig: ioctl SIOCSIFNAME (set name): File name too long The included patch documents this maximum length in the ifconfig manual page giving users a slightly better chance of finding it. The patch explains the maximum length as 15 characters to make it easier to understand and match similar limits discussed elsewhere in this manual page.
This has been a constant problem with BastilleBSD as well...
Accepted. I will merge this tonight, unless someone else wants to.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=832cd05905980d0f6547bf02745b054c1f4af1eb commit 832cd05905980d0f6547bf02745b054c1f4af1eb Author: William Carrel <william.a@carrel.org> AuthorDate: 2025-10-30 18:39:29 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2025-10-30 18:40:45 +0000 ifconfig.8: Mention max name length PR: 289113 MFC after: 3 days sbin/ifconfig/ifconfig.8 | 3 +++ 1 file changed, 3 insertions(+)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e2a87c08171acd5c3a037c1dd74a5504ff9cc881 commit e2a87c08171acd5c3a037c1dd74a5504ff9cc881 Author: William Carrel <william.a@carrel.org> AuthorDate: 2025-10-30 18:39:29 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2025-11-03 23:27:19 +0000 ifconfig.8: Mention max name length PR: 289113 MFC after: 3 days (cherry picked from commit 832cd05905980d0f6547bf02745b054c1f4af1eb) sbin/ifconfig/ifconfig.8 | 3 +++ 1 file changed, 3 insertions(+)
A commit in branch releng/15.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6efc9b0e6a6745425098e68e0f0cf375f3d1cb8e commit 6efc9b0e6a6745425098e68e0f0cf375f3d1cb8e Author: William Carrel <william.a@carrel.org> AuthorDate: 2025-10-30 18:39:29 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-11-07 04:19:16 +0000 ifconfig.8: Mention max name length Approved by: re (cperciva) PR: 289113 MFC after: 3 days (cherry picked from commit 832cd05905980d0f6547bf02745b054c1f4af1eb) (cherry picked from commit e2a87c08171acd5c3a037c1dd74a5504ff9cc881) sbin/ifconfig/ifconfig.8 | 3 +++ 1 file changed, 3 insertions(+)
^Triage: committed and MFCed.