From nobody Sun Mar 10 11:26:35 2024 X-Original-To: freebsd-stable@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 4TsyKq1hQCz5Cf7B for ; Sun, 10 Mar 2024 11:26:55 +0000 (UTC) (envelope-from haramrae@gmail.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TsyKp3vdhz4blg for ; Sun, 10 Mar 2024 11:26:54 +0000 (UTC) (envelope-from haramrae@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Hzz0dehZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of haramrae@gmail.com designates 2a00:1450:4864:20::636 as permitted sender) smtp.mailfrom=haramrae@gmail.com Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a450615d1c4so603558566b.0 for ; Sun, 10 Mar 2024 04:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710070009; x=1710674809; darn=freebsd.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=pwsv8Fm3bEKj3MOQztkaAdX9bqUwNFUy/CfChQXTBLg=; b=Hzz0dehZLfjjPWURePtdTHprjFTDsZukgZssxlNMIHlM38z5Yfkqf/aQLbFLrGGJS4 NIgvuWRNvnnn7GjxXaT82DFxla+3QGV2vEcw1+dzOe437n45kt2+Gjs9tltH0mFF92X0 2Zr9RWseG0BBbiZAWEO5n2eiqUoh+CxsNtfeUUIw5TKWjtXvlVFUwbzdMzT0//+cXW1K nST3vKQg8ygP+J+t5PFbmc3HAyml44/7PGYfSheHO7LQGgW0lIwGmomTyzcpapWDFK4C 8/g9yWipEkgEStUpnz/L2FoDSXeXKnrNTvbq67qrGXUpEveeXBRnPIi9kSY86/TweIJ1 y7cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710070009; x=1710674809; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pwsv8Fm3bEKj3MOQztkaAdX9bqUwNFUy/CfChQXTBLg=; b=tSKBh9/5xAYGYn0o4pviniHoMl7yQmEhw0Qh/gyg+buo+VyoVI32lXbONKbFVK60om 0y0xKC32ctfOqHRUHjGRjVBT/iCs60V+R9iMjmQHfo+iq4C0gimAdDKzDdnzsBfMGP9N /IZ6KjrjWFdD9ggJf0j4sMvQXs85vEBHUfGrz0fvPt0Ol8WtUnH09976y43XwjFxRHUc FFSJiVPc/Y/TLLUx4uT6pPTOYowxer0DXVqtdu1s5rkNQPT6u4eU+ydI+Mxpo1qeRpcS ZTEnGUnoeD9fdNT3qFWi7G4N8NW+GoKytjvQs9DcDXXLLokSFKPcyYuNtTKrqQXIV204 Jl2g== X-Gm-Message-State: AOJu0Yw7G3hsOsfA66gazStv5ZAK5T6ESzWYNwAUxAcP5vteKOSv2Fd7 CFzyUKcU5qFbmqhiQVvN/Ae4DrXcP0nC8V0Bos5odq5rRazbDc7LfatfXherTBs= X-Google-Smtp-Source: AGHT+IFUCgAm92YuIJpvSELxEuQfzqlWYcVaSyWumoxbAuKkBMJ0qqPKiJA51vRgGnXhQnIZxkw2ng== X-Received: by 2002:a17:906:7c82:b0:a45:40e4:8c8 with SMTP id w2-20020a1709067c8200b00a4540e408c8mr3158334ejo.16.1710070008767; Sun, 10 Mar 2024 04:26:48 -0700 (PDT) Received: from smtpclient.apple ([109.37.142.163]) by smtp.gmail.com with ESMTPSA id bk2-20020a170906b0c200b00a44ef54b6b6sm1819902ejb.58.2024.03.10.04.26.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Mar 2024 04:26:48 -0700 (PDT) From: Alban Hertroys Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: No DHCP lease for ipheth, no bpf attached Message-Id: Date: Sun, 10 Mar 2024 12:26:35 +0100 To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.36 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.86)[-0.860]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::636:from] X-Rspamd-Queue-Id: 4TsyKp3vdhz4blg Hi, I=E2=80=99m trying to get ipheth to work as a 5G hotspot on my FreeBSD = home router/server, using the method described in man 4 ipheth. The = final step fails to get a DHCP lease. The configuration is on FreeBSD 14.0-RELEASE-p5/amd64 and an iPhone 13 = mini. Is this configuration supported? And if so, where did I go wrong? Details below. # kldstat | grep ipheth 23 1 0xffffffff82997000 21e0 if_ipheth.ko # usbconfig | grep Apple ugen2.2: at usbus2, cfg=3D3 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DON (500mA) # usbconfig -d 2.2 dump_all_config_desc | grep -E '(^ Conf|iConf)' Configuration index 0 iConfiguration =3D 0x0005 Configuration index 1 iConfiguration =3D 0x0006 Configuration index 2 iConfiguration =3D 0x0007 Configuration index 3 iConfiguration =3D 0x0008 # usbconfig -d 2.2 set_config 3 # usbconfig | grep 'Apple.*cfg=3D3' ugen2.2: at usbus2, cfg=3D3 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DON (500mA) # dmesg | grep 'ue[0-9]' ue0: on ipheth0 ue0: Ethernet address: b2:67:b5:ce:d4:2d At this point the man page expects to see a line: ue0: bpf attached, = that I don=E2=80=99t have. Without that, it is no surprise that the next = steps fail, DHCP requires bpf according to man bpf. The iPhone did indeed ask whether the machine could be trusted (granted, = of course), and from the green background on the time display it does = appear to believe that it is indeed functioning as a hotspot for the = machine (or whatever that's supposed to mean). # sysrc ifconfig_ue0 ifconfig_ue0: SYNCDHCP # service netif restart ue0 Stopping dhclient. Waiting for PIDS: 51707. Stopping Network: ue0. ue0: flags=3D8842 metric 0 mtu 1500 options=3D0 ether b2:67:b5:ce:d4:2d nd6 options=3D29 Starting dhclient. DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 12 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 21 DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2 No DHCPOFFERS received. No working leases in persistent database - sleeping. Starting Network: ue0. ue0: flags=3D8843 metric 0 mtu = 1500 options=3D0 ether b2:67:b5:ce:d4:2d nd6 options=3D29 For completeness sake, I did have usbmuxd running during all this: > doas usbmuxd --enable-exit --foreground --verbose --user root Password: [12:07:06.047][3] usbmuxd v1.1.1 starting up [12:07:06.048][4] Creating socket [12:07:06.048][4] Not dropping privileges to root [12:07:06.048][4] Initializing USB [12:07:06.048][3] Using libusb 1.0.0 [12:07:06.048][4] Registering for libusb hotplug events [12:07:06.048][4] Found new device with v/p 05ac:12a8 at 2-2 [12:07:06.048][4] Found interface 1 with endpoints 04/85 for device 2-2 [12:07:06.049][4] Using wMaxPacketSize=3D512 for device 2-2 [12:07:06.049][4] USB Speed is 480 MBit/s for device 2-2 [12:07:06.049][4] 1 device detected [12:07:06.049][3] Initialization complete [12:07:06.049][3] Enabled exit on SIGUSR1 if no devices are attached. = Start a new instance with "--exit" to trigger. [12:07:06.049][4] Got lang ID 1033 for device 2-2 [12:07:06.050][4] Got serial '000081100014302A0201401E' for device 2-2 [12:07:06.050][3] Connecting to new device on location 0x20002 as ID 1 [12:07:06.050][3] Connected to v2.0 device 1 on location 0x20002 with = serial number 00008110-0014302A0201401E [12:07:06.051][4] preflight_worker_handle_device_add: Starting preflight = on device 00008110-0014302A0201401E... [12:07:06.051][4] Client 10 accepted [12:07:06.052][4] Client connected to device 1 (1->62078) [12:07:06.053][4] Client 12 accepted [12:07:06.053][4] Client 12 connection closed [12:07:06.053][4] Client 12 is going to be disconnected [12:07:06.062][4] Client 12 accepted [12:07:06.063][4] Client 12 connection closed [12:07:06.063][4] Client 12 is going to be disconnected [12:07:06.287][4] preflight_worker_handle_device_add: StartSession = success for device 00008110-0014302A0201401E [12:07:06.287][4] preflight_worker_handle_device_add: Finished preflight = on device 00008110-0014302A0201401E [12:07:06.289][4] Client 10 is going to be disconnected While this is a custom kernel, it includes GENERIC and doesn=E2=80=99t = remove device bpf. I used it successfully prior to these attempts with = DHCP on an Intel ethernet adapter: # sysrc ifconfig_em1 ifconfig_em1: DHCP defaultif -tso4 -lro -vlanhwtso So I know that DHCP works (in fact, this machine also runs isc_dhcp to = provide my home network with address information). Regards, Alban Hertroys -- There is always an exception to always.