Use a ringbuffer in shared memory to transfer packets from the tapreader thread to...
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 3 Jan 2007 18:18:54 +0000 (18:18 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 3 Jan 2007 18:18:54 +0000 (18:18 +0000)
commit03f3fc01e8d9402c4a14904fded883ff8cc574f6
treeb01d89cf573fa98dcb709a0267be282d020f7ac5
parent52787a73b0211bcb4cb3cdd308b1a4c53a60f8ce
Use a ringbuffer in shared memory to transfer packets from the tapreader thread to the main thread.
It's a wonder it ever worked before. The socket that is created is not of a
datagram type, therefore packet boundaries were not preserved, which becomes
a problem as soon as the TAP-Win32 device receives packets in fast succession.
src/mingw/device.c