Home
last modified time | relevance | path

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

/linux-4.4.14/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.c4785 err = selinux_nlmsg_lookup(sksec->sclass, nlh->nlmsg_type, &perm); in selinux_nlmsg_perm()
4791 sk->sk_protocol, nlh->nlmsg_type, in selinux_nlmsg_perm()
/linux-4.4.14/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.4.14/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.4.14/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.c1121 if ((n->nlmsg_type != RTM_GETQDISC) && in tc_get_qdisc()
1161 if (n->nlmsg_type == RTM_DELQDISC) { in tc_get_qdisc()
1536 if ((n->nlmsg_type != RTM_GETTCLASS) && in tc_ctl_tclass()
1613 if (n->nlmsg_type != RTM_NEWTCLASS || in tc_ctl_tclass()
1617 switch (n->nlmsg_type) { in tc_ctl_tclass()
Dact_api.c973 if ((n->nlmsg_type != RTM_GETACTION) && !netlink_capable(skb, CAP_NET_ADMIN)) in tc_ctl_action()
986 switch (n->nlmsg_type) { in tc_ctl_action()
1069 cb->nlh->nlmsg_type, sizeof(*t), 0); in tc_dump_action()
/linux-4.4.14/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()
341 type = nlh->nlmsg_type; in nfnetlink_rcv_batch()
371 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_batch()
457 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()
494 NFNL_MSG_TYPE(nlh->nlmsg_type), in cttimeout_default_get()
Dnfnetlink_acct.c212 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump()
301 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.c870 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnetlink_dump_table()
1235 NFNL_MSG_TYPE(nlh->nlmsg_type), ct); in ctnetlink_get_conntrack()
1301 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnetlink_dump_list()
2097 NFNL_MSG_TYPE(nlh->nlmsg_type), in ctnetlink_stat_ct()
Dnft_compat.c577 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_compat_get()
/linux-4.4.14/Documentation/connector/
Ducon.c73 nlh->nlmsg_type = NLMSG_DONE; in netlink_send()
230 switch (reply->nlmsg_type) { in main()
/linux-4.4.14/drivers/scsi/
Dscsi_netlink.c68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg()
Dscsi_transport_iscsi.c2611 evstat->type = nlh->nlmsg_type; in iscsi_if_get_stats()
3062 evchap->type = nlh->nlmsg_type; in iscsi_get_chap()
3467 evhost_stats->type = nlh->nlmsg_type; in iscsi_get_host_stats()
3504 if (nlh->nlmsg_type == ISCSI_UEVENT_PATH_UPDATE) in iscsi_if_recv_msg()
3517 switch (nlh->nlmsg_type) { in iscsi_if_recv_msg()
3623 err = iscsi_if_transport_ep(transport, ev, nlh->nlmsg_type); in iscsi_if_recv_msg()
3727 nlh->nlmsg_type, 0, 0, ev, sizeof(*ev)); in iscsi_if_rx()
/linux-4.4.14/net/ipv4/
Dinet_diag.c125 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill()
275 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill()
310 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_req_diag_fill()
918 req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type); in inet_diag_dump_compat()
936 req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type); in inet_diag_get_exact_compat()
949 if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX || in inet_diag_rcv_msg_compat()
Dipmr.c632 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_destroy_unres()
921 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_cache_resolve()
/linux-4.4.14/include/uapi/linux/
Dnetlink.h44 __u16 nlmsg_type; /* Message content */ member
/linux-4.4.14/drivers/staging/gdm72xx/
Dnetlink_k.c72 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
/linux-4.4.14/drivers/staging/gdm724x/
Dnetlink_k.c76 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
/linux-4.4.14/drivers/infiniband/core/
Diwpm_msg.c582 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_remote_info_cb()
665 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_info_cb()
725 int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_error_cb()
Dnetlink.c152 int type = nlh->nlmsg_type; in ibnl_rcv_msg()
Diwpm_util.c639 nlh->nlmsg_type = NLMSG_DONE; in send_nlmsg_done()
/linux-4.4.14/security/selinux/include/
Dsecurity.h266 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/linux-4.4.14/net/wimax/
Dop-msg.c389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, in wimax_gnl_doit_msg_from_user()
/linux-4.4.14/net/xfrm/
Dxfrm_user.c631 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) in xfrm_add_sa()
646 c.event = nlh->nlmsg_type; in xfrm_add_sa()
716 c.event = nlh->nlmsg_type; in xfrm_del_sa()
1526 excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY; in xfrm_add_policy()
1536 c.event = nlh->nlmsg_type; in xfrm_add_policy()
1719 delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY; in xfrm_get_policy()
1771 c.event = nlh->nlmsg_type; in xfrm_get_policy()
1799 c.event = nlh->nlmsg_type; in xfrm_flush_sa()
1961 c.event = nlh->nlmsg_type; in xfrm_new_ae()
1992 c.event = nlh->nlmsg_type; in xfrm_flush_policy()
[all …]
/linux-4.4.14/net/core/
Dsock_diag.c248 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
Drtnetlink.c2499 int type = cb->nlh->nlmsg_type-RTM_BASE; in rtnl_dump_all()
3358 type = nlh->nlmsg_type; in rtnetlink_rcv_msg()
/linux-4.4.14/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()
819 u16 msg_type = nlh->nlmsg_type; in audit_receive_msg()
/linux-4.4.14/crypto/
Dcrypto_user.c487 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
/linux-4.4.14/net/ipv6/
Daddrlabel.c436 switch (nlh->nlmsg_type) { in ip6addrlbl_newdel()
Dip6mr.c849 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_destroy_unres()
1111 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_cache_resolve()
/linux-4.4.14/net/decnet/
Ddn_fib.c593 req.nlh.nlmsg_type = cmd; in fib_magic()
/linux-4.4.14/net/netlink/
Dgenetlink.c652 family = genl_family_find_byid(nlh->nlmsg_type); in genl_rcv_msg()
Daf_netlink.c2765 nlh->nlmsg_type = type; in __nlmsg_put()
3012 if (nlh->nlmsg_type < NLMSG_MIN_TYPE) in netlink_rcv_skb()
/linux-4.4.14/net/dcb/
Ddcbnl.c1713 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) in dcb_doit()