Commit 7eec5a9e authored by Stanislav Kinsbursky's avatar Stanislav Kinsbursky Committed by Cyrill Gorcunov

Sockets: replace macroses concatenation with single one for netlink requests

NLM_F_DUMP is already defined as (NLM_F_ROOT|NLM_F_MATCH)
Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 7dcf59de
...@@ -341,7 +341,7 @@ static int collect_unix_sockets(int nl) ...@@ -341,7 +341,7 @@ static int collect_unix_sockets(int nl)
memset(&req, 0, sizeof(req)); memset(&req, 0, sizeof(req));
req.hdr.nlmsg_len = sizeof(req); req.hdr.nlmsg_len = sizeof(req);
req.hdr.nlmsg_type = SOCK_DIAG_BY_FAMILY; req.hdr.nlmsg_type = SOCK_DIAG_BY_FAMILY;
req.hdr.nlmsg_flags = NLM_F_ROOT | NLM_F_MATCH | NLM_F_REQUEST; req.hdr.nlmsg_flags = NLM_F_DUMP | NLM_F_REQUEST;
req.hdr.nlmsg_seq = CR_NLMSG_SEQ; req.hdr.nlmsg_seq = CR_NLMSG_SEQ;
req.r.sdiag_family = AF_UNIX; req.r.sdiag_family = AF_UNIX;
req.r.udiag_states = -1; /* All */ req.r.udiag_states = -1; /* All */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment