1. 09 Jan, 2017 5 commits
  2. 08 Jan, 2017 33 commits
  3. 07 Jan, 2017 2 commits
    • David S. Miller's avatar
      Merge branch 'l2tp-cleanup-socket-lookup-code' · 350a4718
      David S. Miller authored
      Guillaume Nault says:
      
      ====================
      l2tp: cleanup socket lookup code in l2tp_ip and l2tp_ip6
      
      First three patches remove redundant tests and add missing "const"
      qualifiers.
      
      Fourth patch splits the conditionals found in __l2tp_ip*_bind_lookup(),
      to make these functions easier to review. In the process, I found that
      some corner cases were still not handled properly. So I've added the
      missing tests in this patch too, because they're pretty simple and the
      whole "if" statements are modified anyway.
      
      I expect it to be easier to review this way. If not, I can split up
      patch #4, post the missing tests separately to -net, and later repost
      this series as pure cleanup. Just let me know.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      350a4718
    • Guillaume Nault's avatar
      l2tp: rework socket comparison in __l2tp_ip*_bind_lookup() · c5fdae04
      Guillaume Nault authored
      Split conditions, so that each test becomes clearer.
      
      Also, for l2tp_ip, check if "laddr" is 0. This prevents a socket from
      binding to the unspecified address when other sockets are already bound
      using the same device (if any), connection ID and namespace.
      
      Same thing for l2tp_ip6: add ipv6_addr_any(laddr) and
      ipv6_addr_any(raddr) tests to ensure that an IPv6 unspecified address
      passed as parameter is properly treated a wildcard.
      Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c5fdae04