The latest development version of this page may be more current than this released 1.14.0 version.
CONFIG_NET_SOCKETS_PACKET

Enable packet socket support

Type: bool

Help

This is an initial version of packet socket support (special type raw socket). Packets are passed to and from the device driver without any changes in the packet headers. It’s API caller responsibility to provide all the headers (e.g L2, L3 and so on) while sending. While receiving, packets (including all the headers) will be feed to sockets as it as from the driver.

Direct dependencies

NET_L2_ETHERNET && NET_SOCKETS && NETWORKING

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

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/net/lib/sockets/Kconfig:109

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:24subsys/net/Kconfig:84subsys/net/lib/Kconfig:29

Menu path: (top menu) → Networking → Network Libraries → BSD Sockets compatible API

config NET_SOCKETS_PACKET
    bool
    prompt "Enable packet socket support" if NET_L2_ETHERNET && NET_SOCKETS && NETWORKING
    depends on NET_L2_ETHERNET && NET_SOCKETS && NETWORKING
    help
      This is an initial version of packet socket support (special type
      raw socket). Packets are passed to and from the device driver
      without any changes in the packet headers. It's API caller
      responsibility to provide all the headers (e.g L2, L3 and so on)
      while sending. While receiving, packets (including all the headers)
      will be feed to sockets as it as from the driver.

(Definitions include propagated dependencies, including from if’s and menus.)