* [Cluster-devel] [PATCH] fs/dlm/lowcomms.c: use ipv6_addr_copy
@ 2009-01-22 21:24 Joe Perches
2009-01-22 21:36 ` [Cluster-devel] " David Teigland
0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2009-01-22 21:24 UTC (permalink / raw)
To: cluster-devel.redhat.com
Signed-off-by: Joe Perches <joe@perches.com>
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 103a5eb..982314c 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -53,6 +53,7 @@
#include <linux/mutex.h>
#include <linux/sctp.h>
#include <net/sctp/user.h>
+#include <net/ipv6.h>
#include "dlm_internal.h"
#include "lowcomms.h"
@@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr)
} else {
struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr;
struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr;
- memcpy(&ret6->sin6_addr, &in6->sin6_addr,
- sizeof(in6->sin6_addr));
+ ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr);
}
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Cluster-devel] Re: [PATCH] fs/dlm/lowcomms.c: use ipv6_addr_copy
2009-01-22 21:24 [Cluster-devel] [PATCH] fs/dlm/lowcomms.c: use ipv6_addr_copy Joe Perches
@ 2009-01-22 21:36 ` David Teigland
0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2009-01-22 21:36 UTC (permalink / raw)
To: cluster-devel.redhat.com
On Thu, Jan 22, 2009 at 01:24:49PM -0800, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
>
> diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
Thanks, added to next queue.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-22 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 21:24 [Cluster-devel] [PATCH] fs/dlm/lowcomms.c: use ipv6_addr_copy Joe Perches
2009-01-22 21:36 ` [Cluster-devel] " David Teigland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.