diff options
author | 2017-01-06 20:03:57 +0100 | |
---|---|---|
committer | 2017-01-06 22:18:56 -0500 | |
commit | c5fdae044030f753c9e6a3efa8db28fe00f8fdad (patch) | |
tree | 17f94b9c736444f4bccc732f586171a2505fdbe8 /drivers/net/virtio_net.c | |
parent | l2tp: remove useless NULL check in __l2tp_ip*_bind_lookup() (diff) | |
download | wireguard-linux-c5fdae044030f753c9e6a3efa8db28fe00f8fdad.tar.xz wireguard-linux-c5fdae044030f753c9e6a3efa8db28fe00f8fdad.zip |
l2tp: rework socket comparison in __l2tp_ip*_bind_lookup()
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: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions