6lowpan: remove lowpan_is_addr_broadcast
This macro is used at 802.15.4 6LoWPAN only and can be replaced by memcmp with the interface broadcast address. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

orang tua
6350047eb8
melakukan
028b2a8c16
@@ -238,7 +238,7 @@ static int lowpan_header(struct sk_buff *skb, struct net_device *ldev,
|
||||
/* if the destination address is the broadcast address, use the
|
||||
* corresponding short address
|
||||
*/
|
||||
if (lowpan_is_addr_broadcast((const u8 *)daddr)) {
|
||||
if (!memcmp(daddr, ldev->broadcast, EUI64_ADDR_LEN)) {
|
||||
da.mode = IEEE802154_ADDR_SHORT;
|
||||
da.short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST);
|
||||
cb->ackreq = false;
|
||||
|
Reference in New Issue
Block a user