1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/include/net/gnrc
Benjamin Valentin 4065da8838 gnrc/netif: 6lo: use 16 bit for max_frag_size
Using 8 bit for `max_frag_size` limits that value to 255.
802.15.4g specifies a PDU of 2047 bytes which exceeds that limit.

Using a 16 bit value here allows to use the full L2 PDU.

Before:

    12:02:16,300 # ping6 fe80::2068:3123:59f5:d238%8 -s 400
    12:02:16,302 # sending 244 bytes
    12:02:16,387 # sending 218 bytes
    12:02:16,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=0 ttl=64 rssi=-49 dBm time=316.307 ms
    12:02:17,302 # sending 244 bytes
    12:02:17,387 # sending 218 bytes
    12:02:17,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=1 ttl=64 rssi=-49 dBm time=316.307 ms
    12:02:18,302 # sending 244 bytes
    12:02:18,387 # sending 218 bytes
    12:02:18,624 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=2 ttl=64 rssi=-50 dBm time=316.306 ms
    12:02:18,625 #
    12:02:18,629 # --- fe80::2068:3123:59f5:d238 PING statistics ---

With this patch:

    12:09:44,276 #  ping6 fe80::2068:3123:59f5:d238%8 -s 400
    12:09:44,278 # sending 432 bytes
    12:09:44,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=0 ttl=64 rssi=-52 dBm time=289.888 ms
    12:09:45,279 # sending 432 bytes
    12:09:45,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=1 ttl=64 rssi=-52 dBm time=289.885 ms
    12:09:46,069 # sending 43 bytes
    12:09:46,279 # sending 432 bytes
    12:09:46,499 # sending 43 bytes
    12:09:46,574 # 408 bytes from fe80::2068:3123:59f5:d238%8: icmp_seq=2 ttl=64 rssi=-47 dBm time=289.886 ms
    12:09:46,574 #
    12:09:46,578 # --- fe80::2068:3123:59f5:d238 PING statistics ---
2020-04-29 12:49:36 +02:00
..
dhcpv6/client gnrc_dhcpv6_client: configure prefix as compression context on 6LBRs 2020-03-09 14:21:53 +01:00
gomach gnrc_netif: document new *_create() out parameter as such 2020-03-26 14:37:44 +01:00
icmpv6 sys/include: fix typos 2019-11-23 22:39:37 +01:00
ipv6 gnrc/nib/conf.h: Align configuration values 2020-03-31 19:02:55 +02:00
lorawan gnrc_lorawan: add public headers 2019-11-26 21:52:05 +01:00
lwmac gnrc_netif: document new *_create() out parameter as such 2020-03-26 14:37:44 +01:00
mac gnrc_mac: add timeout module. 2019-01-21 22:46:10 +08:00
netif gnrc/netif: 6lo: use 16 bit for max_frag_size 2020-04-29 12:49:36 +02:00
rpl gnrc_rpl_p2p: fix cleanup timer usage 2020-02-14 11:41:30 +01:00
sixlowpan gnrc_sixlowpan_frag_stats: add average fragments per datagram statistic 2020-02-06 13:40:23 +01:00
tcp sys/include: fix typos 2019-11-23 22:39:37 +01:00
icmpv6.h gnrc_ipv6: gnrc_icmpv6: simplify access to network interfaces 2018-01-17 16:48:58 +01:00
ipv6.h net/gnrc/ipv6: Move config macros to 'CONFIG_' namespace 2020-01-07 15:36:04 +01:00
lorawan.h Merge pull request #12866 from jia200x/pr/gnrc_lorawan_remove_netdev 2020-01-30 14:02:59 +01:00
ndp.h many typo fixes 2019-11-23 22:39:07 +01:00
netapi.h Merge pull request #10441 from miri64/gnrc_netapi/enh/codesize-opt 2018-12-12 09:51:02 +01:00
neterr.h many typo fixes 2019-11-23 22:39:07 +01:00
netif.h gnrc_netif: Add support for internal event loop 2020-04-17 12:02:39 +02:00
netreg.h sys/include: fix typos 2019-11-23 22:39:37 +01:00
nettest.h gnrc_nettest: add deprecation note 2019-10-29 10:41:45 +01:00
nettype.h gnrc_nettype: deprecate iovec type 2020-01-20 13:39:24 +01:00
pkt.h many typo fixes 2019-11-23 22:39:07 +01:00
pktbuf.h gnrc_pktbuf: deprecate gnrc_pktbuf_replace_snip() 2020-02-11 09:49:57 +01:00
pktdump.h cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
pktqueue.h doc: Fix 'must not'/'may not' wording 2017-12-19 09:00:12 +01:00
priority_pktqueue.h doc: Fix 'must not'/'may not' wording 2017-12-19 09:00:12 +01:00
rpl.h gnrc_netif: remove GNRC_NETIF_NUMOF macro 2020-03-26 11:12:23 +01:00
sixlowpan.h gnrc_sixlowpan_frag_rb: unify naming scheme 2019-09-28 12:11:54 +02:00
tcp.h gnrc_tcp: Add Endpoints for connection specification 2020-02-26 21:24:06 +01:00
udp.h gnrc_udp: assert ports not zero 2018-08-06 16:09:22 +02:00