]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
6lowpan: use IEEE802154_ADDR_LEN instead of a magic number
authorTony Cheneau <tony.cheneau@amnesiak.org>
Tue, 26 Mar 2013 18:09:25 +0000 (18:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Mar 2013 04:52:16 +0000 (00:52 -0400)
Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c

index f4969d78236203be815e25514aeb0965b593c650..e1b4580f78dd66498f4f66902698d7c45654139b 100644 (file)
@@ -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;