From nobody Tue Aug 20 11:00:19 2024 X-Original-To: wireless@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 4Wp61w1fMTz5StTX for ; Tue, 20 Aug 2024 11:00:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wp61v6dTdz4HHp for ; Tue, 20 Aug 2024 11:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724151619; a=rsa-sha256; cv=none; b=yC/UocxjHr0iQmf2CwVItf5jJ/OoZXLllmkDp/6IO535vwdzoElINMO9tze+m3itqHLTNE xW0zjJ3KxWznFfZpWftC8bqcZftcWhE0lLWs4JdUVSDT/OYxxKd1fow3V4Ecc+xbgOOVrm DoXM+rx6PXd4dno8FNm6J6ZqB9CHdWDr9r3rGMqGkEA1I6q2RhuYR8puzShZj25Lsks3jg UW85WMRMYpJce78HbSswv+xnb9cIonJUnTUdnCBO/sZoDd2Fn+WyZlc3739aqpnOjnwhDh QdN1d4lLPalnTaNbefykym1xk6IIF64ejlRDOSOch65eiezOTHzSCy4kgwB/qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724151619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NpMvBSVqFFDTyWMvGr79lea9j1qryv+fS7n8um2/B08=; b=AQx58TgGxZJO2aHcvlDW6YSkQFSziE6eUbVx3iwxK2YC1zDoI+vFPO1HgX2KPKXQk5B2th MTvaKQFeUrPw/UjSlgCzY5b93bUdvQZnt4nQJ79WkYP8Qqllv/7QAT1Dk8+Q9AfmnXK4eH WQQZHEXnXphvbnczpFemwvOQ8h2Qi9IFAyMqfTrwl0Rx95uVJcqhDAkQk/HgkBFLeSoH3E bHMgUgf33VyakLMY3dr3ZxT42HDZlRiNhfb/a/Hqgc+opPQwFemrz0X9mWqOwiTnpdVunQ /zSPQcwdpLBqaw91xH+5piHXjHjLSkfF0nSW1g6JcmZlQH3T2Wiba/ZKK3r37Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wp61v66y2zxNC for ; Tue, 20 Aug 2024 11:00:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 47KB0J5Y050094 for ; Tue, 20 Aug 2024 11:00:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47KB0JxM050093 for wireless@FreeBSD.org; Tue, 20 Aug 2024 11:00:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 248584] usr.sbin/bluetooth/btpand: rc script to start btpand Date: Tue, 20 Aug 2024 11:00:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248584 Tatsuki Makino changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #217142|0 |1 is obsolete| | Attachment #217433|0 |1 is obsolete| | --- Comment #6 from Tatsuki Makino --- Created attachment 252945 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252945&action= =3Dedit patch to libexec/rc/rc.d of main branch It has been slightly improved to be used in 14.x-STABLE. It seems that it can be used by writing the following variables in /etc/rc.= conf of FreeBSD that has already been paired with the smartphone. cloned_interfaces=3D"${cloned_interfaces:-} tap0 tap2" ifconfig_tap0_alias0=3D"inet6 2001:db8::746f:6f74:6575:6c42 prefixlen 64" ifconfig_tap0_alias1=3D"inet 192.0.2.66 netmask 255.255.255.0" ifconfig_tap2=3D"DHCP fib 2" dhcpd_ifaces=3D"${dhcpd_ifaces:-} tap0" # other settings for isc-dhcpd are omitted btpand_profiles=3D"tap0 tap2" btpand_tap0_enable=3D"YES" btpand_tap0_tapif=3D"tap0" btpand_tap0_device=3D"ubt0" btpand_tap0_service=3D"NAP" btpand_tap2_enable=3D"YES" btpand_tap2_tapif=3D"tap2" btpand_tap2_device=3D"ubt0" btpand_tap2_service=3D"NAP" btpand_tap2_sdp=3D"NO" btpand_tap2_remote=3D"14:XX:XX:XX:XX:7d" # BDADDR of my feature phone is us= ing an android 8 based OS With this setup, I can use it as follows: Once the smartphone has been paired, it will go through the tap0 interface. fib 2 process uses feature phone tethering. Termination of tethering or execution of "service btpand stop tap2" will al= so terminate dhclient. fib of dhclient is kept the way I wrote in bug 280871 comment #1. --=20 You are receiving this mail because: You are the assignee for the bug.=