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.

Direct dependencies

NETWORKING

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/net/ip/Kconfig:396

Included via Kconfig:10Kconfig.zephyr:35subsys/Kconfig:22subsys/net/Kconfig:91

Menu path: (top menu) → Networking → IP stack

config NET_BUF_DATA_SIZE
    int
    prompt "Size of each network data fragment" if NETWORKING
    default 125 if NET_L2_IEEE802154 && NETWORKING
    default 128 if NETWORKING
    depends on NETWORKING
    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.)