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 ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

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

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:82subsys/net/lib/Kconfig:28

Menu path: (Top) → Networking → Link layer and IP networking support → Network Libraries → BSD Sockets compatible API

config NET_SOCKETS_PACKET
    bool "Enable packet socket support"
    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.

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