From nobody Mon Nov 18 14:26:55 2024 X-Original-To: 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 4XsVLp62g8z5d9K6 for ; Mon, 18 Nov 2024 14:26:58 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (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 ECDSA (P-384) client-digest SHA384) (Client CN "ns1.nethead.se", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XsVLn62b9z4bMf for ; Mon, 18 Nov 2024 14:26:57 +0000 (UTC) (envelope-from peo@nethead.se) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=ofTR3K8j; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se; dmarc=pass (policy=none) header.from=nethead.se X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1731940016; bh=HBFChdH4ShAXNOKyaCz2zIwkvAeHvVQudKnuEc6tZmg=; h=Date:Subject:To:References:From:In-Reply-To; b=ofTR3K8jlGawVLzj85uH73d39zPox1g6h3t5wKTT9sdN7x/hnJzplFVm62GttTV4M YDrQGRfVqMBR6+MSiwBCGMrMXR6ckIOds2/qZvEu6jb233t3m3OUurdbvecE54e9N6 ghl5Q/xyW4bVaP/hxqU6hR9yP2ENttNXv52FZOBU= Message-ID: Date: Mon, 18 Nov 2024 15:26:55 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: iphone if_ipheth usb tethering not working anymore Content-Language: en-US To: questions@freebsd.org References: <461190e5-dacb-4b60-adf5-5705c087e523@nethead.se> From: Per olof Ljungmark In-Reply-To: <461190e5-dacb-4b60-adf5-5705c087e523@nethead.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; DMARC_POLICY_ALLOW(-0.50)[nethead.se,none]; R_DKIM_ALLOW(-0.20)[nethead.se:s=NETHEADSE]; R_SPF_ALLOW(-0.20)[+ip4:5.150.237.139]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[nethead.se:+] X-Rspamd-Queue-Id: 4XsVLn62b9z4bMf X-Spamd-Bar: --- On 2024-11-18 10:19, Per olof Ljungmark wrote: > Since sometime between I believe 14.0 and 14.1 connecting an iphone to a > in my case Thinkpads, if_cdce loads instead of if_ipheth making the > connection unusable. > > T470 FreeBSD 14.0-RELEASE-p6 > > Oct 10 17:33:43 T470s kernel: ugen0.2: at usbus0 > Oct 10 17:33:43 T470s kernel: ipheth0 on uhub0 > Oct 10 17:33:43 T470s kernel: ipheth0: on usbus0 > Oct 10 17:33:43 T470s kernel: ue0: on ipheth0 > Oct 10 17:33:43 T470s kernel: ue0: Ethernet address: 7a:e3:de:1f:a0:fd > Oct 10 17:33:46 T470s usbmuxd[2460]: [3] Connecting to new device on > location 0x2 as ID 2 > Oct 10 17:33:46 T470s usbmuxd[2460]: [3] Connected to v2.0 device 2 on > location 0x2 with serial number 00008030-000C55A60AD8402E > > T490 that *used* to work as above with 13-xxx > Now, since about 13.4 and 14.1, it does not work > > Oct 11 18:20:28 T490-po usbmuxd[18208]: [2] Skipping switch device 0-5 > mode from 3 to 3 > Oct 11 18:20:28 T490-po kernel: cdce0 on uhub1 > Oct 11 18:20:28 T490-po kernel: cdce0: rev 2.00/12.08, addr 17> on usbus0 > Oct 11 18:20:28 T490-po kernel: ue0: on cdce0 > Oct 11 18:20:28 T490-po kernel: ue0: Ethernet address: 7a:e3:de:1f:a0:02 > Oct 11 18:20:28 T490-po kernel: cdce1 on uhub1 > Oct 11 18:20:28 T490-po kernel: cdce1: rev 2.00/12.08, addr 17> on usbus0 > Oct 11 18:20:28 T490-po kernel: ue1: on cdce1 > Oct 11 18:20:28 T490-po kernel: ue1: Ethernet address: 96:52:43:e3:30:42 > Oct 11 18:20:28 T490-po kernel: ue0: link state changed to UP > > The fact that ue0 is up is of no help since Apple devices need if_ipheth. > > Trying to unload if_cdce does not help, it is immediately loaded as soon > as the phone is connected. > > So, what part of the system thinks if_cdce shoud be used with Apple > devices? > Should I file a bug report? > Got an advice to add 'devmatch_blocklist="if_cdce"' to rc.conf and that took me a step further, if_ipheth correctly idenfies the phone and ue0 is added. Now the phone asks if the computer is trusted, I confirm and start usbmuxd following the if_ipheth manpage (it used to start automagically in 14.0) and a service netif restart ue0 After this dhclient runs but ue0 seems down and does not receive an ip address/defaultrouter etc.