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> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||
| TODO | ||