summaryrefslogtreecommitdiff
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-06-26 19:41:36 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-28 10:06:50 +0300
commita408194aa050f9a820f5a64301c7a08880f8af7d (patch)
treeb9c811e48187902d6d3137c30eb5d0d35ae57429 /lib/find_bit.c
parent242b1bbe5144de3577ad12da058e70ef88167146 (diff)
downloadlinux-a408194aa050f9a820f5a64301c7a08880f8af7d.tar.xz
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 'lib/find_bit.c')
0 files changed, 0 insertions, 0 deletions