sicslowpan: Fixed too aggresive fragmentation
This commit is contained in:
parent
2cf7d98cad
commit
677c078302
5 changed files with 35 additions and 13 deletions
|
@ -220,13 +220,12 @@
|
|||
#define SICSLOWPAN_CONF_FRAG 1
|
||||
#endif /* SICSLOWPAN_CONF_FRAG */
|
||||
|
||||
/* SICSLOWPAN_CONF_MAC_MAX_PAYLOAD specifies the maximum size of
|
||||
packets before they get fragmented. The default is 127 bytes (the
|
||||
maximum size of a 802.15.4 frame) - 25 bytes (for the 802.15.4 MAC
|
||||
layer header). This can be increased for systems with larger packet
|
||||
sizes. */
|
||||
/* SICSLOWPAN_CONF_MAC_MAX_PAYLOAD is the maximum available size for
|
||||
frame headers, link layer security-related overhead, as well as
|
||||
6LoWPAN payload. By default, SICSLOWPAN_CONF_MAC_MAX_PAYLOAD is
|
||||
127 bytes (MTU of 802.15.4) - 2 bytes (Footer of 802.15.4). */
|
||||
#ifndef SICSLOWPAN_CONF_MAC_MAX_PAYLOAD
|
||||
#define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD (127 - 25)
|
||||
#define SICSLOWPAN_CONF_MAC_MAX_PAYLOAD (127 - 2)
|
||||
#endif /* SICSLOWPAN_CONF_MAC_MAX_PAYLOAD */
|
||||
|
||||
/* SICSLOWPAN_CONF_COMPRESSION_THRESHOLD sets a lower threshold for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue