History

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.

Guillaume Nault committed 8 years ago

Commit b0e29061 parent 528534f2 files · +4 −48Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/ppp-ioctl.h+1−1
@@ -68,7 +68,7 @@ struct ppp_option_data { · 67 unmodified lines
68struct pppol2tp_ioc_stats {68struct pppol2tp_ioc_stats {
69 __u16 tunnel_id; /* redundant */69 __u16 tunnel_id; /* redundant */
70 __u16 session_id; /* if zero, get tunnel stats */70 __u16 session_id; /* if zero, get tunnel stats */
71 __u32 using_ipsec:1; /* valid only for session_id == 0 */71 __u32 using_ipsec:1;
72 __aligned_u64 tx_packets;72 __aligned_u64 tx_packets;
73 __aligned_u64 tx_bytes;73 __aligned_u64 tx_bytes;
74 __aligned_u64 tx_errors;74 __aligned_u64 tx_errors;