From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 330661993E; Fri, 28 Nov 2025 22:31:12 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id D64DD197F5; Fri, 28 Nov 2025 22:30:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail.cyberchaos.dev (mail.cyberchaos.dev [IPv6:2a0f:4ac0::3a11]) by atuin.qyliss.net (Postfix) with ESMTPS id A98441976E for ; Fri, 28 Nov 2025 22:30:53 +0000 (UTC) From: Yureka Lilian DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cyberchaos.dev; s=mail; t=1764369052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bLCZWd4J0hDqdIj8+ncVeCdMcVFYEiv60Qih3UAzXZA=; b=dpHJhEGPG+VX35PBK9vfkYkzI93z+ao3+j4Pux86vcF/2ErPVbgQMa3gpAHcLU9F8YXVB/ tBBBz9znM8VDdLAn9aBVD4PyBI8dNBkvYzybgl93TbIVP/ZXrkGyK17s8LmqD90NgFdYwQ GKq/4dhAfiAcEWXVYj6d9aqAPqEv3b0= To: devel@spectrum-os.org Subject: [PATCH v2 6/7] img/app: change to ipv6 nameserver Date: Fri, 28 Nov 2025 23:30:28 +0100 Message-ID: <20251128223038.97536-7-yureka@cyberchaos.dev> In-Reply-To: <20251128223038.97536-1-yureka@cyberchaos.dev> References: <20251128223038.97536-1-yureka@cyberchaos.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: C2A76EUYJSLHRKOOUEJFUOYXFRX3D5YM X-Message-ID-Hash: C2A76EUYJSLHRKOOUEJFUOYXFRX3D5YM X-MailFrom: yureka@cyberchaos.dev X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Yureka Lilian X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Also remove hard-coded ipv4 default route. Eventually this will be changed to have both ipv4 and ipv6 nameserver, and support IPv4 with the new router. Signed-off-by: Yureka Lilian --- img/app/image/etc/mdev/iface | 17 ----------------- img/app/image/etc/resolv.conf | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/img/app/image/etc/mdev/iface b/img/app/image/etc/mdev/iface index 95f2fa8..3241b4d 100755 --- a/img/app/image/etc/mdev/iface +++ b/img/app/image/etc/mdev/iface @@ -4,22 +4,5 @@ background { importas -Si INTERFACE - - # Our IP is encoded in the NIC-specific portion of the interface's MAC - # address. - backtick -E LOCAL_IP { - awk -PF: " - BEGIN { ex = 1 } - $1 == \"02\" && $2 == \"00\" { - printf \"100.64.%d.%d\\n\", \"0x\" $5, \"0x\" $6 - ex = 0 - } - END { exit ex } - " /sys/class/net/${INTERFACE}/address - } - - if { ip address add ${LOCAL_IP}/32 dev $INTERFACE } if { ip link set $INTERFACE up } - if { ip route add 169.254.0.1 dev $INTERFACE } - ip route add default via 169.254.0.1 dev $INTERFACE } diff --git a/img/app/image/etc/resolv.conf b/img/app/image/etc/resolv.conf index 7fcdf3a..e82c3d0 100644 --- a/img/app/image/etc/resolv.conf +++ b/img/app/image/etc/resolv.conf @@ -1,4 +1,4 @@ # SPDX-License-Identifier: CC0-1.0 # SPDX-FileCopyrightText: 2021 Alyssa Ross -nameserver 1.1.1.1 +nameserver 2606:4700:4700::1111 -- 2.51.2