Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2023 23:36:23 +0200
From:      Ede Wolf <listac@nebelschwaden.de>
To:        Paul Procacci <pprocacci@gmail.com>
Cc:        Freebsd-questions@freebsd.org
Subject:   Re: limit of network interface name length?
Message-ID:  <3b2c44f1-2b5b-482f-972b-5a273203db9b@nebelschwaden.de>
In-Reply-To: <CAFbbPugTX%2B8ouxk7_xxCJ9QouPJTdfWnLE-QXQTNyxMdWwj8zQ@mail.gmail.com>
References:  <827d9e2e-5416-42ca-9ee1-dde398a23b21@nebelschwaden.de> <CAFbbPugTX%2B8ouxk7_xxCJ9QouPJTdfWnLE-QXQTNyxMdWwj8zQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks very much!

Am 20.10.23 um 22:56 schrieb Paul Procacci:
> 
> 
> On Fri, Oct 20, 2023 at 4:31 PM Ede Wolf <listac@nebelschwaden.de 
> <mailto:listac@nebelschwaden.de>> wrote:
> 
>     Hello,
> 
>     I am trying to rename a couple of interfaces, and it works for some,
>     for
>     others not.
> 
>     Trying to find what I may be doing wrong, a patter that seems to
>     emerge,
>     is, that if names longer than 14Bytes are not supported. Maybe the "
>     make up for the missing bytes up to 16.
> 
>     F.e.:
> 
>     ifconfig_epair6a_name="jail_template_local"
> 
>     does not work. The interface names remaines epair6a.
>     Is that documented anywhere?
> 
>     Or can anyone confirm this limit on solid grounds? Just to make sure I
>     have not done anything other wrong.
> 
>     Thanks
> 
>     Ede
> 
> 
> It's defined as 16 bytes.
> 
> "/*
>   * Length of interface external name, including terminating '\0'.
>   * Note: this is the same size as a generic device's external name.
>   */
> #define         IF_NAMESIZE     16
> #if __BSD_VISIBLE
> #define         IFNAMSIZ        IF_NAMESIZE"
> 
> ~Paul
> 
> -- 
> __________________
> 
> :(){ :|:& };:




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3b2c44f1-2b5b-482f-972b-5a273203db9b>