Sorry for delayed reply. On Wed, 27 May 2020 01:29:36 +0300 Sergey Ryazanov <ryazanov....@gmail.com> wrote: > On Tue, May 26, 2020 at 12:07 PM Vitaliy Makkoveev > <henscheltig...@yahoo.com> wrote: >>> On 25 May 2020, at 22:04, Sergey Ryazanov <ryazanov....@gmail.com> wrote: >>> On Sat, May 23, 2020 at 3:07 PM Vitaliy Makkoveev >>> <henscheltig...@yahoo.com> wrote: >>>> For example, each pipex session should have unique pair of `protocol’ and >>>> `session_id’. These values are passed from userland. While the only >>>> instance of npppd(8) uses pipex(4) this is not the problem. But you >>>> introduce the case while pipex(4) will be used by multiple independent >>>> userland programs. At least, I have interest how you handle this. >>> >>> This should not be a problem here. npppd(8) support server mode only. >>> While my work is to implement acceleration for client side of L2TP >>> connection. >> >> I guess they can coexist. Also you can have multiple connections to >> ppp servers simultaneously. > > With 16 bits long session id field, according to birthday problem to > reach 0.9 collision probability I need 549 simultaneous sessions. > Should I still be worried or I have a time to complete integration > work and then update UDP filter for love of the game?
usr.sbin/npppd/l2tp/l2tp_local.h 79 #define L2TP_SESSION_ID_MASK 0x00007fff npppd uses 0-32767