[ofa-general] IPv6 RDMA CM PATCHv2 6/8
Aleksey Senin
alekseys at voltaire.com
Sun Aug 10 23:18:34 PDT 2008
>From 65d27ef169a9b1c8c6582c9267ca6183b3fe11ab Mon Sep 17 00:00:00 2001
From: Aleksey Senin <alekseys at voltaire.com>
Date: Thu, 7 Aug 2008 09:13:18 +0300
Subject: [IPv6 RDMA CM PATCHv2 6/8]
Using sockaddr_storage structure instead of sockaddr_in for catching
IPv6 protocol in cma_bind_any function
Signed-off-by: Aleksey Senin <alekseys at voltaire.com>
---
drivers/infiniband/core/cma.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index ec0855f..6d0daa5 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1467,10 +1467,10 @@ static void cma_listen_on_all(struct rdma_id_private *id_priv)
static int cma_bind_any(struct rdma_cm_id *id, sa_family_t af)
{
- struct sockaddr_in addr_in;
+ struct sockaddr_storage addr_in;
memset(&addr_in, 0, sizeof addr_in);
- addr_in.sin_family = af;
+ addr_in.ss_family = af;
return rdma_bind_addr(id, (struct sockaddr *) &addr_in);
}
--
1.5.6.dirty
More information about the general
mailing list