diff options
author | Tony Cheneau <tony.cheneau@amnesiak.org> | 2013-03-26 18:09:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-27 00:52:16 -0400 |
commit | 6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d (patch) | |
tree | 180141d4a3a2f2c7dbf00cda9b0b035df88f945b /net/ieee802154 | |
parent | ababf3859641047cafafdfd8ac60270a7a87935d (diff) |
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')
-rw-r--r-- | net/ieee802154/6lowpan.c | 2 |
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; |