Lines Matching refs:NETLINK_CB

136 	NETLINK_CB(new).portid = NETLINK_CB(skb).portid;  in netlink_to_full_skb()
137 NETLINK_CB(new).dst_group = NETLINK_CB(skb).dst_group; in netlink_to_full_skb()
138 NETLINK_CB(new).creds = NETLINK_CB(skb).creds; in netlink_to_full_skb()
726 NETLINK_CB(skb).flags |= NETLINK_SKB_MMAPED; in netlink_ring_setup_skb()
727 NETLINK_CB(skb).sk = sk; in netlink_ring_setup_skb()
776 NETLINK_CB(skb).portid = nlk->portid; in netlink_mmap_sendmsg()
777 NETLINK_CB(skb).dst_group = dst_group; in netlink_mmap_sendmsg()
778 NETLINK_CB(skb).creds = scm->creds; in netlink_mmap_sendmsg()
814 hdr->nm_group = NETLINK_CB(skb).dst_group; in netlink_queue_mmaped_skb()
815 hdr->nm_pid = NETLINK_CB(skb).creds.pid; in netlink_queue_mmaped_skb()
816 hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); in netlink_queue_mmaped_skb()
817 hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); in netlink_queue_mmaped_skb()
821 NETLINK_CB(skb).flags |= NETLINK_SKB_DELIVERED; in netlink_queue_mmaped_skb()
844 hdr->nm_group = NETLINK_CB(skb).dst_group; in netlink_ring_set_copied()
845 hdr->nm_pid = NETLINK_CB(skb).creds.pid; in netlink_ring_set_copied()
846 hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); in netlink_ring_set_copied()
847 hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); in netlink_ring_set_copied()
873 sk = NETLINK_CB(skb).sk; in netlink_skb_destructor()
875 if (NETLINK_CB(skb).flags & NETLINK_SKB_TX) { in netlink_skb_destructor()
879 if (!(NETLINK_CB(skb).flags & NETLINK_SKB_DELIVERED)) { in netlink_skb_destructor()
1398 return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap); in netlink_ns_capable()
1813 NETLINK_CB(skb).sk = ssk; in netlink_unicast_kernel()
2319 info.group = NETLINK_CB(skb).dst_group; in netlink_cmsg_recv_pktinfo()
2387 NETLINK_CB(skb).portid = nlk->portid; in netlink_sendmsg()
2388 NETLINK_CB(skb).dst_group = dst_group; in netlink_sendmsg()
2389 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg()
2390 NETLINK_CB(skb).flags = netlink_skb_flags; in netlink_sendmsg()
2472 addr->nl_pid = NETLINK_CB(skb).portid; in netlink_recvmsg()
2473 addr->nl_groups = netlink_group_mask(NETLINK_CB(skb).dst_group); in netlink_recvmsg()
2796 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); in __netlink_dump_start()
2861 NETLINK_CB(in_skb).portid, GFP_KERNEL); in netlink_ack()
2867 NETLINK_CB(in_skb).portid); in netlink_ack()
2876 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2881 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()