Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2023 16:56:04 -0400
From:      Paul Procacci <pprocacci@gmail.com>
To:        listac@nebelschwaden.de
Cc:        Freebsd-questions@freebsd.org
Subject:   Re: limit of network interface name length?
Message-ID:  <CAFbbPugTX%2B8ouxk7_xxCJ9QouPJTdfWnLE-QXQTNyxMdWwj8zQ@mail.gmail.com>
In-Reply-To: <827d9e2e-5416-42ca-9ee1-dde398a23b21@nebelschwaden.de>
References:  <827d9e2e-5416-42ca-9ee1-dde398a23b21@nebelschwaden.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000074fbf506082c1a21
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 20, 2023 at 4:31=E2=80=AFPM Ede Wolf <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=3D"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

--=20
__________________

:(){ :|:& };:

--00000000000074fbf506082c1a21
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div dir=3D"ltr"><br></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Oct 20, 2023 at 4:31=E2=
=80=AFPM Ede Wolf &lt;<a href=3D"mailto:listac@nebelschwaden.de">listac@neb=
elschwaden.de</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" sty=
le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi=
ng-left:1ex">Hello,<br>
<br>
I am trying to rename a couple of interfaces, and it works for some, for <b=
r>
others not.<br>
<br>
Trying to find what I may be doing wrong, a patter that seems to emerge, <b=
r>
is, that if names longer than 14Bytes are not supported. Maybe the &quot; <=
br>
make up for the missing bytes up to 16.<br>
<br>
F.e.:<br>
<br>
ifconfig_epair6a_name=3D&quot;jail_template_local&quot;<br>
<br>
does not work. The interface names remaines epair6a.<br>
Is that documented anywhere?<br>
<br>
Or can anyone confirm this limit on solid grounds? Just to make sure I <br>
have not done anything other wrong.<br>
<br>
Thanks<br>
<br>
Ede<br>
<br>
</blockquote></div></div><div><br></div><div>It&#39;s defined as 16 bytes.<=
br><br>&quot;/*<br>=C2=A0* Length of interface external name, including ter=
minating &#39;\0&#39;.<br>=C2=A0* Note: this is the same size as a generic =
device&#39;s external name.<br>=C2=A0*/<br>#define =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 IF_NAMESIZE =C2=A0 =C2=A0 16<br>#if __BSD_VISIBLE<br>#define =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 IFNAMSIZ =C2=A0 =C2=A0 =C2=A0 =C2=A0IF_NAMESIZE&quot;<br>=
<br></div><div>~Paul</div><div><br></div><div><span class=3D"gmail_signatur=
e_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">________=
__________<br><br>:(){ :|:&amp; };:</div></div></div>

--00000000000074fbf506082c1a21--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPugTX%2B8ouxk7_xxCJ9QouPJTdfWnLE-QXQTNyxMdWwj8zQ>