]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix userspace reception on plain L2TP sockets
authorGuillaume Nault <g.nault@alphalink.fr>
Thu, 6 Mar 2014 10:15:10 +0000 (11:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 19:25:39 +0000 (14:25 -0500)
commit60e012d0a478ece91fd79349df8d8cc7f0ed3dae
treebc81e44f2e4e0c4a841cf19987c2e72547c1d464
parent5323980bfd6450be0c7e46966b4cd31ff15c08ee
l2tp: fix userspace reception on plain L2TP sockets

As pppol2tp_recv() never queues up packets to plain L2TP sockets,
pppol2tp_recvmsg() never returns data to userspace, thus making
the recv*() system calls unusable.

Instead of dropping packets when the L2TP socket isn't bound to a PPP
channel, this patch adds them to its reception queue.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ppp.c