]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Joe Perches <joe@perches.com> |
2 | commit 44ad532b3277f0cae55bfe0625d3140cf73af450 | |
3 | Author: Joe Perches <joe@perches.com> | |
4 | Date: Thu Jan 22 13:24:49 2009 -0800 | |
5 | Subject: dlm: use ipv6_addr_copy | |
6 | ||
7 | Signed-off-by: Joe Perches <joe@perches.com> | |
8 | Signed-off-by: David Teigland <teigland@redhat.com> | |
9 | Signed-off-by: Coly Li <coly.li@suse.de> | |
10 | ||
11 | diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c | |
12 | index 103a5eb..bf09262 100644 | |
13 | --- a/fs/dlm/lowcomms.c | |
14 | +++ b/fs/dlm/lowcomms.c | |
15 | @@ -53,6 +53,7 @@ | |
16 | #include <linux/mutex.h> | |
17 | #include <linux/sctp.h> | |
18 | #include <net/sctp/user.h> | |
19 | +#include <net/ipv6.h> | |
20 | ||
21 | #include "dlm_internal.h" | |
22 | #include "lowcomms.h" | |
23 | @@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr) | |
24 | } else { | |
25 | struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr; | |
26 | struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr; | |
27 | - memcpy(&ret6->sin6_addr, &in6->sin6_addr, | |
28 | - sizeof(in6->sin6_addr)); | |
29 | + ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr); | |
30 | } | |
31 | ||
32 | return 0; |