summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorTony Cheneau <tony.cheneau@amnesiak.org>2013-03-26 22:09:25 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-27 08:52:16 +0400
commit6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d (patch)
tree180141d4a3a2f2c7dbf00cda9b0b035df88f945b /net
parentababf3859641047cafafdfd8ac60270a7a87935d (diff)
downloadlinux-6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d.tar.xz
6lowpan: use IEEE802154_ADDR_LEN instead of a magic number
Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ieee802154/6lowpan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index f4969d782362..e1b4580f78dd 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -602,7 +602,7 @@ static int lowpan_header_create(struct sk_buff *skb,
da.short_addr = IEEE802154_ADDR_BROADCAST;
} else {
da.addr_type = IEEE802154_ADDR_LONG;
- memcpy(&(da.hwaddr), daddr, 8);
+ memcpy(&(da.hwaddr), daddr, IEEE802154_ADDR_LEN);
/* request acknowledgment */
mac_cb(skb)->flags |= MAC_CB_FLAG_ACKREQ;