/Linux-v5.4/security/selinux/ |
D | nlmsgtab.c | 24 u16 nlmsg_type; member 144 static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize) in nlmsg_perm() argument 149 if (nlmsg_type == tab[i].nlmsg_type) { in nlmsg_perm() 158 int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm) in selinux_nlmsg_lookup() argument 170 err = nlmsg_perm(nlmsg_type, perm, nlmsg_route_perms, in selinux_nlmsg_lookup() 175 err = nlmsg_perm(nlmsg_type, perm, nlmsg_tcpdiag_perms, in selinux_nlmsg_lookup() 185 err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms, in selinux_nlmsg_lookup() 190 if ((nlmsg_type >= AUDIT_FIRST_USER_MSG && in selinux_nlmsg_lookup() 191 nlmsg_type <= AUDIT_LAST_USER_MSG) || in selinux_nlmsg_lookup() 192 (nlmsg_type >= AUDIT_FIRST_USER_MSG2 && in selinux_nlmsg_lookup() [all …]
|
/Linux-v5.4/samples/bpf/ |
D | xdp_router_ipv4_user.c | 106 if (nh->nlmsg_type == NLMSG_DONE) in recv_msg() 148 if (nh->nlmsg_type == RTM_DELROUTE) in read_route() 150 else if (nh->nlmsg_type == RTM_GETROUTE) in read_route() 152 else if (nh->nlmsg_type == RTM_NEWROUTE) in read_route() 155 printf("%d\n", nh->nlmsg_type); in read_route() 221 if (nh->nlmsg_type == RTM_DELROUTE) { in read_route() 259 if (nh->nlmsg_type == RTM_DELROUTE) { in read_route() 343 req.nl.nlmsg_type = RTM_GETROUTE; in get_route_table() 394 if (nh->nlmsg_type == RTM_GETNEIGH) in read_arp() 423 if (nh->nlmsg_type == RTM_DELNEIGH) { in read_arp() [all …]
|
/Linux-v5.4/tools/lib/bpf/ |
D | netlink.c | 106 switch (nh->nlmsg_type) { in bpf_netlink_recv() 149 req.nh.nlmsg_type = RTM_SETLINK; in bpf_set_link_xdp_fd() 292 .nlh.nlmsg_type = RTM_GETLINK, in libbpf_nl_get_link() 330 .nlh.nlmsg_type = RTM_GETTCLASS, in libbpf_nl_get_class() 369 .nlh.nlmsg_type = RTM_GETQDISC, in libbpf_nl_get_qdisc() 408 .nlh.nlmsg_type = RTM_GETTFILTER, in libbpf_nl_get_filter()
|
/Linux-v5.4/net/phonet/ |
D | pn_netlink.c | 86 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit() 91 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit() 254 if (nlh->nlmsg_type == RTM_NEWROUTE) in route_doit() 259 rtm_phonet_notify(nlh->nlmsg_type, dev, dst); in route_doit()
|
/Linux-v5.4/tools/accounting/ |
D | getdelays.c | 119 static int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, in send_cmd() argument 131 msg.n.nlmsg_type = nlmsg_type; in send_cmd() 183 if (ans.n.nlmsg_type == NLMSG_ERROR || in get_family_id() 460 if (msg.n.nlmsg_type == NLMSG_ERROR || in main()
|
/Linux-v5.4/tools/testing/vsock/ |
D | vsock_diag_test.c | 185 .nlmsg_type = SOCK_DIAG_BY_FAMILY, in send_req() 292 if (h->nlmsg_type == NLMSG_DONE) in read_vsock_stat() 295 if (h->nlmsg_type == NLMSG_ERROR) { in read_vsock_stat() 308 if (h->nlmsg_type != SOCK_DIAG_BY_FAMILY) { in read_vsock_stat() 310 h->nlmsg_type); in read_vsock_stat()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | netlink.c | 155 int type = nlh->nlmsg_type; in rdma_nl_rcv_msg() 232 (RDMA_NL_GET_CLIENT(nlh->nlmsg_type) != RDMA_NL_LS)) in rdma_nl_rcv_skb() 236 if (nlh->nlmsg_type < NLMSG_MIN_TYPE) in rdma_nl_rcv_skb()
|
D | iwpm_msg.c | 650 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_remote_info_cb() 737 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_info_cb() 805 int nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_mapping_error_cb() 864 nl_client = RDMA_NL_GET_CLIENT(cb->nlh->nlmsg_type); in iwpm_hello_cb()
|
/Linux-v5.4/samples/connector/ |
D | ucon.c | 59 nlh->nlmsg_type = NLMSG_DONE; in netlink_send() 216 switch (reply->nlmsg_type) { in main()
|
/Linux-v5.4/net/core/ |
D | sock_diag.c | 232 else if (nlh->nlmsg_type == SOCK_DIAG_BY_FAMILY) in __sock_diag_cmd() 234 else if (nlh->nlmsg_type == SOCK_DESTROY && hndl->destroy) in __sock_diag_cmd() 248 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg()
|
/Linux-v5.4/net/netfilter/ |
D | nfnetlink.c | 171 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 197 u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_msg() 384 type = nlh->nlmsg_type; in nfnetlink_rcv_batch() 414 u8 cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_batch() 560 if (nlh->nlmsg_type == NFNL_MSG_BATCH_BEGIN) in nfnetlink_rcv()
|
D | nfnetlink_cttimeout.c | 229 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in ctnl_timeout_dump() 276 NFNL_MSG_TYPE(nlh->nlmsg_type), in cttimeout_get_timeout() 495 NFNL_MSG_TYPE(nlh->nlmsg_type), in cttimeout_default_get()
|
D | nfnetlink_acct.c | 215 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump() 305 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_acct_get()
|
D | nfnetlink_cthelper.c | 598 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_cthelper_dump_table() 667 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_cthelper_get()
|
/Linux-v5.4/net/ipv4/ |
D | inet_diag.c | 177 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill() 337 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill() 373 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_req_diag_fill() 1095 req.sdiag_protocol = inet_diag_type2proto(cb->nlh->nlmsg_type); in inet_diag_dump_compat() 1113 req.sdiag_protocol = inet_diag_type2proto(nlh->nlmsg_type); in inet_diag_get_exact_compat() 1126 if (nlh->nlmsg_type >= INET_DIAG_GETSOCK_MAX || in inet_diag_rcv_msg_compat() 1160 if (h->nlmsg_type == SOCK_DIAG_BY_FAMILY && in inet_diag_handler_cmd() 1180 return inet_diag_cmd_exact(h->nlmsg_type, skb, h, nlmsg_data(h)); in inet_diag_handler_cmd()
|
/Linux-v5.4/drivers/scsi/ |
D | scsi_netlink.c | 54 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg()
|
/Linux-v5.4/net/smc/ |
D | smc_diag.c | 88 cb->nlh->nlmsg_type, sizeof(*r), NLM_F_MULTI); in __smc_diag_dump() 235 if (h->nlmsg_type == SOCK_DIAG_BY_FAMILY && in smc_diag_handler_dump()
|
/Linux-v5.4/drivers/staging/gdm724x/ |
D | netlink_k.c | 61 rcv_cb(dev, nlh->nlmsg_type, msg, mlen); in netlink_rcv_cb()
|
/Linux-v5.4/include/uapi/linux/ |
D | netlink.h | 46 __u16 nlmsg_type; /* Message content */ member
|
/Linux-v5.4/tools/include/uapi/linux/ |
D | netlink.h | 46 __u16 nlmsg_type; /* Message content */ member
|
/Linux-v5.4/net/wimax/ |
D | op-msg.c | 374 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, in wimax_gnl_doit_msg_from_user()
|
/Linux-v5.4/net/xfrm/ |
D | xfrm_user.c | 688 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) in xfrm_add_sa() 707 c.event = nlh->nlmsg_type; in xfrm_add_sa() 777 c.event = nlh->nlmsg_type; in xfrm_del_sa() 1669 excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY; in xfrm_add_policy() 1679 c.event = nlh->nlmsg_type; in xfrm_add_policy() 1869 delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY; in xfrm_get_policy() 1924 c.event = nlh->nlmsg_type; in xfrm_get_policy() 1950 c.event = nlh->nlmsg_type; in xfrm_flush_sa() 2119 c.event = nlh->nlmsg_type; in xfrm_new_ae() 2150 c.event = nlh->nlmsg_type; in xfrm_flush_policy() [all …]
|
/Linux-v5.4/security/selinux/include/ |
D | security.h | 392 extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
|
/Linux-v5.4/net/sched/ |
D | sch_api.c | 1419 if ((n->nlmsg_type != RTM_GETQDISC) && in tc_get_qdisc() 1470 if (n->nlmsg_type == RTM_DELQDISC) { in tc_get_qdisc() 1970 if ((n->nlmsg_type != RTM_GETTCLASS) && in tc_ctl_tclass() 2048 if (n->nlmsg_type != RTM_NEWTCLASS || in tc_ctl_tclass() 2052 switch (n->nlmsg_type) { in tc_ctl_tclass()
|
D | act_api.c | 1390 if ((n->nlmsg_type != RTM_GETACTION) && in tc_ctl_action() 1405 switch (n->nlmsg_type) { in tc_ctl_action() 1498 cb->nlh->nlmsg_type, sizeof(*t), 0); in tc_dump_action()
|