Skip to content

Add latest NETLINK_* constants #127197

Closed as not planned
Closed as not planned
@rruuaanng

Description

@rruuaanng

Feature or enhancement

Proposal:

This issue suggests adding new netlink constants

They are usually used in the proto parameter of the socket.

e.g.

/* Kernel swap userspace event, such as device hotplugging */
socket(AF_NETLINK, SOCK_RAW, NETLINK_KOBJECT_UEVENT)
/* iSCSI protocal */
socket(AF_NETLINK, SOCK_RAW, NETLINK_ISCSI)
/* socket diagnostics, used to query status words */
socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG)
/* used to interact with audit subsystem */
socket(AF_NETLINK, SOCK_RAW, NETLINK_AUDIT)
/* NETLINK_SOCK_DIAG's packaging*/
socket(AF_NETLINK, SOCK_RAW, NETLINK_INET_DIAG)
/* SCSI device interaction related, such as status words, events */
socket(AF_NETLINK, SOCK_RAW, NETLINK_SCSITRANSPORT)
/*  used to interact with the security-enhanced subsystem */
socket(AF_NETLINK, SOCK_RAW, NETLINK_SELINUX);

ref:
https://github.com/torvalds/linux/blob/master/include/uapi/linux/netlink.h

I'll submitte a PR.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirpendingThe issue will be closed if no feedback is providedtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions