summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/6lowpan.c
diff options
context:
space:
mode:
authorTony Cheneau <tony.cheneau@amnesiak.org>2013-03-26 19:09:25 +0100
committerDavid S. Miller <davem@davemloft.net>2013-03-27 05:52:16 +0100
commit6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d (patch)
tree180141d4a3a2f2c7dbf00cda9b0b035df88f945b /net/ieee802154/6lowpan.c
parent6lowpan: fix a small formatting issue (diff)
downloadlinux-6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d.tar.xz
linux-6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d.zip
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/ieee802154/6lowpan.c')
-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;