IOUserNetworkEthernet - How can I register multiple ethernet interfaces?

I have tried extending IOUserNetworkEthernet and calling RegisterEthernetInterface. This works perfectly for one ethernet interface, though the driver crashes when RegisterEthernetInterface is called a second time (doesn't return an error code). I have tried registering with separate queues.

Another approach was extending IOUserClient instead, and calling IOService::Create to create child IOUserNetworkEthernet instances. Everything about this approach works (the children appear within ioreg). However, once I call RegisterEthernetInterface on just one of the children, macOS crashes.

How would I go about creating a dext with multiple ethernet interfaces? Have I been approaching it the right way?

Thanks,

Jake

Accepted Reply

I asked this question on stackoverflow and received an answer. Cheers

Replies

I asked this question on stackoverflow and received an answer. Cheers