/external/iproute2/tipc/ |
D | msg.c | 33 static int family_id_cb(const struct nlmsghdr *nlh, void *data) in family_id_cb() argument 36 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in family_id_cb() 39 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, tb); in family_id_cb() 48 static struct mnl_socket *msg_send(struct nlmsghdr *nlh) in msg_send() argument 65 ret = mnl_socket_sendto(nl, nlh, nlh->nlmsg_len); in msg_send() 97 static int msg_query(struct nlmsghdr *nlh, mnl_cb_t callback, void *data) in msg_query() argument 103 nlh->nlmsg_seq = seq; in msg_query() 105 nl = msg_send(nlh); in msg_query() 116 struct nlmsghdr *nlh; in get_family() local 120 nlh = mnl_nlmsg_put_header(buf); in get_family() [all …]
|
D | bearer.c | 70 static int enable_l2_bearer(struct nlmsghdr *nlh, struct opt *opts, in enable_l2_bearer() argument 81 mnl_attr_put_strz(nlh, TIPC_NLA_BEARER_NAME, id); in enable_l2_bearer() 86 static int get_netid_cb(const struct nlmsghdr *nlh, void *data) in get_netid_cb() argument 88 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in get_netid_cb() 93 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in get_netid_cb() 108 struct nlmsghdr *nlh; in generate_multicast() local 110 if (!(nlh = msg_init(mnl_msg, TIPC_NL_NET_GET))) { in generate_multicast() 114 if (msg_dumpit(nlh, get_netid_cb, &netid)) { in generate_multicast() 126 static int enable_udp_bearer(struct nlmsghdr *nlh, struct opt *opts, in enable_udp_bearer() argument 200 mnl_attr_put_strz(nlh, TIPC_NLA_BEARER_NAME, name); in enable_udp_bearer() [all …]
|
D | node.c | 27 static int node_list_cb(const struct nlmsghdr *nlh, void *data) in node_list_cb() argument 30 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in node_list_cb() 34 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in node_list_cb() 56 static int cmd_node_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_list() argument 66 if (!(nlh = msg_init(buf, TIPC_NL_NODE_GET))) { in cmd_node_list() 71 return msg_dumpit(nlh, node_list_cb, NULL); in cmd_node_list() 74 static int cmd_node_set_addr(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_node_set_addr() argument 93 if (!(nlh = msg_init(buf, TIPC_NL_NET_SET))) { in cmd_node_set_addr() 98 nest = mnl_attr_nest_start(nlh, TIPC_NLA_NET); in cmd_node_set_addr() 99 mnl_attr_put_u32(nlh, TIPC_NLA_NET_ADDR, addr); in cmd_node_set_addr() [all …]
|
D | media.c | 26 static int media_list_cb(const struct nlmsghdr *nlh, void *data) in media_list_cb() argument 28 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in media_list_cb() 32 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in media_list_cb() 45 static int cmd_media_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_list() argument 55 if (!(nlh = msg_init(buf, TIPC_NL_MEDIA_GET))) { in cmd_media_list() 60 return msg_dumpit(nlh, media_list_cb, NULL); in cmd_media_list() 63 static int media_get_cb(const struct nlmsghdr *nlh, void *data) in media_get_cb() argument 66 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in media_get_cb() 71 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in media_get_cb() 88 static int cmd_media_get_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_media_get_prop() argument [all …]
|
D | link.c | 26 static int link_list_cb(const struct nlmsghdr *nlh, void *data) in link_list_cb() argument 28 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in link_list_cb() 32 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in link_list_cb() 50 static int cmd_link_list(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_list() argument 60 if (!(nlh = msg_init(buf, TIPC_NL_LINK_GET))) { in cmd_link_list() 65 return msg_dumpit(nlh, link_list_cb, NULL); in cmd_link_list() 68 static int link_get_cb(const struct nlmsghdr *nlh, void *data) in link_get_cb() argument 71 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in link_get_cb() 76 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in link_get_cb() 94 static int cmd_link_get_prop(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_link_get_prop() argument [all …]
|
D | socket.c | 26 static int publ_list_cb(const struct nlmsghdr *nlh, void *data) in publ_list_cb() argument 28 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in publ_list_cb() 32 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in publ_list_cb() 48 struct nlmsghdr *nlh; in publ_list() local 52 if (!(nlh = msg_init(buf, TIPC_NL_PUBL_GET))) { in publ_list() 57 nest = mnl_attr_nest_start(nlh, TIPC_NLA_SOCK); in publ_list() 58 mnl_attr_put_u32(nlh, TIPC_NLA_SOCK_REF, sock); in publ_list() 59 mnl_attr_nest_end(nlh, nest); in publ_list() 61 return msg_dumpit(nlh, publ_list_cb, NULL); in publ_list() 64 static int sock_list_cb(const struct nlmsghdr *nlh, void *data) in sock_list_cb() argument [all …]
|
D | peer.c | 27 static int cmd_peer_rm_addr(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_peer_rm_addr() argument 46 if (!(nlh = msg_init(buf, TIPC_NL_PEER_REMOVE))) { in cmd_peer_rm_addr() 51 nest = mnl_attr_nest_start(nlh, TIPC_NLA_NET); in cmd_peer_rm_addr() 52 mnl_attr_put_u32(nlh, TIPC_NLA_NET_ADDR, addr); in cmd_peer_rm_addr() 53 mnl_attr_nest_end(nlh, nest); in cmd_peer_rm_addr() 55 return msg_doit(nlh, NULL, NULL); in cmd_peer_rm_addr() 64 static int cmd_peer_rm(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_peer_rm() argument 72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer_rm() 84 int cmd_peer(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_peer() argument 92 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer()
|
D | nametable.c | 26 static int nametable_show_cb(const struct nlmsghdr *nlh, void *data) in nametable_show_cb() argument 30 struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh); in nametable_show_cb() 36 mnl_attr_parse(nlh, sizeof(*genl), parse_attrs, info); in nametable_show_cb() 72 static int cmd_nametable_show(struct nlmsghdr *nlh, const struct cmd *cmd, in cmd_nametable_show() argument 83 if (!(nlh = msg_init(buf, TIPC_NL_NAME_TABLE_GET))) { in cmd_nametable_show() 88 return msg_dumpit(nlh, nametable_show_cb, &iteration); in cmd_nametable_show() 100 int cmd_nametable(struct nlmsghdr *nlh, const struct cmd *cmd, struct cmdl *cmdl, in cmd_nametable() argument 108 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_nametable()
|
/external/libnl/lib/ |
D | msg.c | 218 void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() argument 220 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data() 223 void *nlmsg_tail(const struct nlmsghdr *nlh) in nlmsg_tail() argument 225 return (unsigned char *) nlh + NLMSG_ALIGN(nlh->nlmsg_len); in nlmsg_tail() 232 int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument 234 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len() 249 struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrdata() argument 251 unsigned char *data = nlmsg_data(nlh); in nlmsg_attrdata() 260 int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument 262 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() [all …]
|
/external/libnl/lib/genl/ |
D | genl.c | 146 int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) in genlmsg_valid_hdr() argument 150 if (!nlmsg_valid_hdr(nlh, GENL_HDRLEN)) in genlmsg_valid_hdr() 153 ghdr = nlmsg_data(nlh); in genlmsg_valid_hdr() 160 int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, in genlmsg_validate() argument 165 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_validate() 168 ghdr = nlmsg_data(nlh); in genlmsg_validate() 173 int genlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], in genlmsg_parse() argument 178 if (!genlmsg_valid_hdr(nlh, hdrlen)) in genlmsg_parse() 181 ghdr = nlmsg_data(nlh); in genlmsg_parse() 201 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() local [all …]
|
/external/iproute2/genl/ |
D | ctrl.c | 45 struct nlmsghdr *nlh; in genl_ctrl_resolve_family() local 55 nlh = &req.n; in genl_ctrl_resolve_family() 56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family() 57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK; in genl_ctrl_resolve_family() 58 nlh->nlmsg_type = GENL_ID_CTRL; in genl_ctrl_resolve_family() 68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1); in genl_ctrl_resolve_family() 70 if (rtnl_talk(&rth, nlh, nlh, sizeof(req)) < 0) { in genl_ctrl_resolve_family() 77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_ctrl_resolve_family() 78 int len = nlh->nlmsg_len; in genl_ctrl_resolve_family() 81 if (nlh->nlmsg_type != GENL_ID_CTRL) { in genl_ctrl_resolve_family() [all …]
|
/external/libpcap/ |
D | pcap-netfilter-linux.c | 110 const struct nlmsghdr *nlh = (const struct nlmsghdr *) buf; in netfilter_read_linux() local 114 if (nlh->nlmsg_len < sizeof(struct nlmsghdr) || len < nlh->nlmsg_len) { in netfilter_read_linux() 115 …le->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %d) (nlmsg_len: %u)", len, nlh->nlmsg_len); in netfilter_read_linux() 119 if (NFNL_SUBSYS_ID(nlh->nlmsg_type) == NFNL_SUBSYS_ULOG && in netfilter_read_linux() 120 NFNL_MSG_TYPE(nlh->nlmsg_type) == NFULNL_MSG_PACKET) in netfilter_read_linux() 122 else if (NFNL_SUBSYS_ID(nlh->nlmsg_type) == NFNL_SUBSYS_QUEUE && in netfilter_read_linux() 123 NFNL_MSG_TYPE(nlh->nlmsg_type) == NFQNL_MSG_PACKET) in netfilter_read_linux() 136 if (nlh->nlmsg_len < HDR_LENGTH) { in netfilter_read_linux() 137 … snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Malformed message: (nlmsg_len: %u)", nlh->nlmsg_len); in netfilter_read_linux() 141 nfg = NLMSG_DATA(nlh); in netfilter_read_linux() [all …]
|
/external/libnl/include/linux/ |
D | netlink.h | 80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 85 (nlh)->nlmsg_len <= (len)) 86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/libnl/lib/netfilter/ |
D | nfnl.c | 131 uint8_t nfnlmsg_subsys(struct nlmsghdr *nlh) in nfnlmsg_subsys() argument 133 return NFNL_SUBSYS_ID(nlh->nlmsg_type); in nfnlmsg_subsys() 140 uint8_t nfnlmsg_subtype(struct nlmsghdr *nlh) in nfnlmsg_subtype() argument 142 return NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnlmsg_subtype() 149 uint8_t nfnlmsg_family(struct nlmsghdr *nlh) in nfnlmsg_family() argument 151 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_family() 160 uint16_t nfnlmsg_res_id(struct nlmsghdr *nlh) in nfnlmsg_res_id() argument 162 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_res_id() 234 struct nlmsghdr *nlh; in nfnlmsg_put() local 236 nlh = nlmsg_put(msg, pid, seq, NFNLMSG_TYPE(subsys_id, type), 0, flags); in nfnlmsg_put() [all …]
|
D | queue_msg.c | 62 int nfnlmsg_queue_msg_parse(struct nlmsghdr *nlh, in nfnlmsg_queue_msg_parse() argument 74 msg->ce_msgtype = nlh->nlmsg_type; in nfnlmsg_queue_msg_parse() 76 err = nlmsg_parse(nlh, sizeof(struct nfgenmsg), tb, NFQA_MAX, in nfnlmsg_queue_msg_parse() 81 nfnl_queue_msg_set_group(msg, nfnlmsg_res_id(nlh)); in nfnlmsg_queue_msg_parse() 82 nfnl_queue_msg_set_family(msg, nfnlmsg_family(nlh)); in nfnlmsg_queue_msg_parse() 149 struct nlmsghdr *nlh, struct nl_parser_param *pp) in queue_msg_parser() argument 154 if ((err = nfnlmsg_queue_msg_parse(nlh, &msg)) < 0) in queue_msg_parser() 199 int nfnl_queue_msg_send_verdict(struct nl_sock *nlh, in nfnl_queue_msg_send_verdict() argument 209 err = nl_send_auto_complete(nlh, nlmsg); in nfnl_queue_msg_send_verdict() 213 return wait_for_ack(nlh); in nfnl_queue_msg_send_verdict() [all …]
|
D | queue.c | 84 int nfnl_queue_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_bind() argument 92 return send_queue_request(nlh, msg); in nfnl_queue_pf_bind() 100 int nfnl_queue_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_queue_pf_unbind() argument 108 return send_queue_request(nlh, msg); in nfnl_queue_pf_unbind() 182 int nfnl_queue_create(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_create() argument 190 return send_queue_request(nlh, msg); in nfnl_queue_create() 199 int nfnl_queue_change(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_change() argument 207 return send_queue_request(nlh, msg); in nfnl_queue_change() 220 int nfnl_queue_delete(struct nl_sock *nlh, const struct nfnl_queue *queue) in nfnl_queue_delete() argument 228 return send_queue_request(nlh, msg); in nfnl_queue_delete()
|
D | log.c | 74 int nfnl_log_pf_bind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_bind() argument 82 return send_log_request(nlh, msg); in nfnl_log_pf_bind() 90 int nfnl_log_pf_unbind(struct nl_sock *nlh, uint8_t pf) in nfnl_log_pf_unbind() argument 98 return send_log_request(nlh, msg); in nfnl_log_pf_unbind() 182 int nfnl_log_create(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_create() argument 190 return send_log_request(nlh, msg); in nfnl_log_create() 199 int nfnl_log_change(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_change() argument 207 return send_log_request(nlh, msg); in nfnl_log_change() 220 int nfnl_log_delete(struct nl_sock *nlh, const struct nfnl_log *log) in nfnl_log_delete() argument 228 return send_log_request(nlh, msg); in nfnl_log_delete()
|
/external/wpa_supplicant_8/src/drivers/ |
D | priv_netlink.h | 53 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0))) argument 54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 56 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \ argument 58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 59 (int) (nlh)->nlmsg_len <= (len)) 60 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/iptables/libipq/ |
D | libipq.c | 129 struct nlmsghdr *nlh; in ipq_netlink_recvfrom() local 185 nlh = (struct nlmsghdr *)buf; in ipq_netlink_recvfrom() 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { in ipq_netlink_recvfrom() 272 struct nlmsghdr nlh; in ipq_set_mode() member 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); in ipq_set_mode() 278 req.nlh.nlmsg_flags = NLM_F_REQUEST; in ipq_set_mode() 279 req.nlh.nlmsg_type = IPQM_MODE; in ipq_set_mode() 280 req.nlh.nlmsg_pid = h->local.nl_pid; in ipq_set_mode() 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); in ipq_set_mode() 321 struct nlmsghdr nlh; in ipq_set_verdict() local [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | netlink.h | 85 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 86 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 88 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 89 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 90 (nlh)->nlmsg_len <= (len)) 91 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/iproute2/include/linux/ |
D | netlink.h | 85 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 86 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 88 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 89 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 90 (nlh)->nlmsg_len <= (len)) 91 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/external/iputils/ninfod/ |
D | ni_ifaddrs.c | 96 struct nlmsghdr *nlh; member 220 struct nlmsghdr *nlh = NULL; in nl_getlist() local 230 status = nl_getmsg(sd, request, seq, &nlh, &done); in nl_getlist() 233 if (nlh) { in nl_getlist() 237 free(nlh); in nl_getlist() 242 nlm_next->nlh = (struct nlmsghdr *) nlh; in nl_getlist() 268 if(nlm->nlh) in free_nlmsglist() 269 free(nlm->nlh); in free_nlmsglist() 353 struct nlmsghdr *nlh, *nlh0; in ni_ifaddrs() local 383 if (!(nlh0 = nlm->nlh)) in ni_ifaddrs() [all …]
|
/external/iproute2/lib/ |
D | libgenl.c | 12 static int genl_parse_getfamily(struct nlmsghdr *nlh) in genl_parse_getfamily() argument 15 struct genlmsghdr *ghdr = NLMSG_DATA(nlh); in genl_parse_getfamily() 16 int len = nlh->nlmsg_len; in genl_parse_getfamily() 19 if (nlh->nlmsg_type != GENL_ID_CTRL) { in genl_parse_getfamily() 21 "nlmsg_type=0x%x\n", nlh->nlmsg_len, nlh->nlmsg_type); in genl_parse_getfamily()
|
/external/libselinux/src/ |
D | avc_internal.c | 105 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive() local 148 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > (unsigned)rc) { in avc_netlink_receive() 161 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process() local 163 switch (nlh->nlmsg_type) { in avc_netlink_process() 165 struct nlmsgerr *err = NLMSG_DATA(nlh); in avc_netlink_process() 178 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh); in avc_netlink_process() 198 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh); in avc_netlink_process() 218 avc_prefix, nlh->nlmsg_type); in avc_netlink_process()
|
/external/selinux/libselinux/src/ |
D | avc_internal.c | 105 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive() local 148 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > (unsigned)rc) { in avc_netlink_receive() 161 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process() local 163 switch (nlh->nlmsg_type) { in avc_netlink_process() 165 struct nlmsgerr *err = NLMSG_DATA(nlh); in avc_netlink_process() 178 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh); in avc_netlink_process() 198 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh); in avc_netlink_process() 218 avc_prefix, nlh->nlmsg_type); in avc_netlink_process()
|