From nobody Fri Oct 20 21:36:23 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SByZl3Ftfz4yG04 for ; Fri, 20 Oct 2023 21:36:31 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SByZl0lWxz4ct6 for ; Fri, 20 Oct 2023 21:36:31 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id 69B161E0B40; Fri, 20 Oct 2023 23:36:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1697837784; bh=FoohZS7KkvffKhOTMWhS5jPcL91F3JYDKwOkHXBxDVk=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To:From; b=lmyXrEDH9MtDtUPALAcPe88Ak10ojpF49H9WwQwIc/1pLuEUYDFetXSVnghArpcfo bQhzYckrEwuID1DoXSEbJYAGiwblU1nbzJroD2EQh9wVRD8fwjXqqqTXrPVI9VaryM 8iIEQUWWo9Stdhn7shSAx5Qj1rkIaPdSFkwlobak7gSxGot3OOlQYU5losNrHUaC/q 6XJkceCXW49B30a31teUnh27gH/kSDQ1CsEUG8g+ywwsCKXPPbZS1+WA4K7GGX1Ks6 rlwG6verox/FJw36U8/DLBZjrpNPXEKBlR8xjt8PN3pUGlVkhlK8sOdiATLb0yjXiy 2M4g+0cWZS69A== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 9B399114C09; Fri, 20 Oct 2023 23:36:23 +0200 (CEST) Message-ID: <3b2c44f1-2b5b-482f-972b-5a273203db9b@nebelschwaden.de> Date: Fri, 20 Oct 2023 23:36:23 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: limit of network interface name length? To: Paul Procacci Cc: Freebsd-questions@freebsd.org References: <827d9e2e-5416-42ca-9ee1-dde398a23b21@nebelschwaden.de> Content-Language: en-US From: Ede Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE] X-Rspamd-Queue-Id: 4SByZl0lWxz4ct6 Thanks very much! Am 20.10.23 um 22:56 schrieb Paul Procacci: > > > On Fri, Oct 20, 2023 at 4:31 PM Ede Wolf > 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 > > -- > __________________ > > :(){ :|:& };: