HomeFreeBSD

netlink: allow creating sockets with SOCK_DGRAM.

Description

netlink: allow creating sockets with SOCK_DGRAM.

Some existing applications setup Netlink socket with
SOCK_DGRAM instead of SOCK_RAW. Update the manpage to clarify
that the default way of creating the socket should be with
SOCK_RAW. Update the code to support both SOCK_RAW and SOCK_DGRAM.

Reviewed By: pauamma
Differential Revision: https://reviews.freebsd.org/D38075

(cherry picked from commit 0079d177ab69168df5e103128a2b15bd8e74d4eb)

Details

Provenance
melifaroAuthored on Jan 21 2023, 2:36 PM
Reviewer
pauamma_gundo.com
Differential Revision
D38075: netlink: allow creating sockets with SOCK_DGRAM.
Parents
rGb2e826efd6c4: netlink: fix OOB write when creating attribute bitmask.
Branches
Unknown
Tags
Unknown