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

/linux-4.4.14/security/selinux/
H A Dnlmsgtab.c27 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 Dhooks.c4785 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 Dpn_netlink.c97 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 Dcls_api.c142 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 Dact_api.c973 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 Dsch_api.c1121 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 Ducon.c73 nlh->nlmsg_type = NLMSG_DONE; netlink_send()
230 switch (reply->nlmsg_type) { main()
/linux-4.4.14/Documentation/accounting/
H A Dgetdelays.c118 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 Dnfnetlink.c164 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 Dnfnetlink_cttimeout.c231 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 Dnfnetlink_acct.c212 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), nfnl_acct_dump()
301 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_acct_get()
H A Dnfnetlink_cthelper.c485 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), nfnl_cthelper_dump_table()
554 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_cthelper_get()
H A Dnf_conntrack_netlink.c870 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 Dnft_compat.c577 NFNL_MSG_TYPE(nlh->nlmsg_type), nfnl_compat_get()
/linux-4.4.14/drivers/scsi/
H A Dscsi_netlink.c68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { scsi_nl_rcv_msg()
H A Dscsi_transport_iscsi.c2611 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 Dnetlink_k.c76 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); netlink_rcv_cb()
/linux-4.4.14/drivers/staging/gdm72xx/
H A Dnetlink_k.c72 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); netlink_rcv_cb()
/linux-4.4.14/net/wimax/
H A Did-table.c81 * nlmsghdr->nlmsg_type field, so we pull it from there, look it up in
H A Dop-msg.c389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, wimax_gnl_doit_msg_from_user()
/linux-4.4.14/include/uapi/linux/
H A Dnetlink.h44 __u16 nlmsg_type; /* Message content */ member in struct:nlmsghdr
/linux-4.4.14/net/ipv4/
H A Dinet_diag.c125 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 Dipmr.c632 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 Diwpm_msg.c582 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 Dnetlink.c152 int type = nlh->nlmsg_type; ibnl_rcv_msg()
H A Diwpm_util.c639 nlh->nlmsg_type = NLMSG_DONE; send_nlmsg_done()
/linux-4.4.14/net/xfrm/
H A Dxfrm_user.c631 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 Dsock_diag.c248 switch (nlh->nlmsg_type) { sock_diag_rcv_msg()
H A Drtnetlink.c2499 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 Dsecurity.h266 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
/linux-4.4.14/crypto/
H A Dcrypto_user.c487 type = nlh->nlmsg_type; crypto_user_rcv_msg()
/linux-4.4.14/net/ipv6/
H A Daddrlabel.c436 switch (nlh->nlmsg_type) { ip6addrlbl_newdel()
H A Dip6mr.c849 nlh->nlmsg_type = NLMSG_ERROR; ip6mr_destroy_unres()
1111 nlh->nlmsg_type = NLMSG_ERROR; ip6mr_cache_resolve()
/linux-4.4.14/kernel/
H A Daudit.c397 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 Ddn_fib.c593 req.nlh.nlmsg_type = cmd; fib_magic()
/linux-4.4.14/include/net/
H A Dnetlabel.h64 * 'nlmsghdr->nlmsg_type' and should be defined below, supporting functions
/linux-4.4.14/net/netlink/
H A Dgenetlink.c652 family = genl_family_find_byid(nlh->nlmsg_type); genl_rcv_msg()
H A Daf_netlink.c2765 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 Ddcbnl.c1713 if ((nlh->nlmsg_type == RTM_SETDCB) && !netlink_capable(skb, CAP_NET_ADMIN)) dcb_doit()

Completed in 1433 milliseconds