projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ababf38
)
6lowpan: use IEEE802154_ADDR_LEN instead of a magic number
author
Tony Cheneau
<tony.cheneau@amnesiak.org>
Tue, 26 Mar 2013 18:09:25 +0000
(18:09 +0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/6lowpan.c
b/net/ieee802154/6lowpan.c
index f4969d78236203be815e25514aeb0965b593c650..e1b4580f78dd66498f4f66902698d7c45654139b 100644
(file)
--- 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;