]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: remove pppol2tp_session_ioctl()
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 10 Aug 2018 11:22:01 +0000 (13:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 19:13:49 +0000 (12:13 -0700)
commit6c62dd5d9e36f6b2fdc3fab5c10b187283dc5c8e
treed6b6aecb91a396ffad466f663d034349ce0e0773
parent321853b174e18c326b264ab6cf81138c8eab7dcd
l2tp: remove pppol2tp_session_ioctl()

pppol2tp_ioctl() has everything in place for handling PPPIOCGL2TPSTATS
on session sockets. We just need to copy the stats and set ->session_id.

As a side effect of sharing session and tunnel code, ->using_ipsec is
properly set even when the request was made using a session socket.

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