From: Tony Cheneau <tony.cheneau@amnesiak.org>
To: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <eric.dumazet@gmail.com>
Cc: Alan Ott <alan@signal11.us>,
Alexander Smirnov <alex.bluesman.smirnov@gmail.com>,
netdev@vger.kernel.org, linux-zigbee-devel@lists.sourceforge.net
Subject: [PATCH net-next 2/2] 6lowpan: use IEEE802154_ADDR_LEN instead of a magic number
Date: Wed, 27 Mar 2013 00:09:25 -0400 [thread overview]
Message-ID: <1364357365-21080-3-git-send-email-tony.cheneau@amnesiak.org> (raw)
In-Reply-To: <1364357365-21080-1-git-send-email-tony.cheneau@amnesiak.org>
Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org>
---
net/ieee802154/6lowpan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index f4969d7..e1b4580 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;
--
1.7.12.4
next prev parent reply other threads:[~2013-03-27 4:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-27 4:09 [PATCH net-next 0/2] 6lowpan: fix minor issues introduced with the previous patch set Tony Cheneau
2013-03-27 4:09 ` [PATCH net-next 1/2] 6lowpan: fix a small formatting issue Tony Cheneau
2013-03-27 4:09 ` Tony Cheneau [this message]
2013-03-27 4:55 ` [PATCH net-next 0/2] 6lowpan: fix minor issues introduced with the previous patch set David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364357365-21080-3-git-send-email-tony.cheneau@amnesiak.org \
--to=tony.cheneau@amnesiak.org \
--cc=alan@signal11.us \
--cc=alex.bluesman.smirnov@gmail.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=linux-zigbee-devel@lists.sourceforge.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox