/linux-4.1.27/security/selinux/ |
D | nlmsgtab.c | 27 u16 nlmsg_type; member 136 static int nlmsg_perm(u16 nlmsg_type, u32 *perm, struct nlmsg_perm *tab, size_t tabsize) in nlmsg_perm() argument 141 if (nlmsg_type == tab[i].nlmsg_type) { in nlmsg_perm() 150 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument 158 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup() 163 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup() 169 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup() 174 if ((nlmsg_type >= AUDIT_FIRST_USER_MSG && in selinux_nlmsg_lookup() 175 nlmsg_type <= AUDIT_LAST_USER_MSG) || in selinux_nlmsg_lookup() 176 (nlmsg_type >= AUDIT_FIRST_USER_MSG2 && in selinux_nlmsg_lookup() [all …]
|
D | hooks.c | 4768 err = selinux_nlmsg_lookup(sksec->sclass, nlh->nlmsg_type, &perm); in selinux_nlmsg_perm() 4774 sk->sk_protocol, nlh->nlmsg_type, sksec->sclass); in selinux_nlmsg_perm()
|
/linux-4.1.27/Documentation/accounting/ |
D | getdelays.c | 118 static int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, in send_cmd() argument 130 msg.n.nlmsg_type = nlmsg_type; in send_cmd() 182 if (ans.n.nlmsg_type == NLMSG_ERROR || in get_family_id() 452 if (msg.n.nlmsg_type == NLMSG_ERROR || in main()
|
/linux-4.1.27/net/phonet/ |
D | pn_netlink.c | 97 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit() 102 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit() 263 if (nlh->nlmsg_type == RTM_NEWROUTE) in route_doit() 268 rtm_phonet_notify(nlh->nlmsg_type, dev, dst); in route_doit()
|
/linux-4.1.27/net/sched/ |
D | cls_api.c | 142 if ((n->nlmsg_type != RTM_GETTFILTER) && in tc_ctl_tfilter() 160 if (n->nlmsg_type != RTM_NEWTFILTER || in tc_ctl_tfilter() 226 if (n->nlmsg_type != RTM_NEWTFILTER || in tc_ctl_tfilter() 288 if (n->nlmsg_type == RTM_DELTFILTER && t->tcm_handle == 0) { in tc_ctl_tfilter() 300 if (n->nlmsg_type != RTM_NEWTFILTER || in tc_ctl_tfilter() 304 switch (n->nlmsg_type) { in tc_ctl_tfilter()
|
D | sch_api.c | 1119 if ((n->nlmsg_type != RTM_GETQDISC) && in tc_get_qdisc() 1159 if (n->nlmsg_type == RTM_DELQDISC) { in tc_get_qdisc() 1534 if ((n->nlmsg_type != RTM_GETTCLASS) && in tc_ctl_tclass() 1611 if (n->nlmsg_type != RTM_NEWTCLASS || in tc_ctl_tclass() 1615 switch (n->nlmsg_type) { in tc_ctl_tclass()
|
D | act_api.c | 955 if ((n->nlmsg_type != RTM_GETACTION) && !netlink_capable(skb, CAP_NET_ADMIN)) in tc_ctl_action() 968 switch (n->nlmsg_type) { in tc_ctl_action() 1051 cb->nlh->nlmsg_type, sizeof(*t), 0); in tc_dump_action()
|
/linux-4.1.27/net/netfilter/ |
D | nfnetlink.c | 164 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 190 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_msg() 335 type = nlh->nlmsg_type; in nfnetlink_rcv_batch() 365 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_batch() 447 if (nlh->nlmsg_type == NFNL_MSG_BATCH_BEGIN) { in nfnetlink_rcv()
|
D | nfnetlink_cttimeout.c | 231 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnl_timeout_dump() 277 NFNL_MSG_TYPE(nlh->nlmsg_type), in cttimeout_get_timeout() 465 NFNL_MSG_TYPE(nlh->nlmsg_type), in cttimeout_default_get()
|
D | nfnetlink_acct.c | 212 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump() 300 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_acct_get()
|
D | nfnetlink_cthelper.c | 485 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_cthelper_dump_table() 554 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_cthelper_get()
|
D | nf_conntrack_netlink.c | 838 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnetlink_dump_table() 1165 NFNL_MSG_TYPE(nlh->nlmsg_type), ct); in ctnetlink_get_conntrack() 1231 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnetlink_dump_list() 2023 NFNL_MSG_TYPE(nlh->nlmsg_type), in ctnetlink_stat_ct()
|
D | nft_compat.c | 575 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_compat_get()
|
/linux-4.1.27/Documentation/connector/ |
D | ucon.c | 73 nlh->nlmsg_type = NLMSG_DONE; in netlink_send() 230 switch (reply->nlmsg_type) { in main()
|
/linux-4.1.27/tools/hv/ |
D | hv_vss_daemon.c | 148 struct nlmsghdr nlh = { .nlmsg_type = NLMSG_DONE }; in netlink_send() 307 if (incoming_msg->nlmsg_type != NLMSG_DONE) in main()
|
D | hv_kvp_daemon.c | 1393 struct nlmsghdr nlh = { .nlmsg_type = NLMSG_DONE }; in netlink_send() 1580 if (incoming_msg->nlmsg_type != NLMSG_DONE) in main()
|
/linux-4.1.27/drivers/scsi/ |
D | scsi_netlink.c | 68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg()
|
D | scsi_transport_iscsi.c | 2608 evstat->type = nlh->nlmsg_type; in iscsi_if_get_stats() 3058 evchap->type = nlh->nlmsg_type; in iscsi_get_chap() 3463 evhost_stats->type = nlh->nlmsg_type; in iscsi_get_host_stats() 3500 if (nlh->nlmsg_type == ISCSI_UEVENT_PATH_UPDATE) in iscsi_if_recv_msg() 3513 switch (nlh->nlmsg_type) { in iscsi_if_recv_msg() 3619 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); in iscsi_if_recv_msg() 3723 nlh->nlmsg_type, 0, 0, ev, sizeof(*ev)); in iscsi_if_rx()
|
/linux-4.1.27/net/ipv4/ |
D | inet_diag.c | 125 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill() 271 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill() 306 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_req_diag_fill() 994 req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type); in inet_diag_dump_compat() 1012 req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type); in inet_diag_get_exact_compat() 1025 if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX || in inet_diag_rcv_msg_compat()
|
D | ipmr.c | 641 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_destroy_unres() 930 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_cache_resolve()
|
/linux-4.1.27/include/uapi/linux/ |
D | netlink.h | 44 __u16 nlmsg_type; /* Message content */ member
|
/linux-4.1.27/drivers/staging/gdm72xx/ |
D | netlink_k.c | 72 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
|
/linux-4.1.27/drivers/staging/gdm724x/ |
D | netlink_k.c | 76 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
|
/linux-4.1.27/drivers/infiniband/core/ |
D | iwpm_msg.c | 582 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_remote_info_cb() 666 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_info_cb() 726 int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_error_cb()
|
D | netlink.c | 144 int type = nlh->nlmsg_type; in ibnl_rcv_msg()
|
D | iwpm_util.c | 631 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
|
/linux-4.1.27/security/selinux/include/ |
D | security.h | 235 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
|
/linux-4.1.27/net/core/ |
D | sock_diag.c | 186 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
|
D | rtnetlink.c | 2367 int type = cb->nlh->nlmsg_type-RTM_BASE; in rtnl_dump_all() 3208 type = nlh->nlmsg_type; in rtnetlink_rcv_msg()
|
/linux-4.1.27/net/wimax/ |
D | op-msg.c | 389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, in wimax_gnl_doit_msg_from_user()
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_user.c | 608 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) in xfrm_add_sa() 623 c.event = nlh->nlmsg_type; in xfrm_add_sa() 693 c.event = nlh->nlmsg_type; in xfrm_del_sa() 1503 excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY; in xfrm_add_policy() 1513 c.event = nlh->nlmsg_type; in xfrm_add_policy() 1696 delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY; in xfrm_get_policy() 1748 c.event = nlh->nlmsg_type; in xfrm_get_policy() 1776 c.event = nlh->nlmsg_type; in xfrm_flush_sa() 1936 c.event = nlh->nlmsg_type; in xfrm_new_ae() 1967 c.event = nlh->nlmsg_type; in xfrm_flush_policy() [all …]
|
/linux-4.1.27/kernel/ |
D | audit.c | 397 if (nlh->nlmsg_type != AUDIT_EOE) { in audit_printk_skb() 399 pr_notice("type=%d %s\n", nlh->nlmsg_type, data); in audit_printk_skb() 805 u16 msg_type = nlh->nlmsg_type; in audit_receive_msg()
|
/linux-4.1.27/crypto/ |
D | crypto_user.c | 487 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
|
/linux-4.1.27/net/ipv6/ |
D | addrlabel.c | 436 switch (nlh->nlmsg_type) { in ip6addrlbl_newdel()
|
D | ip6mr.c | 854 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_destroy_unres() 1116 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_cache_resolve()
|
/linux-4.1.27/net/decnet/ |
D | dn_fib.c | 593 req.nlh.nlmsg_type = cmd; in fib_magic()
|
/linux-4.1.27/net/netlink/ |
D | genetlink.c | 652 family = genl_family_find_byid(nlh->nlmsg_type); in genl_rcv_msg()
|
D | af_netlink.c | 2664 nlh->nlmsg_type = type; in __nlmsg_put() 2905 if (nlh->nlmsg_type < NLMSG_MIN_TYPE) in netlink_rcv_skb()
|
/linux-4.1.27/net/dcb/ |
D | dcbnl.c | 1716 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) in dcb_doit()
|