Lines Matching refs:NETLINK_CB
138 NETLINK_CB(new).portid = NETLINK_CB(skb).portid; in netlink_to_full_skb()
139 NETLINK_CB(new).dst_group = NETLINK_CB(skb).dst_group; in netlink_to_full_skb()
140 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb()
740 NETLINK_CB(skb).flags |= NETLINK_SKB_MMAPED; in netlink_ring_setup_skb()
741 NETLINK_CB(skb).sk = sk; in netlink_ring_setup_skb()
790 NETLINK_CB(skb).portid = nlk->portid; in netlink_mmap_sendmsg()
791 NETLINK_CB(skb).dst_group = dst_group; in netlink_mmap_sendmsg()
792 NETLINK_CB(skb).creds = scm->creds; in netlink_mmap_sendmsg()
828 hdr->nm_group = NETLINK_CB(skb).dst_group; in netlink_queue_mmaped_skb()
829 hdr->nm_pid = NETLINK_CB(skb).creds.pid; in netlink_queue_mmaped_skb()
830 hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); in netlink_queue_mmaped_skb()
831 hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); in netlink_queue_mmaped_skb()
835 NETLINK_CB(skb).flags |= NETLINK_SKB_DELIVERED; in netlink_queue_mmaped_skb()
858 hdr->nm_group = NETLINK_CB(skb).dst_group; in netlink_ring_set_copied()
859 hdr->nm_pid = NETLINK_CB(skb).creds.pid; in netlink_ring_set_copied()
860 hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); in netlink_ring_set_copied()
861 hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); in netlink_ring_set_copied()
887 sk = NETLINK_CB(skb).sk; in netlink_skb_destructor()
889 if (NETLINK_CB(skb).flags & NETLINK_SKB_TX) { in netlink_skb_destructor()
893 if (!(NETLINK_CB(skb).flags & NETLINK_SKB_DELIVERED)) { in netlink_skb_destructor()
1417 return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap); in netlink_ns_capable()
1832 NETLINK_CB(skb).sk = ssk; in netlink_unicast_kernel()
2060 NETLINK_CB(p->skb2).nsid = peernet2id(sock_net(sk), p->net); in do_one_broadcast()
2061 NETLINK_CB(p->skb2).nsid_is_set = true; in do_one_broadcast()
2412 info.group = NETLINK_CB(skb).dst_group; in netlink_cmsg_recv_pktinfo()
2419 if (!NETLINK_CB(skb).nsid_is_set) in netlink_cmsg_listen_all_nsid()
2423 &NETLINK_CB(skb).nsid); in netlink_cmsg_listen_all_nsid()
2490 NETLINK_CB(skb).portid = nlk->portid; in netlink_sendmsg()
2491 NETLINK_CB(skb).dst_group = dst_group; in netlink_sendmsg()
2492 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg()
2493 NETLINK_CB(skb).flags = netlink_skb_flags; in netlink_sendmsg()
2575 addr->nl_pid = NETLINK_CB(skb).portid; in netlink_recvmsg()
2576 addr->nl_groups = netlink_group_mask(NETLINK_CB(skb).dst_group); in netlink_recvmsg()
2900 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); in __netlink_dump_start()
2959 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2968 NETLINK_CB(in_skb).portid, GFP_KERNEL); in netlink_ack()
2974 NETLINK_CB(in_skb).portid); in netlink_ack()
2983 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2988 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()