zephyr/subsys/net/ip
Paul Sokolovsky 4718dac560 net: net_pkt_append: Take into account MTU when adding data to a packet
If we were asked to add 10KB to a packet, adding it won't help -
such packet won't be even sent by hardware on our side, and if
it is, it will be dropped by receiving side. So, make sure we
never add more data than MTU as set for the owning interface.
This actually gets a bit tricky, because we need also to account
for protocol header space. Typically, when net_pkt_append() is
called, protocol headers aren't even added to packet yet (they
are added in net_context_send() currently), so we have little
choice than to assume the standard header length, without any
extensions.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-11-10 16:30:42 +02:00
..
l2 net/ieee802154: Properly check the sequence when handling ACK frames 2017-11-09 10:00:38 +02:00
6lo_private.h net/net_pkt: Fully separate struct net_pkt from struct net_buf 2017-04-21 14:19:50 +03:00
6lo.c net: 6lo: Fix 6lo uncompression issue 2017-10-20 10:33:28 +03:00
6lo.h net/net_pkt: Fully separate struct net_pkt from struct net_buf 2017-04-21 14:19:50 +03:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
connection.c net: Log drop reason when UDP or TCP checksum mismatch occurs 2017-09-29 15:10:35 +03:00
connection.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
dhcpv4.c net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
dhcpv4.h net/dhcpv4: Rework initialization. 2017-03-09 20:33:41 +02:00
icmpv4.c net: icmpv4: Fix ICMPv4 packet size calculation 2017-09-13 09:28:32 -04:00
icmpv4.h net: icmpv4: Calculate start of ICMPv4 echo-req properly 2017-08-07 21:32:03 -04:00
icmpv6.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
icmpv6.h net: icmp: Remove NET_ICMP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
ipv4.c net: ipv4: Accept multicast packets for processing 2017-10-17 08:36:39 -04:00
ipv4.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
ipv6.c net: ipv6: Remove invalid assert when receiving NS 2017-10-24 11:30:41 +03:00
ipv6.h net: ipv6: Fix IPv6 address parameters when sending NA 2017-09-29 15:09:10 +03:00
Kconfig net: increase retransmission timeout (RTO) config range 2017-11-01 09:54:29 +02:00
Kconfig.debug net: pkt: Add CONFIG_NET_DEBUG_NET_PKT_ALL option 2017-08-16 14:50:57 -04:00
Kconfig.ipv4 license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig.ipv6 net/6lo: Enable it by default if IEEE 802.15.4 is enabled 2017-10-28 14:28:02 -04:00
Kconfig.mgmt net/mgmt: Cleanup a bit Kconfig 2017-10-09 10:53:17 +03:00
Kconfig.rpl net: rpl: Allow fine tuning of parent count 2017-08-14 11:06:34 +03:00
Kconfig.stack net: ip: Increase RX stack size 2017-04-07 13:33:55 +03:00
Kconfig.stats net: stats: Activate RPL and MLD stats if needed 2017-05-17 13:55:21 +03:00
nbr.c net: nbr: Use the real size of the neighbor pool 2017-08-14 11:06:34 +03:00
nbr.h net: nbr: Use the real size of the neighbor pool 2017-08-14 11:06:34 +03:00
net_context.c net: tcp: Add support for TCP options parsing 2017-11-08 16:19:57 +02:00
net_core.c net: Add hostname setting to Kconfig 2017-10-17 08:36:39 -04:00
net_if.c net: if: Add IPv4 multicast add, remove and lookup functions 2017-09-29 11:34:06 +03:00
net_mgmt.c net/mgmt: Make event notifiers able to pass info to listeners 2017-10-09 10:53:17 +03:00
net_pkt.c net: net_pkt_append: Take into account MTU when adding data to a packet 2017-11-10 16:30:42 +02:00
net_private.h net: pkt: net_pkt_tcp/udp_data: Better document caveats 2017-10-20 11:01:48 +03:00
net_shell.c net: http: Create HTTP library that uses net-app 2017-11-06 09:33:00 -05:00
net_shell.h net: shell: Remove net_shell_init() as it is not needed 2017-08-01 14:45:06 +03:00
net_stats.c net: stats: IPv6 multicast listener daemon stats not printed 2017-05-17 13:55:21 +03:00
net_stats.h net: stats: Add UDP checksum stats update function 2017-05-17 13:55:21 +03:00
route.c net: rpl: DAO message was discarded too early 2017-08-09 12:25:03 +03:00
route.h net: convert to using newly introduced integer sized types 2017-04-21 09:30:38 -05:00
rpl-mrhof.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
rpl-of0.c net: Fix indentation issues 2017-08-09 16:01:28 +03:00
rpl.c net: nbr: Print network interface pointer when adding neighbor 2017-09-26 11:31:57 +03:00
rpl.h net: Fix indentation issues 2017-08-09 16:01:28 +03:00
tcp.c net: tcp: net_tcp_parse_opts: Convert MSS value to host byte order 2017-11-09 17:00:26 +02:00
tcp.h net: tcp: Add support for TCP options parsing 2017-11-08 16:19:57 +02:00
trickle.c net: trickle: Do clock wrap check properly 2017-08-07 21:32:03 -04:00
udp_internal.h net: udp: Remove NET_UDP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
udp.c net: udp: Remove NET_UDP_HDR() macro and direct access to net_buf 2017-07-07 15:24:00 +03:00
utils.c net: Do not try to parse empty IP address string 2017-09-15 12:20:32 +03:00