CONFIG_NET_DEBUG_NET_PKT_NON_FRAGILE_ACCESS

Reduce r/w fragility by resetting the packet cursor when freed

Type: bool

Help

This MUST not be used unless you have an hard to catch bug. This will reset the pkt cursor when it’s freed, so any subsequent r/w operations will not segfault, but just bail out and hopefully it will enable you to know who/where the packet was freed already. Do not set this, by any means, unless you are actively debugging.

Direct dependencies

NETWORKING

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Symbols selected by this symbol

Kconfig definition

At subsys/net/ip/Kconfig.debug:36

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:80subsys/net/ip/Kconfig:739

Menu path: (Top) → Networking → Link layer and IP networking support → IP stack

config NET_DEBUG_NET_PKT_NON_FRAGILE_ACCESS
    bool "Reduce r/w fragility by resetting the packet cursor when freed"
    select NET_DEBUG_NET_PKT_ALLOC
    depends on NETWORKING
    help
      This MUST not be used unless you have an hard to catch bug. This will
      reset the pkt cursor when it's freed, so any subsequent r/w operations
      will not segfault, but just bail out and hopefully it will enable you
      to know who/where the packet was freed already. Do not set this, by
      any means, unless you are actively debugging.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)