]> git.baikalelectronics.ru Git - kernel.git/commit
net: ppp: reset nextseq counter when enabling SC_MULTILINK
authorChristoph Schulz <develop@kristov.de>
Tue, 15 Jul 2014 09:51:03 +0000 (11:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2014 05:52:35 +0000 (22:52 -0700)
commit1f23c4e30ec01fc8e70135061272bafa85ff9811
tree596b35ccd321b8bf3ac51e339fd46e09e61450d5
parent4971e0d22a7c0f24eae9e7ba3634ffb17bbe366f
net: ppp: reset nextseq counter when enabling SC_MULTILINK

If using a demand-dialled PPP unit for a PPP multilink master, the pppd
daemon needs to reset the sequence counter between two connections. This
allows the daemon to reuse the PPP unit instead of destroying and recreating
it. As there is no API to reset the counter, this patch resets the counter
whenever the SC_MULTILINK flag is set.

Signed-off-by: Christoph Schulz <develop@kristov.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c