Skip to content

Commit 6bdeaba

Browse files
tcheneaudavem330
authored andcommitted
6lowpan: use IEEE802154_ADDR_LEN instead of a magic number
Signed-off-by: Tony Cheneau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ababf38 commit 6bdeaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ieee802154/6lowpan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int lowpan_header_create(struct sk_buff *skb,
602602
da.short_addr = IEEE802154_ADDR_BROADCAST;
603603
} else {
604604
da.addr_type = IEEE802154_ADDR_LONG;
605-
memcpy(&(da.hwaddr), daddr, 8);
605+
memcpy(&(da.hwaddr), daddr, IEEE802154_ADDR_LEN);
606606

607607
/* request acknowledgment */
608608
mac_cb(skb)->flags |= MAC_CB_FLAG_ACKREQ;

0 commit comments

Comments
 (0)