/linux-4.4.14/security/selinux/ |
H A D | nlmsgtab.c | 27 u16 nlmsg_type; member in struct:nlmsg_perm 136 static int nlmsg_perm(u16 nlmsg_type, u32 *perm, struct nlmsg_perm *tab, size_t tabsize) nlmsg_perm() argument 141 if (nlmsg_type == tab[i].nlmsg_type) { nlmsg_perm() 150 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) selinux_nlmsg_lookup() argument 158 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, selinux_nlmsg_lookup() 163 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, selinux_nlmsg_lookup() 169 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, selinux_nlmsg_lookup() 174 if ((nlmsg_type >= AUDIT_FIRST_USER_MSG && selinux_nlmsg_lookup() 175 nlmsg_type <= AUDIT_LAST_USER_MSG) || selinux_nlmsg_lookup() 176 (nlmsg_type >= AUDIT_FIRST_USER_MSG2 && selinux_nlmsg_lookup() 177 nlmsg_type <= AUDIT_LAST_USER_MSG2)) { selinux_nlmsg_lookup() 180 err = nlmsg_perm(nlmsg_type, perm, nlmsg_audit_perms, selinux_nlmsg_lookup()
|
H A D | hooks.c | 4785 err = selinux_nlmsg_lookup(sksec->sclass, nlh->nlmsg_type, &perm); selinux_nlmsg_perm() 4790 " protocol=%hu nlmsg_type=%hu sclass=%s\n", selinux_nlmsg_perm() 4791 sk->sk_protocol, nlh->nlmsg_type, selinux_nlmsg_perm()
|
/linux-4.4.14/net/phonet/ |
H A D | pn_netlink.c | 97 if (nlh->nlmsg_type == RTM_NEWADDR) addr_doit() 102 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); addr_doit() 263 if (nlh->nlmsg_type == RTM_NEWROUTE) route_doit() 268 rtm_phonet_notify(nlh->nlmsg_type, dev, dst); route_doit()
|
/linux-4.4.14/net/sched/ |
H A D | cls_api.c | 142 if ((n->nlmsg_type != RTM_GETTFILTER) && tc_ctl_tfilter() 160 if (n->nlmsg_type != RTM_NEWTFILTER || tc_ctl_tfilter() 226 if (n->nlmsg_type != RTM_NEWTFILTER || tc_ctl_tfilter() 288 if (n->nlmsg_type == RTM_DELTFILTER && t->tcm_handle == 0) { tc_ctl_tfilter() 300 if (n->nlmsg_type != RTM_NEWTFILTER || tc_ctl_tfilter() 304 switch (n->nlmsg_type) { tc_ctl_tfilter()
|
H A D | act_api.c | 973 if ((n->nlmsg_type != RTM_GETACTION) && !netlink_capable(skb, CAP_NET_ADMIN)) tc_ctl_action() 986 switch (n->nlmsg_type) { tc_ctl_action() 1069 cb->nlh->nlmsg_type, sizeof(*t), 0); tc_dump_action()
|
H A D | sch_api.c | 1121 if ((n->nlmsg_type != RTM_GETQDISC) && tc_get_qdisc() 1161 if (n->nlmsg_type == RTM_DELQDISC) { tc_get_qdisc() 1536 if ((n->nlmsg_type != RTM_GETTCLASS) && tc_ctl_tclass() 1613 if (n->nlmsg_type != RTM_NEWTCLASS || tc_ctl_tclass() 1617 switch (n->nlmsg_type) { tc_ctl_tclass()
|
/linux-4.4.14/Documentation/connector/ |
H A D | ucon.c | 73 nlh->nlmsg_type = NLMSG_DONE; netlink_send() 230 switch (reply->nlmsg_type) { main()
|
/linux-4.4.14/Documentation/accounting/ |
H A D | getdelays.c | 118 static int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, send_cmd() argument 130 msg.n.nlmsg_type = nlmsg_type; send_cmd() 182 if (ans.n.nlmsg_type == NLMSG_ERROR || get_family_id() 452 if (msg.n.nlmsg_type == NLMSG_ERROR || main()
|
/linux-4.4.14/net/netfilter/ |
H A D | nfnetlink.c | 164 type = nlh->nlmsg_type; nfnetlink_rcv_msg() 190 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); nfnetlink_rcv_msg() 341 type = nlh->nlmsg_type; nfnetlink_rcv_batch() 371 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); nfnetlink_rcv_batch() 457 if (nlh->nlmsg_type == NFNL_MSG_BATCH_BEGIN) { nfnetlink_rcv()
|
H A D | nfnetlink_cttimeout.c | 231 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), ctnl_timeout_dump() 277 NFNL_MSG_TYPE(nlh->nlmsg_type), cttimeout_get_timeout() 494 NFNL_MSG_TYPE(nlh->nlmsg_type), cttimeout_default_get()
|
H A D | nfnetlink_acct.c | 212 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), nfnl_acct_dump() 301 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_acct_get()
|
H A D | nfnetlink_cthelper.c | 485 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), nfnl_cthelper_dump_table() 554 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_cthelper_get()
|
H A D | nf_conntrack_netlink.c | 870 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), ctnetlink_dump_table() 1235 NFNL_MSG_TYPE(nlh->nlmsg_type), ct); ctnetlink_get_conntrack() 1301 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), hlist_nulls_for_each_entry() 2097 NFNL_MSG_TYPE(nlh->nlmsg_type), ctnetlink_stat_ct()
|
H A D | nft_compat.c | 577 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_compat_get()
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_netlink.c | 68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { scsi_nl_rcv_msg()
|
H A D | scsi_transport_iscsi.c | 2611 evstat->type = nlh->nlmsg_type; iscsi_if_get_stats() 3062 evchap->type = nlh->nlmsg_type; iscsi_get_chap() 3467 evhost_stats->type = nlh->nlmsg_type; iscsi_get_host_stats() 3504 if (nlh->nlmsg_type == ISCSI_UEVENT_PATH_UPDATE) iscsi_if_recv_msg() 3517 switch (nlh->nlmsg_type) { iscsi_if_recv_msg() 3623 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); iscsi_if_recv_msg() 3727 nlh->nlmsg_type, 0, 0, ev, sizeof(*ev)); iscsi_if_rx()
|
/linux-4.4.14/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 76 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); netlink_rcv_cb()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
H A D | netlink_k.c | 72 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); netlink_rcv_cb()
|
/linux-4.4.14/net/wimax/ |
H A D | id-table.c | 81 * nlmsghdr->nlmsg_type field, so we pull it from there, look it up in
|
H A D | op-msg.c | 389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, wimax_gnl_doit_msg_from_user()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | netlink.h | 44 __u16 nlmsg_type; /* Message content */ member in struct:nlmsghdr
|
/linux-4.4.14/net/ipv4/ |
H A D | inet_diag.c | 125 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), inet_sk_diag_fill() 275 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), inet_twsk_diag_fill() 310 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), inet_req_diag_fill() 918 req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type); inet_diag_dump_compat() 936 req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type); inet_diag_get_exact_compat() 949 if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX || inet_diag_rcv_msg_compat()
|
H A D | ipmr.c | 632 nlh->nlmsg_type = NLMSG_ERROR; ipmr_destroy_unres() 921 nlh->nlmsg_type = NLMSG_ERROR; ipmr_cache_resolve()
|
/linux-4.4.14/drivers/infiniband/core/ |
H A D | iwpm_msg.c | 582 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); iwpm_remote_info_cb() 665 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); iwpm_mapping_info_cb() 725 int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); iwpm_mapping_error_cb()
|
H A D | netlink.c | 152 int type = nlh->nlmsg_type; ibnl_rcv_msg()
|
H A D | iwpm_util.c | 639 nlh->nlmsg_type = NLMSG_DONE; send_nlmsg_done()
|
/linux-4.4.14/net/xfrm/ |
H A D | xfrm_user.c | 631 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) xfrm_add_sa() 646 c.event = nlh->nlmsg_type; xfrm_add_sa() 716 c.event = nlh->nlmsg_type; xfrm_del_sa() 1526 excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY; xfrm_add_policy() 1536 c.event = nlh->nlmsg_type; xfrm_add_policy() 1719 delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY; xfrm_get_policy() 1771 c.event = nlh->nlmsg_type; xfrm_get_policy() 1799 c.event = nlh->nlmsg_type; xfrm_flush_sa() 1961 c.event = nlh->nlmsg_type; xfrm_new_ae() 1992 c.event = nlh->nlmsg_type; xfrm_flush_policy() 2456 type = nlh->nlmsg_type; xfrm_user_rcv_msg()
|
/linux-4.4.14/net/core/ |
H A D | sock_diag.c | 248 switch (nlh->nlmsg_type) { sock_diag_rcv_msg()
|
H A D | rtnetlink.c | 2499 int type = cb->nlh->nlmsg_type-RTM_BASE; rtnl_dump_all() 3358 type = nlh->nlmsg_type; rtnetlink_rcv_msg()
|
/linux-4.4.14/security/selinux/include/ |
H A D | security.h | 266 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
|
/linux-4.4.14/crypto/ |
H A D | crypto_user.c | 487 type = nlh->nlmsg_type; crypto_user_rcv_msg()
|
/linux-4.4.14/net/ipv6/ |
H A D | addrlabel.c | 436 switch (nlh->nlmsg_type) { ip6addrlbl_newdel()
|
H A D | ip6mr.c | 849 nlh->nlmsg_type = NLMSG_ERROR; ip6mr_destroy_unres() 1111 nlh->nlmsg_type = NLMSG_ERROR; ip6mr_cache_resolve()
|
/linux-4.4.14/kernel/ |
H A D | audit.c | 397 if (nlh->nlmsg_type != AUDIT_EOE) { audit_printk_skb() 399 pr_notice("type=%d %s\n", nlh->nlmsg_type, data); audit_printk_skb() 819 u16 msg_type = nlh->nlmsg_type; audit_receive_msg()
|
/linux-4.4.14/net/decnet/ |
H A D | dn_fib.c | 593 req.nlh.nlmsg_type = cmd; fib_magic()
|
/linux-4.4.14/include/net/ |
H A D | netlabel.h | 64 * 'nlmsghdr->nlmsg_type' and should be defined below, supporting functions
|
/linux-4.4.14/net/netlink/ |
H A D | genetlink.c | 652 family = genl_family_find_byid(nlh->nlmsg_type); genl_rcv_msg()
|
H A D | af_netlink.c | 2765 nlh->nlmsg_type = type; __nlmsg_put() 3012 if (nlh->nlmsg_type < NLMSG_MIN_TYPE) netlink_rcv_skb()
|
/linux-4.4.14/net/dcb/ |
H A D | dcbnl.c | 1713 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) dcb_doit()
|