https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289113

            Bug ID: 289113
           Summary: [patch] ifconfig(8) should document max length of
                    `name`
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 263255
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=263255&action=edit
[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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to