]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
l2tp: fix data packet sequence number handling
authorJames Chapman <jchapman@katalix.com>
Wed, 9 May 2012 23:43:09 +0000 (23:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2012 03:27:34 +0000 (23:27 -0400)
commitd301e3256866bfd3ae3093aeb43d3ca9570d758e
tree7395dbcfcefa7bbd1fc4ad68d8beed12190819be
parent38d40b3f4e223336422b7e87cb483e758ef87e3a
l2tp: fix data packet sequence number handling

If enabled, L2TP data packets have sequence numbers which a receiver
can use to drop out of sequence frames or try to reorder them. The
first frame has sequence number 0, but the L2TP code currently expects
it to be 1. This results in the first data frame being handled as out
of sequence.

This one-line patch fixes the problem.

Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c