Home
last modified time | relevance | path

Searched refs:nlskb (Results 1 – 8 of 8) sorted by relevance

/net/xdp/
Dxsk_diag.c17 static int xsk_diag_put_info(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_info() argument
23 return nla_put(nlskb, XDP_DIAG_INFO, sizeof(di), &di); in xsk_diag_put_info()
27 struct sk_buff *nlskb) in xsk_diag_put_ring() argument
32 return nla_put(nlskb, nl_type, sizeof(dr), &dr); in xsk_diag_put_ring()
36 struct sk_buff *nlskb) in xsk_diag_put_rings_cfg() argument
41 err = xsk_diag_put_ring(xs->rx, XDP_DIAG_RX_RING, nlskb); in xsk_diag_put_rings_cfg()
43 err = xsk_diag_put_ring(xs->tx, XDP_DIAG_TX_RING, nlskb); in xsk_diag_put_rings_cfg()
47 static int xsk_diag_put_umem(const struct xdp_sock *xs, struct sk_buff *nlskb) in xsk_diag_put_umem() argument
69 err = nla_put(nlskb, XDP_DIAG_UMEM, sizeof(du), &du); in xsk_diag_put_umem()
72 XDP_DIAG_UMEM_FILL_RING, nlskb); in xsk_diag_put_umem()
[all …]
/net/netfilter/
Dnfnetlink_hook.c59 static int nfnl_hook_put_nft_chain_info(struct sk_buff *nlskb, in nfnl_hook_put_nft_chain_info() argument
64 struct net *net = sock_net(nlskb->sk); in nfnl_hook_put_nft_chain_info()
79 nest = nla_nest_start(nlskb, NFNLA_HOOK_CHAIN_INFO); in nfnl_hook_put_nft_chain_info()
83 ret = nla_put_be32(nlskb, NFNLA_HOOK_INFO_TYPE, in nfnl_hook_put_nft_chain_info()
88 nest2 = nla_nest_start(nlskb, NFNLA_HOOK_INFO_DESC); in nfnl_hook_put_nft_chain_info()
92 ret = nla_put_string(nlskb, NFNLA_CHAIN_TABLE, chain->table->name); in nfnl_hook_put_nft_chain_info()
96 ret = nla_put_string(nlskb, NFNLA_CHAIN_NAME, chain->name); in nfnl_hook_put_nft_chain_info()
100 ret = nla_put_u8(nlskb, NFNLA_CHAIN_FAMILY, chain->table->family); in nfnl_hook_put_nft_chain_info()
104 nla_nest_end(nlskb, nest2); in nfnl_hook_put_nft_chain_info()
105 nla_nest_end(nlskb, nest); in nfnl_hook_put_nft_chain_info()
[all …]
Dnf_tables_trace.c28 static int trace_fill_id(struct sk_buff *nlskb, struct sk_buff *skb) in trace_fill_id() argument
41 return nla_put_be32(nlskb, NFTA_TRACE_ID, id); in trace_fill_id()
44 static int trace_fill_header(struct sk_buff *nlskb, u16 type, in trace_fill_header() argument
53 nla = nla_reserve(nlskb, type, len); in trace_fill_header()
60 static int nf_trace_fill_ll_header(struct sk_buff *nlskb, in nf_trace_fill_ll_header() argument
79 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); in nf_trace_fill_ll_header()
82 static int nf_trace_fill_dev_info(struct sk_buff *nlskb, in nf_trace_fill_dev_info() argument
87 if (nla_put_be32(nlskb, NFTA_TRACE_IIF, in nf_trace_fill_dev_info()
91 if (nla_put_be16(nlskb, NFTA_TRACE_IIFTYPE, in nf_trace_fill_dev_info()
97 if (nla_put_be32(nlskb, NFTA_TRACE_OIF, in nf_trace_fill_dev_info()
[all …]
Dnfnetlink_queue.c263 nfqnl_put_packet_info(struct sk_buff *nlskb, struct sk_buff *packet, in nfqnl_put_packet_info() argument
276 return flags ? nla_put_be32(nlskb, NFQA_SKB_INFO, htonl(flags)) : 0; in nfqnl_put_packet_info()
/net/packet/
Ddiag.c13 static int pdiag_put_info(const struct packet_sock *po, struct sk_buff *nlskb) in pdiag_put_info() argument
35 return nla_put(nlskb, PACKET_DIAG_INFO, sizeof(pinfo), &pinfo); in pdiag_put_info()
38 static int pdiag_put_mclist(const struct packet_sock *po, struct sk_buff *nlskb) in pdiag_put_mclist() argument
43 mca = nla_nest_start_noflag(nlskb, PACKET_DIAG_MCLIST); in pdiag_put_mclist()
51 dml = nla_reserve_nohdr(nlskb, sizeof(*dml)); in pdiag_put_mclist()
54 nla_nest_cancel(nlskb, mca); in pdiag_put_mclist()
67 nla_nest_end(nlskb, mca); in pdiag_put_mclist()
73 struct sk_buff *nlskb) in pdiag_put_ring() argument
95 return nla_put(nlskb, nl_type, sizeof(pdr), &pdr); in pdiag_put_ring()
113 static int pdiag_put_fanout(struct packet_sock *po, struct sk_buff *nlskb) in pdiag_put_fanout() argument
[all …]
/net/unix/
Ddiag.c14 static int sk_diag_dump_name(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_name() argument
22 return nla_put(nlskb, UNIX_DIAG_NAME, addr->len - sizeof(short), in sk_diag_dump_name()
26 static int sk_diag_dump_vfs(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_vfs() argument
36 return nla_put(nlskb, UNIX_DIAG_VFS, sizeof(uv), &uv); in sk_diag_dump_vfs()
42 static int sk_diag_dump_peer(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_peer() argument
54 return nla_put_u32(nlskb, UNIX_DIAG_PEER, ino); in sk_diag_dump_peer()
60 static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_icons() argument
70 attr = nla_reserve(nlskb, UNIX_DIAG_ICONS, in sk_diag_dump_icons()
101 static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb) in sk_diag_show_rqlen() argument
113 return nla_put(nlskb, UNIX_DIAG_RQLEN, sizeof(rql), &rql); in sk_diag_show_rqlen()
[all …]
/net/netlink/
Ddiag.c12 static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb) in sk_diag_dump_groups() argument
19 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups()
/net/mptcp/
Dpm_netlink.c1805 static void mptcp_nl_mcast_send(struct net *net, struct sk_buff *nlskb, gfp_t gfp) in mptcp_nl_mcast_send() argument
1808 nlskb, 0, MPTCP_PM_EV_GRP_OFFSET, gfp); in mptcp_nl_mcast_send()