Date: Tue, 20 Aug 2024 11:00:19 +0000 From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 248584] usr.sbin/bluetooth/btpand: rc script to start btpand Message-ID: <bug-248584-21060-GtTVMgTyOf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-248584-21060@https.bugs.freebsd.org/bugzilla/> References: <bug-248584-21060@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248584 Tatsuki Makino <tatsuki_makino@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #217142|0 |1 is obsolete| | Attachment #217433|0 |1 is obsolete| | --- Comment #6 from Tatsuki Makino <tatsuki_makino@hotmail.com> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248584-21060-GtTVMgTyOf>