Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add latest NETLINK_* constants #127197

Open
rruuaanng opened this issue Nov 23, 2024 · 0 comments
Open

Add latest NETLINK_* constants #127197

rruuaanng opened this issue Nov 23, 2024 · 0 comments
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@rruuaanng
Copy link
Contributor

rruuaanng commented Nov 23, 2024

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

@rruuaanng rruuaanng added the type-feature A feature request or enhancement label Nov 23, 2024
@picnixz picnixz added the extension-modules C modules in the Modules dir label Nov 23, 2024
@rruuaanng rruuaanng changed the title Add missing netlink macro constants Add latest netlink constants Nov 27, 2024
@rruuaanng rruuaanng changed the title Add latest netlink constants Add latest NETLINK_* constants Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants