diff options
author | Joe Perches <joe@perches.com> | 2007-12-16 13:47:33 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 14:58:17 -0800 |
commit | 6360a02af1599e46b023ccbb85545ed97c6f662c (patch) | |
tree | 55f2cfdf0a34c98fcf47e7534558d1eef7d8f153 /drivers/infiniband/core/addr.c | |
parent | b5cb2bbc4c6cb489941be881e8adfe136ee45b8e (diff) | |
download | blackbird-op-linux-6360a02af1599e46b023ccbb85545ed97c6f662c.tar.gz blackbird-op-linux-6360a02af1599e46b023ccbb85545ed97c6f662c.zip |
[IPV4] drivers/infiniband: Use ipv4_is_<type>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/core/addr.c')
-rw-r--r-- | drivers/infiniband/core/addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 5381c80de10a..0802b79c552d 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c @@ -265,11 +265,11 @@ static int addr_resolve_local(struct sockaddr_in *src_in, if (!dev) return -EADDRNOTAVAIL; - if (ZERONET(src_ip)) { + if (ipv4_is_zeronet(src_ip)) { src_in->sin_family = dst_in->sin_family; src_in->sin_addr.s_addr = dst_ip; ret = rdma_copy_addr(addr, dev, dev->dev_addr); - } else if (LOOPBACK(src_ip)) { + } else if (ipv4_is_loopback(src_ip)) { ret = rdma_translate_ip((struct sockaddr *)dst_in, addr); if (!ret) memcpy(addr->dst_dev_addr, dev->dev_addr, MAX_ADDR_LEN); |