CONFIG_NET_SOCKETS_PACKET_DGRAM

Enable packet socket SOCK_DGRAM support

Type: bool

Help

For AF_PACKET sockets with SOCK_DGRAM type, the L2 header is removed before the packet is passed to the user. Packets sent through a SOCK_DGRAM packet socket get a suitable L2 header based on the information in the sockaddr_ll destination address before they are queued.

Direct dependencies

NET_SOCKETS_PACKET && NET_SOCKETS && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • y

Kconfig definition

At <Zephyr>/subsys/net/lib/sockets/Kconfig:161

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:34<Zephyr>/subsys/net/Kconfig:89<Zephyr>/subsys/net/lib/Kconfig:30

Menu path: (Top) → Sub Systems and OS Services → Networking → Link layer and IP networking support → Network Libraries → BSD Sockets compatible API → Enable packet socket support

config NET_SOCKETS_PACKET_DGRAM
    bool "Enable packet socket SOCK_DGRAM support"
    default y
    depends on NET_SOCKETS_PACKET && NET_SOCKETS && NETWORKING
    help
      For AF_PACKET sockets with SOCK_DGRAM type, the L2 header
      is removed before the packet is passed to the user.  Packets sent
      through a SOCK_DGRAM packet socket get a suitable L2 header based
      on the information in the sockaddr_ll destination address before
      they are queued.

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