Skip to content

Commit 685d632

Browse files
alexaringholtmann
authored andcommitted
ieee802154: 6lowpan: ensure of sending 1280 packets
This patch changes the 1281 MTU to 1280. Others stack have only a 1280 byte array for uncompressed 6LoWPAN packets, this avoid that these stacks have an overflow. Sending 1281 uncompressed 6LoWPAN packets isn't also rfc complaint. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 6e361d6 commit 685d632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ieee802154/6lowpan_rtnl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static void lowpan_setup(struct net_device *dev)
437437
/* Frame Control + Sequence Number + Address fields + Security Header */
438438
dev->hard_header_len = 2 + 1 + 20 + 14;
439439
dev->needed_tailroom = 2; /* FCS */
440-
dev->mtu = 1281;
440+
dev->mtu = IPV6_MIN_MTU;
441441
dev->tx_queue_len = 0;
442442
dev->flags = IFF_BROADCAST | IFF_MULTICAST;
443443
dev->watchdog_timeo = 0;

0 commit comments

Comments
 (0)