]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r340135: Make ng_pptpgre(8) netgraph node be able to restore order
authorEugene Grosbein <eugen@FreeBSD.org>
Tue, 4 Dec 2018 07:39:54 +0000 (07:39 +0000)
committerEugene Grosbein <eugen@FreeBSD.org>
Tue, 4 Dec 2018 07:39:54 +0000 (07:39 +0000)
commitf2365daaeb26a9b12dbbd37c4321a4b374965932
tree651f77a72a88cad437191ab1c13bf27a05cbcf05
parente2cbde74f7f72b1126124bb966e07e10439e935c
MFC r340135: Make ng_pptpgre(8) netgraph node be able to restore order
for packets reordered in transit instead of dropping them altogether.
It uses sequence numbers of PPtPGRE packets.

A set of new sysctl(8) added to control this ability or disable it:

net.graph.pptpgre.reorder_max (1) defines maximum length of node's
private reorder queue used to keep data waiting for late packets.
Zero value disables reordering. Default value 1 allows the node to restore
the order for two packets swapped in transit. Greater values allow the node
to deliver packets being late after more packets in sequence
at cost of increased kernel memory usage.

net.graph.pptpgre.reorder_timeout (1) defines time value in miliseconds
used to wait for late packets. It may be useful to increase this
if reordering spot is distant.
share/man/man4/ng_pptpgre.4
sys/netgraph/ng_pptpgre.c
sys/netgraph/ng_pptpgre.h