From 6bdeaba47d87f48a3943b6899d6c6e6f17d52f1d Mon Sep 17 00:00:00 2001 From: Tony Cheneau Date: Tue, 26 Mar 2013 18:09:25 +0000 Subject: 6lowpan: use IEEE802154_ADDR_LEN instead of a magic number Signed-off-by: Tony Cheneau Signed-off-by: David S. Miller --- net/ieee802154/6lowpan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/ieee802154/6lowpan.c') diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index f4969d78236..e1b4580f78d 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; -- cgit v1.2.3-70-g09d2