google / netstack

IPv4 and IPv6 userland network stack
Apache License 2.0
3.08k stars 278 forks source link

How can I use the CreateNIC function #28

Open weiyixuan opened 5 years ago

weiyixuan commented 5 years ago

How can I use CreateNIC(id tcpip.nicid, linkEP tcpip.linkendpointid) in Windows? The fdbased library is not implemented on Windows.

weiyixuan commented 5 years ago

Is there any other way to port the tun_tcp_echo sample to Windows?

hbhasker commented 5 years ago

Netstack is primarily developed for gVisor which implements a linux ABI. We don't actively develop on Windows. But it should be possible to add your own fdbased endpoint for windows. The API exposed by a link layer endpoint is minimal.