:orphan: .. title:: NET_SOCKETS_PACKET_DGRAM .. option:: 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 =================== \ :option:`NET_SOCKETS_PACKET ` && \ :option:`NET_SOCKETS ` && \ :option:`NETWORKING ` *(Includes any dependencies from ifs and menus.)* Default ======= - y Kconfig definition ================== .. highlight:: kconfig At ``subsys/net/lib/sockets/Kconfig:161`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:34`` → ``subsys/Kconfig:37`` → ``subsys/net/Kconfig:89`` → ``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 .. parsed-literal:: config NET_SOCKETS_PACKET_DGRAM bool "Enable packet socket SOCK_DGRAM support" default y depends on \ :option:`NET_SOCKETS_PACKET ` && \ :option:`NET_SOCKETS ` && \ :option:`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.)*