Home
last modified time | relevance | path

Searched refs:nlmsg_type (Results 1 – 39 of 39) sorted by relevance

/linux-4.1.27/security/selinux/
Dnlmsgtab.c27 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 …]
Dhooks.c4768 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/
Dgetdelays.c118 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/
Dpn_netlink.c97 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/
Dcls_api.c142 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()
Dsch_api.c1119 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()
Dact_api.c955 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/
Dnfnetlink.c164 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()
Dnfnetlink_cttimeout.c231 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()
Dnfnetlink_acct.c212 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump()
300 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_acct_get()
Dnfnetlink_cthelper.c485 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_cthelper_dump_table()
554 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_cthelper_get()
Dnf_conntrack_netlink.c838 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()
Dnft_compat.c575 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_compat_get()
/linux-4.1.27/Documentation/connector/
Ducon.c73 nlh->nlmsg_type = NLMSG_DONE; in netlink_send()
230 switch (reply->nlmsg_type) { in main()
/linux-4.1.27/tools/hv/
Dhv_vss_daemon.c148 struct nlmsghdr nlh = { .nlmsg_type = NLMSG_DONE }; in netlink_send()
307 if (incoming_msg->nlmsg_type != NLMSG_DONE) in main()
Dhv_kvp_daemon.c1393 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/
Dscsi_netlink.c68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg()
Dscsi_transport_iscsi.c2608 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/
Dinet_diag.c125 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()
Dipmr.c641 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/
Dnetlink.h44 __u16 nlmsg_type; /* Message content */ member
/linux-4.1.27/drivers/staging/gdm72xx/
Dnetlink_k.c72 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
/linux-4.1.27/drivers/staging/gdm724x/
Dnetlink_k.c76 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
/linux-4.1.27/drivers/infiniband/core/
Diwpm_msg.c582 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()
Dnetlink.c144 int type = nlh->nlmsg_type; in ibnl_rcv_msg()
Diwpm_util.c631 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
/linux-4.1.27/security/selinux/include/
Dsecurity.h235 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/linux-4.1.27/net/core/
Dsock_diag.c186 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
Drtnetlink.c2367 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/
Dop-msg.c389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, in wimax_gnl_doit_msg_from_user()
/linux-4.1.27/net/xfrm/
Dxfrm_user.c608 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/
Daudit.c397 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/
Dcrypto_user.c487 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
/linux-4.1.27/net/ipv6/
Daddrlabel.c436 switch (nlh->nlmsg_type) { in ip6addrlbl_newdel()
Dip6mr.c854 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/
Ddn_fib.c593 req.nlh.nlmsg_type = cmd; in fib_magic()
/linux-4.1.27/net/netlink/
Dgenetlink.c652 family = genl_family_find_byid(nlh->nlmsg_type); in genl_rcv_msg()
Daf_netlink.c2664 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/
Ddcbnl.c1716 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) in dcb_doit()