songgao / water

A simple TUN/TAP library written in native Go.
BSD 3-Clause "New" or "Revised" License
1.96k stars 295 forks source link

Handle IP packet #58

Closed weiyixuan closed 5 years ago

weiyixuan commented 5 years ago

Can read and write IP packets? Leave the protocol stack to handle the frame header.

songgao commented 5 years ago

Yes. Use TUN instead of TAP. More info about the concepts here: https://www.kernel.org/doc/Documentation/networking/tuntap.txt

weiyixuan commented 5 years ago

But tun devices are not available on Windows platforms