zephyr/subsys/net/ip
Tomasz Bursztyka 968d423a44 net/pkt: Allocate relevant size on AF_UNSPEC
In case of Ethernet, if the requested size is larger than MTU and if
AF_UNSPEC is provided, the allocator will need to take into account
the ethernet header size which is not accounted in the MTU.

Other current L2 do not follow that rule as their MTU is based on IP
one (IPv6 most of the time). What they declare as MTU is the full frame
size they handle (minus the FCS for instance in 15.4). So with
AF_UNSPEC, such assumption on L2 header size is unrelevant.
(On 15.4 the header size is variable anyway and cannot be known until
the frame is parsed).

Fixes #12982

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2019-02-04 17:15:52 +02:00
..
6lo_private.h net: Convert raw timeout values to use K_MSEC() macro 2018-05-28 17:20:11 -04:00
6lo.c net/6lo: Remove fragmentation function parameter on compression 2018-12-14 14:16:37 +01:00
6lo.h net/6lo: Remove fragmentation function parameter on compression 2018-12-14 14:16:37 +01:00
CMakeLists.txt net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
connection.c net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
connection.h net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
dhcpv4.c net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
dhcpv4.h net/dhcpv4: Switch to new net_pkt API 2019-02-01 14:34:38 +02:00
icmpv4.c net/icmpv4: Remove useless create, get and set header functions 2019-02-01 14:34:38 +02:00
icmpv4.h net/icmpv4: Remove useless create, get and set header functions 2019-02-01 14:34:38 +02:00
icmpv6.c net/icmpv6: Remove various useless get/set hdr functions 2019-02-01 14:34:38 +02:00
icmpv6.h net/ipv6: Switch MLD join, leave and report to new net_pkt API 2019-02-01 14:34:38 +02:00
ipv4_autoconf_internal.h net: IPv4 link local support 2018-07-31 16:34:28 +03:00
ipv4_autoconf.c net/ipv4: Move autoconf to new net_pkt API 2019-02-01 14:34:38 +02:00
ipv4.c net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
ipv4.h net/ipv4: Add new API to create/finalize IPv4 headers. 2019-02-01 14:34:38 +02:00
ipv6_fragment.c net/ipv6: Switch sending fragmented IPv6 packet to new API 2019-02-01 14:34:38 +02:00
ipv6_mld.c net/ipv6: Switch MLD join, leave and report to new net_pkt API 2019-02-01 14:34:38 +02:00
ipv6_nbr.c net/ipv6: Switch IPv6 sending preparation to new net_pkt API 2019-02-01 14:34:38 +02:00
ipv6.c net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
ipv6.h net/ipv6: Switch sending fragmented IPv6 packet to new API 2019-02-01 14:34:38 +02:00
Kconfig net/pkt: Add generic get/set data functions 2019-02-01 14:34:38 +02:00
Kconfig.debug net/pkt: Add a debug option to track free pkt access more easily 2019-02-01 14:34:38 +02:00
Kconfig.ipv4 net/icmpv4: Disable broadcast echo request reply by default 2019-01-08 13:42:18 +02:00
Kconfig.ipv6 net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.mgmt net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.stack net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
Kconfig.stats net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
nbr.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
nbr.h net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
net_context.c net/context: Fix mutex unlock issues 2019-02-04 17:13:45 +02:00
net_core.c net/ipv6: Rework input function 2019-02-01 14:34:38 +02:00
net_if.c net/ipv6: Switch IPv6 sending preparation to new net_pkt API 2019-02-01 14:34:38 +02:00
net_mgmt.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
net_pkt.c net/pkt: Allocate relevant size on AF_UNSPEC 2019-02-04 17:15:52 +02:00
net_private.h net/ip: Let's make public the 2 utility unions for ip/proto headers 2019-02-01 14:34:38 +02:00
net_shell.c net: shell: Remove HTTP command as it is obsolete 2019-02-01 19:05:56 -05:00
net_shell.h net: shell: Migrate to new shell API 2018-10-15 11:14:02 +03:00
net_stats.c net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
net_stats.h net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
net_tc_mapping.h net: Fix credit-based shaper typos 2018-08-08 13:01:37 +03:00
net_tc.c net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
promiscuous.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
route.c net: rpl: Remove the deprecated code 2019-01-13 09:40:36 -05:00
route.h
tcp_internal.h net/tcp: Switch rest of TCP to new net_pkt API 2019-02-01 14:34:38 +02:00
tcp.c net/context: Fix mutex unlock issues 2019-02-04 17:13:45 +02:00
trickle.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
udp_internal.h net/udp: Remove now useless net_udp_get_chksum function 2019-02-01 14:34:38 +02:00
udp.c net/udp: Remove now useless net_udp_get_chksum function 2019-02-01 14:34:38 +02:00
utils.c net/core: Each and every received packet are being set to overwrite 2019-02-01 14:34:38 +02:00