Skip to content

Commit 965e613

Browse files
alexaringholtmann
authored andcommitted
ieee802154: 6lowpan: fix ARPHRD to ARPHRD_6LOWPAN
Currently there exists two interface types with ARPHRD_IEEE802154. These are the 802.15.4 interfaces and 802.15.4 6LoWPAN interfaces. This is more a bug because some userspace applications checks on this value like wireshark. This occurs that wireshark will always try to parse a lowpan interface as 802.15.4 frames. With ARPHRD_6LOWPAN wireshark will parse it as IPv6 frames which is correct. Much applications checks on this value to readout the EUI64 mac address which should be the same for ARPHRD_6LOWPAN. BTLE 6LoWPAN and ieee802154 6LoWPAN will share now the same ARPHRD. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent b7cb93e commit 965e613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ieee802154/6lowpan/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static void lowpan_setup(struct net_device *dev)
113113
{
114114
dev->addr_len = IEEE802154_ADDR_LEN;
115115
memset(dev->broadcast, 0xff, IEEE802154_ADDR_LEN);
116-
dev->type = ARPHRD_IEEE802154;
116+
dev->type = ARPHRD_6LOWPAN;
117117
/* Frame Control + Sequence Number + Address fields + Security Header */
118118
dev->hard_header_len = 2 + 1 + 20 + 14;
119119
dev->needed_tailroom = 2; /* FCS */

0 commit comments

Comments
 (0)