Page MenuHomeFreeBSD

netlink: allow creating sockets with SOCK_DGRAM.
ClosedPublic

Authored by melifaro on Jan 16 2023, 2:20 PM.
Tags
None
Referenced Files
F96364069: D38075.id115189.diff
Tue, Sep 24, 5:24 PM
F96240530: D38075.diff
Tue, Sep 24, 4:39 AM
Unknown Object (File)
Tue, Sep 17, 4:12 PM
Unknown Object (File)
Sat, Sep 14, 4:29 AM
Unknown Object (File)
Tue, Sep 10, 8:23 PM
Unknown Object (File)
Sun, Sep 8, 7:47 AM
Unknown Object (File)
Sat, Sep 7, 7:58 PM
Unknown Object (File)
Fri, Sep 6, 5:45 AM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Errors
SeverityLocationCodeMessage
Errortests/sys/netlink/test_nl_core.py:19E501PEP8 E501
Errortests/sys/netlink/test_nl_core.py:32E501PEP8 E501
Unit
No Test Coverage
Build Status
Buildable 49135
Build 46024: arc lint + arc unit

Event Timeline

Manual page change LGTM. Can't attest to consistency with source code.

This revision is now accepted and ready to land.Jan 19 2023, 1:15 PM
This revision was landed with ongoing or failed builds.Jan 21 2023, 3:00 PM
This revision was automatically updated to reflect the committed changes.