zephyr/subsys/net
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
..
ip net/pkt: Allocate relevant size on AF_UNSPEC 2019-02-04 17:15:52 +02:00
l2 net/lldp: Switch LLDP to new net_pkt API 2019-02-01 14:34:38 +02:00
lib net: Remove net_app references from the code 2019-02-01 19:05:56 -05:00
buf.c net: buf: Add net_buf_pull_mem() API 2019-01-28 15:21:23 +02:00
CMakeLists.txt net: l2: Move the layer 2 code into subsys/net/ 2018-06-27 17:02:59 +03:00
hostname.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
Kconfig net: buf: Use proper Kconfig log level template 2018-10-24 15:10:33 +03:00
Kconfig.hostname net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.default.net net: Convert core IP stack to use log levels 2018-10-04 14:13:57 +03:00
Kconfig.template.log_config.net net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
TODO Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00