From: Andrea <mar...@gm...> - 2021-04-28 15:13:41
|
On 28/04/2021 15:12, Alan Cox wrote: > On Tue, 27 Apr 2021 08:21:14 +0100 > Andrea <mar...@gm...> wrote: > >> I see FUSE has a W5100 Ethernet card emulation >> I think this is what VirtualBox does. > > Take a look at > > https://github.com/kvmtool/kvmtool/tree/master/net/uip > > It's a dead project now but the uip code in it turns a raw network > connection into host tcp, udp etc. You'd still probably need the DHCP > proxy in there but it should let you turn macraw into host sockets for at > least the simple stacks used on micros. There is a much better version of > the code in very old versions of the Intel clear containers but I've no > idea where you'd dig that out on the net any more. > Yes, I can see they make up DHCP replies. This is exactly what I meant. Would be nice to extract it and reuse it. > Another bizarre but effective approach is to make your emulator one end > of a simple VPN/IPIP tunnel instead and run the server end somewhere. not sure I understand this. would it not require privileges too? |