]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'l2tp-socket-lookup-fixes'
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 03:07:25 +0000 (22:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 03:07:25 +0000 (22:07 -0500)
commit1cdb8d87bfbdc6130f76f3c74db9ae36b5511552
treedaafabf4d05495de1eabe9bea19e5917128a5ac9
parentd147d88fc2e28dc93b399f5279baf561e1595eee
parente2cfc62d52c30fc49398a99c3a785d49ca2a859a
Merge branch 'l2tp-socket-lookup-fixes'

Guillaume Nault says:

====================
l2tp: socket lookup fixes for l2tp_ip and l2tp_ip6

There are still some cases that aren't correctly handled in the socket
lookup functions of l2tp_ip and l2tp_ip6. This series fixes lookups for
connected sockets and for sockets bound to the IPv6 unspecified
address.

bind() and connect() should now work as expected on IPPROTO_L2TP
sockets. Extra features, like SO_REUSEADDR, remain unsupported.

The matching conditions in __l2tp_ip6_bind_lookup() and
__l2tp_ip_bind_lookup() are getting hard to read. I've kept the single
test approach to make the intend of the patches clear. I'll split the
conditionals once these fixes reach net-next.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>