search for: ifdeff

Displaying 2 results from an estimated 2 matches for "ifdeff".

Did you mean: ifdef
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...d, but apparently traffic is bursty enough that it even triggers in a simple SSH session. But it rarely is over 64, so I kept it at that. Your patch was apparently against 1.0.26, not 1.1pre11 as you said earlier, so I had to port it to the 1.1 branch. It's committed now, with Michael's de-ifdeffication incorporated as well. I also made the buffers static, as suggested by Michael. If we go the multi-threaded way, they can be made thread-local. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text a...
2015 Dec 10
3
[PATCH] Receive multiple packets at a time
10.12.2015 09:20, Michael Tokarev wrote: > 10.12.2015 03:35, Samuel Thibault wrote: > [] > > I suggest reducing ifdeffery in handle_incoming_vpn_data(), especially > the error checking code. > > The function isn't that large now, it might be much better to have > two different implementations. Like this (untested, patch attached): > > void handle_incoming_vpn_data(int sock) { > > #if...