-
CONFIG_NET_BUF_DATA_SIZE
¶
Size of each network data fragment
Type: int
Help¶
This value tells what is the size of the data fragment that is received from the network. Example: For IEEE 802.15.4, the network packet is 127 bytes long, which leaves in worst case 81 bytes for user data (MTU). In order to be able to receive at least full IPv6 packet which has a size of 1280 bytes, the one should allocate 16 fragments here.
Defaults¶
- 125 if
NET_L2_IEEE802154
&&NETWORKING
- 128 if
NETWORKING
Kconfig definition¶
At subsys/net/ip/Kconfig:396
Included via Kconfig:10
→ Kconfig.zephyr:35
→ subsys/Kconfig:22
→ subsys/net/Kconfig:91
Menu path: (top menu) → Networking → IP stack
config NET_BUF_DATA_SIZE int prompt "Size of each network data fragment" ifNETWORKING
default 125 ifNET_L2_IEEE802154
&&NETWORKING
default 128 ifNETWORKING
depends onNETWORKING
help This value tells what is the size of the data fragment that is received from the network. Example: For IEEE 802.15.4, the network packet is 127 bytes long, which leaves in worst case 81 bytes for user data (MTU). In order to be able to receive at least full IPv6 packet which has a size of 1280 bytes, the one should allocate 16 fragments here.
(Definitions include propagated dependencies, including from if’s and menus.)