Page MenuHomeFreeBSD

ipheth: add ncm support for rx
Needs ReviewPublic

Authored by aokblast on Mar 21 2025, 9:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 18, 5:52 AM
Unknown Object (File)
Fri, Apr 18, 5:47 AM
Unknown Object (File)
Thu, Apr 17, 2:46 AM
Unknown Object (File)
Sat, Apr 5, 10:36 PM
Unknown Object (File)
Wed, Mar 26, 6:26 PM
Unknown Object (File)
Mar 22 2025, 1:48 AM
Unknown Object (File)
Mar 22 2025, 1:44 AM

Details

Reviewers
glebius
hrs
Summary

Iphone tethering enable ncm by default.

I don't know if iOS should take the responsibility or usbmuxd should. For short, we need ncm in ipheth driver to connected to the network.
Taking Linux code as the reference, iPhone currently implement ncm in rx side and has no CRC implemented.
Also, iOS has fixed 16 dp items in each usb packet regardless of the usb configuration.
Tested on my iOS 18.3.2

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63101
Build 59985: arc lint + arc unit

Event Timeline

aokblast edited the summary of this revision. (Show Details)EditedMar 21 2025, 9:29 AM
aokblast added reviewers: glebius, eadler.
aokblast added a subscriber: lwhsu.
aokblast added a subscriber: hrs.

@hrs maybe you would like to test it?:)

Fix indent and header reorder

Still some bug on the usbmuxd so that we have to choose the mode by environment variable like this:

sudo USBMUXD_DEFAULT_DEVICE_MODE=4 usbmuxd --enable-exit --foreground --user root --verbose

Also, with the USBMUXD_DEFAULT_DEVICE_MODE, we don't have to use usbconfig to change the mode.