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 476241FDF1; Sat, 29 Nov 2025 19:47:27 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 6149A1FD4E; Sat, 29 Nov 2025 19:47:14 +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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail.cyberchaos.dev (mail.cyberchaos.dev [195.39.247.168]) by atuin.qyliss.net (Postfix) with ESMTPS id 87BDF1FD86 for ; Sat, 29 Nov 2025 19:47:10 +0000 (UTC) From: Yureka Lilian DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cyberchaos.dev; s=mail; t=1764445629; 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=qooJyxVtDXOmnPWXV+aA2tvqIzGYFaG0wBjEntysi2A=; b=bzucCjXIX4mARX4yi8y8wFiB0T8CmEKLbikKpW+ywMm3S3zyz+cCwW5D970wast8GUchwp FGReJUvuRhz/JHn7tn0BBCK+Ps4Cpcw01QO5p1BUy3RQY7bUz6ChA79Abhr6Z4e1F/7y0k xUoyPzDGxgafUC2FNmVPtMBv28DvJNc= To: devel@spectrum-os.org Subject: [PATCH v4 08/10] img/app: change to ipv6 nameserver Date: Sat, 29 Nov 2025 20:43:58 +0100 Message-ID: <20251129194404.37773-9-yureka@cyberchaos.dev> In-Reply-To: <20251129194404.37773-1-yureka@cyberchaos.dev> References: <20251129194404.37773-1-yureka@cyberchaos.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: SQPF2B2YNKMP5LIFKMDEGRNLXYFW6G3R X-Message-ID-Hash: SQPF2B2YNKMP5LIFKMDEGRNLXYFW6G3R 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 , Alyssa Ross 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 Reviewed-by: Alyssa Ross --- img/app/image/etc/mdev/iface | 19 +------------------ img/app/image/etc/resolv.conf | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/img/app/image/etc/mdev/iface b/img/app/image/etc/mdev/iface index 95f2fa8..1d81f2a 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 + ip link set $INTERFACE up } 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