kernel-netlink: Define netlink buffer as an union having a netlink header
This allows us to streamline the netlink buffers, and avoid extensive casting.
This commit is contained in:
1 parent
6fe02dda75
commit
0404a29bfe
4 files changed
+24
-21
No files matched your search
@@ -108,7 +108,7 @@ static job_requeue_t reset_cb(struct reset_cb_data_t *data)
|
||||
|
||||
memset(&request, 0, sizeof(request));
|
||||
|
||||
hdr = (struct nlmsghdr*)request;
|
||||
hdr = &request.hdr;
|
||||
hdr->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | NLM_F_REPLACE;
|
||||
hdr->nlmsg_seq = 201;
|
||||
hdr->nlmsg_pid = getpid();
|
||||
|
||||
Reference in new issue
Block a user