]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r340135: Make ng_pptpgre(8) netgraph node be able to restore order
authoreugen <eugen@FreeBSD.org>
Tue, 4 Dec 2018 07:48:43 +0000 (07:48 +0000)
committereugen <eugen@FreeBSD.org>
Tue, 4 Dec 2018 07:48:43 +0000 (07:48 +0000)
commited04e64385e186d79a6e25db540c97152db65bcf
tree7a89152a8231ae1365c3de507344858732f6c9e5
parent4892802301f40ab7254aa839f28026d30bdf0fea
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