diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2018-06-26 18:41:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-28 16:06:50 +0900 |
commit | a408194aa050f9a820f5a64301c7a08880f8af7d (patch) | |
tree | b9c811e48187902d6d3137c30eb5d0d35ae57429 /Kbuild | |
parent | 242b1bbe5144de3577ad12da058e70ef88167146 (diff) |
l2tp: define helper for parsing struct sockaddr_pppol2tp*
'sockaddr_len' is checked against various values when entering
pppol2tp_connect(), to verify its validity. It is used again later, to
find out which sockaddr structure was passed from user space. This
patch combines these two operations into one new function in order to
simplify pppol2tp_connect().
A new structure, l2tp_connect_info, is used to pass sockaddr data back
to pppol2tp_connect(), to avoid passing too many parameters to
l2tp_sockaddr_get_info(). Also, the first parameter is void* in order
to avoid casting between all sockaddr_* structures manually.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions