| ▲ | WerWolv 6 hours ago | |||||||||||||||||||||||||||||||||||||
On Linux you could create a tun/tap device from your application and translate data sent over that to requests sent to the ethernet adapter. Of course, when you're doing these things in userspace you either need some way of communicating with the Kernel or for the other subsystems to be in userspace as well. | ||||||||||||||||||||||||||||||||||||||
| ▲ | Neywiny 6 hours ago | parent [-] | |||||||||||||||||||||||||||||||||||||
Not to be too facetious but a great place for communicating with the kernel where there are a ton of other driver subsystems is... the kernel. Possibly a good addition to the article would be parallel development of an lkm. I guess it wouldn't have that windows interop but I would also be interested to see how this driver would be implemented on Windows. If it's idk 10x as many lines in the kernel vs userspace, that's a great benefit to the userspace approach. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||