:orphan: .. title:: CONFIG_NET_SOCKETS_PACKET_DGRAM .. kconfig:: CONFIG_NET_SOCKETS_PACKET_DGRAM CONFIG_NET_SOCKETS_PACKET_DGRAM ############################### *Enable packet socket SOCK\_DGRAM support* Type: ``bool`` Help ==== .. code-block:: none 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 =================== \ :kconfig:`NET_SOCKETS_PACKET ` && \ :kconfig:`NET_SOCKETS ` && \ :kconfig:`NETWORKING ` *(Includes any dependencies from ifs and menus.)* Default ======= - y Kconfig definition ================== At ``/net/lib/sockets/Kconfig:168`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:44`` → ``/Kconfig:39`` → ``/net/Kconfig:89`` → ``/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 .. code-block:: kconfig 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.)*