ccie18643 / PyTCP

PyTCP is a fully functional TCP/IP stack written in Python. It supports TCP stream-based transport with reliable packet delivery based on a sliding window mechanism and basic congestion control. It also supports IPv6/ICMPv6 protocols with SLAAC address configuration. It operates as a user space program attached to the Linux TAP interface.
GNU General Public License v3.0
349 stars 35 forks source link

Using tun interface (without ethernet layer) #30

Open JJTech0130 opened 6 months ago

JJTech0130 commented 6 months ago

I've got a situation where it would be very useful to use pytcp as a TCP stack on top of a tun interface, where the ethernet layer is not necessary. Was wondering how possible it would be to implement.

ccie18643 commented 1 month ago

I don't think this would be big problem. Would need to add support for Tun interface and ensure the packet handler in such case works directly with IP layer. Feel free to hack a solution and send merge request if you have time. If not I'll implement this in version 3.0 (realistically will release it sometime in 2025).