nlskb 28 net/netfilter/nf_tables_trace.c static int trace_fill_id(struct sk_buff *nlskb, struct sk_buff *skb) nlskb 41 net/netfilter/nf_tables_trace.c return nla_put_be32(nlskb, NFTA_TRACE_ID, id); nlskb 44 net/netfilter/nf_tables_trace.c static int trace_fill_header(struct sk_buff *nlskb, u16 type, nlskb 53 net/netfilter/nf_tables_trace.c nla = nla_reserve(nlskb, type, len); nlskb 60 net/netfilter/nf_tables_trace.c static int nf_trace_fill_ll_header(struct sk_buff *nlskb, nlskb 79 net/netfilter/nf_tables_trace.c return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); nlskb 82 net/netfilter/nf_tables_trace.c static int nf_trace_fill_dev_info(struct sk_buff *nlskb, nlskb 87 net/netfilter/nf_tables_trace.c if (nla_put_be32(nlskb, NFTA_TRACE_IIF, nlskb 91 net/netfilter/nf_tables_trace.c if (nla_put_be16(nlskb, NFTA_TRACE_IIFTYPE, nlskb 97 net/netfilter/nf_tables_trace.c if (nla_put_be32(nlskb, NFTA_TRACE_OIF, nlskb 101 net/netfilter/nf_tables_trace.c if (nla_put_be16(nlskb, NFTA_TRACE_OIFTYPE, nlskb 109 net/netfilter/nf_tables_trace.c static int nf_trace_fill_pkt_info(struct sk_buff *nlskb, nlskb 119 net/netfilter/nf_tables_trace.c if (trace_fill_header(nlskb, NFTA_TRACE_NETWORK_HEADER, skb, off, len)) nlskb 125 net/netfilter/nf_tables_trace.c if (trace_fill_header(nlskb, NFTA_TRACE_TRANSPORT_HEADER, skb, nlskb 134 net/netfilter/nf_tables_trace.c return nf_trace_fill_ll_header(nlskb, skb); nlskb 138 net/netfilter/nf_tables_trace.c return trace_fill_header(nlskb, NFTA_TRACE_LL_HEADER, nlskb 142 net/netfilter/nf_tables_trace.c static int nf_trace_fill_rule_info(struct sk_buff *nlskb, nlskb 157 net/netfilter/nf_tables_trace.c return nla_put_be64(nlskb, NFTA_TRACE_RULE_HANDLE, nlskb 263 net/netfilter/nfnetlink_queue.c nfqnl_put_packet_info(struct sk_buff *nlskb, struct sk_buff *packet, nlskb 276 net/netfilter/nfnetlink_queue.c return flags ? nla_put_be32(nlskb, NFQA_SKB_INFO, htonl(flags)) : 0; nlskb 12 net/netlink/diag.c static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb) nlskb 19 net/netlink/diag.c return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), nlskb 13 net/packet/diag.c static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb) nlskb 35 net/packet/diag.c return nla_put(nlskb, PACKET_DIAG_INFO, sizeof(pinfo), &pinfo); nlskb 38 net/packet/diag.c static int pdiag_put_mclist(const struct packet_sock *po, struct sk_buff *nlskb) nlskb 43 net/packet/diag.c mca = nla_nest_start_noflag(nlskb, PACKET_DIAG_MCLIST); nlskb 51 net/packet/diag.c dml = nla_reserve_nohdr(nlskb, sizeof(*dml)); nlskb 54 net/packet/diag.c nla_nest_cancel(nlskb, mca); nlskb 67 net/packet/diag.c nla_nest_end(nlskb, mca); nlskb 73 net/packet/diag.c struct sk_buff *nlskb) nlskb 95 net/packet/diag.c return nla_put(nlskb, nl_type, sizeof(pdr), &pdr); nlskb 113 net/packet/diag.c static int pdiag_put_fanout(struct packet_sock *po, struct sk_buff *nlskb) nlskb 122 net/packet/diag.c ret = nla_put_u32(nlskb, PACKET_DIAG_FANOUT, val); nlskb 14 net/unix/diag.c static int sk_diag_dump_name(struct sock *sk, struct sk_buff *nlskb) nlskb 22 net/unix/diag.c return nla_put(nlskb, UNIX_DIAG_NAME, addr->len - sizeof(short), nlskb 26 net/unix/diag.c static int sk_diag_dump_vfs(struct sock *sk, struct sk_buff *nlskb) nlskb 36 net/unix/diag.c return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); nlskb 42 net/unix/diag.c static int sk_diag_dump_peer(struct sock *sk, struct sk_buff *nlskb) nlskb 54 net/unix/diag.c return nla_put_u32(nlskb, UNIX_DIAG_PEER, ino); nlskb 60 net/unix/diag.c static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb) nlskb 70 net/unix/diag.c attr = nla_reserve(nlskb, UNIX_DIAG_ICONS, nlskb 101 net/unix/diag.c static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb) nlskb 113 net/unix/diag.c return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); nlskb 116 net/unix/diag.c static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb) nlskb 118 net/unix/diag.c uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk)); nlskb 119 net/unix/diag.c return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid); nlskb 17 net/xdp/xsk_diag.c static int xsk_diag_put_info(const struct xdp_sock *xs, struct sk_buff *nlskb) nlskb 23 net/xdp/xsk_diag.c return nla_put(nlskb, XDP_DIAG_INFO, sizeof(di), &di); nlskb 27 net/xdp/xsk_diag.c struct sk_buff *nlskb) nlskb 32 net/xdp/xsk_diag.c return nla_put(nlskb, nl_type, sizeof(dr), &dr); nlskb 36 net/xdp/xsk_diag.c struct sk_buff *nlskb) nlskb 41 net/xdp/xsk_diag.c err = xsk_diag_put_ring(xs->rx, XDP_DIAG_RX_RING, nlskb); nlskb 43 net/xdp/xsk_diag.c err = xsk_diag_put_ring(xs->tx, XDP_DIAG_TX_RING, nlskb); nlskb 47 net/xdp/xsk_diag.c static int xsk_diag_put_umem(const struct xdp_sock *xs, struct sk_buff *nlskb) nlskb 68 net/xdp/xsk_diag.c err = nla_put(nlskb, XDP_DIAG_UMEM, sizeof(du), &du); nlskb 71 net/xdp/xsk_diag.c err = xsk_diag_put_ring(umem->fq, XDP_DIAG_UMEM_FILL_RING, nlskb); nlskb 74 net/xdp/xsk_diag.c nlskb); nlskb 79 net/xdp/xsk_diag.c static int xsk_diag_fill(struct sock *sk, struct sk_buff *nlskb, nlskb 88 net/xdp/xsk_diag.c nlh = nlmsg_put(nlskb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*msg), nlskb 101 net/xdp/xsk_diag.c if ((req->xdiag_show & XDP_SHOW_INFO) && xsk_diag_put_info(xs, nlskb)) nlskb 105 net/xdp/xsk_diag.c nla_put_u32(nlskb, XDP_DIAG_UID, nlskb 110 net/xdp/xsk_diag.c xsk_diag_put_rings_cfg(xs, nlskb)) nlskb 114 net/xdp/xsk_diag.c xsk_diag_put_umem(xs, nlskb)) nlskb 118 net/xdp/xsk_diag.c sock_diag_put_meminfo(sk, nlskb, XDP_DIAG_MEMINFO)) nlskb 122 net/xdp/xsk_diag.c nlmsg_end(nlskb, nlh); nlskb 127 net/xdp/xsk_diag.c nlmsg_cancel(nlskb, nlh); nlskb 131 net/xdp/xsk_diag.c static int xsk_diag_dump(struct sk_buff *nlskb, struct netlink_callback *cb) nlskb 134 net/xdp/xsk_diag.c struct net *net = sock_net(nlskb->sk); nlskb 146 net/xdp/xsk_diag.c if (xsk_diag_fill(sk, nlskb, req, nlskb 158 net/xdp/xsk_diag.c return nlskb->len; nlskb 161 net/xdp/xsk_diag.c static int xsk_diag_handler_dump(struct sk_buff *nlskb, struct nlmsghdr *hdr) nlskb 165 net/xdp/xsk_diag.c struct net *net = sock_net(nlskb->sk); nlskb 173 net/xdp/xsk_diag.c return netlink_dump_start(net->diag_nlsk, nlskb, hdr, &c);