/net/sctp/ |
D | diag.c | 220 struct netlink_callback *cb; member 291 struct netlink_callback *cb = commp->cb; in sctp_sock_dump() local 300 if (cb->args[4] < cb->args[1]) in sctp_sock_dump() 310 if (!cb->args[3] && in sctp_sock_dump() 312 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() 313 NETLINK_CB(cb->skb).portid, in sctp_sock_dump() 314 cb->nlh->nlmsg_seq, in sctp_sock_dump() 315 NLM_F_MULTI, cb->nlh, in sctp_sock_dump() 320 cb->args[3] = 1; in sctp_sock_dump() 323 sk_user_ns(NETLINK_CB(cb->skb).sk), in sctp_sock_dump() [all …]
|
/net/strparser/ |
D | strparser.c | 32 return (struct _strp_msg *)((void *)skb->cb + in _strp_msg() 70 strp->cb.abort_parser(strp, err); in strp_parser_err() 213 len = (*strp->cb.parse_msg)(strp, head); in __strp_recv() 301 strp->cb.rcv_msg(strp, head); in __strp_recv() 360 desc.error = strp->cb.read_sock_done(strp, desc.error); in strp_read_sock() 398 strp->cb.lock(strp); in do_strp_work() 410 strp->cb.unlock(strp); in do_strp_work() 425 strp->cb.lock(strp); in strp_msg_timeout() 426 strp->cb.abort_parser(strp, -ETIMEDOUT); in strp_msg_timeout() 427 strp->cb.unlock(strp); in strp_msg_timeout() [all …]
|
/net/netlink/ |
D | diag.c | 89 static int __netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in __netlink_diag_dump() argument 92 struct rhashtable_iter *hti = (void *)cb->args[2]; in __netlink_diag_dump() 102 req = nlmsg_data(cb->nlh); in __netlink_diag_dump() 114 cb->args[2] = (long)hti; in __netlink_diag_dump() 138 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump() 139 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 168 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump() 169 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 180 cb->args[0] = num; in __netlink_diag_dump() 185 static int netlink_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in netlink_diag_dump() argument [all …]
|
D | genetlink.c | 562 static int genl_start(struct netlink_callback *cb) in genl_start() argument 564 struct genl_start_context *ctx = cb->data; in genl_start() 592 cb->data = info; in genl_start() 596 rc = ops->start(cb); in genl_start() 604 cb->data = NULL; in genl_start() 609 static int genl_lock_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in genl_lock_dumpit() argument 611 const struct genl_ops *ops = &genl_dumpit_info(cb)->op; in genl_lock_dumpit() 615 rc = ops->dumpit(skb, cb); in genl_lock_dumpit() 620 static int genl_lock_done(struct netlink_callback *cb) in genl_lock_done() argument 622 const struct genl_dumpit_info *info = genl_dumpit_info(cb); in genl_lock_done() [all …]
|
/net/ipv4/ |
D | udp_diag.c | 17 struct netlink_callback *cb, in sk_diag_dump() argument 24 return inet_sk_diag_fill(sk, NULL, skb, cb, req, NLM_F_MULTI, in sk_diag_dump() 29 struct netlink_callback *cb, in udp_dump_one() argument 32 struct sk_buff *in_skb = cb->skb; in udp_dump_one() 73 err = inet_sk_diag_fill(sk, NULL, rep, cb, req, 0, in udp_dump_one() 90 struct netlink_callback *cb, in udp_dump() argument 93 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in udp_dump() 99 cb_data = cb->data; in udp_dump() 101 s_slot = cb->args[0]; in udp_dump() 102 num = s_num = cb->args[1]; in udp_dump() [all …]
|
D | inet_diag.c | 235 struct sk_buff *skb, struct netlink_callback *cb, in inet_sk_diag_fill() argument 248 cb_data = cb->data; in inet_sk_diag_fill() 252 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in inet_sk_diag_fill() 253 cb->nlh->nlmsg_type, sizeof(*r), nlmsg_flags); in inet_sk_diag_fill() 267 sk_user_ns(NETLINK_CB(cb->skb).sk), in inet_sk_diag_fill() 382 prev_min_dump_alloc = cb->min_dump_alloc; in inet_sk_diag_fill() 384 cb->min_dump_alloc = min_t(u32, total_nla_size, in inet_sk_diag_fill() 390 if (cb->min_dump_alloc > prev_min_dump_alloc) in inet_sk_diag_fill() 416 struct netlink_callback *cb, in inet_twsk_diag_fill() argument 424 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, in inet_twsk_diag_fill() [all …]
|
D | raw_diag.c | 90 static int raw_diag_dump_one(struct netlink_callback *cb, in raw_diag_dump_one() argument 93 struct sk_buff *in_skb = cb->skb; in raw_diag_dump_one() 113 err = inet_sk_diag_fill(sk, NULL, rep, cb, r, 0, in raw_diag_dump_one() 128 struct netlink_callback *cb, in sk_diag_dump() argument 135 return inet_sk_diag_fill(sk, NULL, skb, cb, r, NLM_F_MULTI, net_admin); in sk_diag_dump() 138 static void raw_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in raw_diag_dump() argument 141 bool net_admin = netlink_net_capable(cb->skb, CAP_NET_ADMIN); in raw_diag_dump() 152 cb_data = cb->data; in raw_diag_dump() 154 s_slot = cb->args[0]; in raw_diag_dump() 155 num = s_num = cb->args[1]; in raw_diag_dump() [all …]
|
/net/core/ |
D | flow_offload.c | 205 struct flow_block_cb *flow_block_cb_alloc(flow_setup_cb_t *cb, in flow_block_cb_alloc() argument 215 block_cb->cb = cb; in flow_block_cb_alloc() 234 flow_setup_cb_t *cb, void *cb_ident) in flow_block_cb_lookup() argument 239 if (block_cb->cb == cb && in flow_block_cb_lookup() 266 bool flow_block_cb_is_busy(flow_setup_cb_t *cb, void *cb_ident, in flow_block_cb_is_busy() argument 272 if (block_cb->cb == cb && in flow_block_cb_is_busy() 283 flow_setup_cb_t *cb, in flow_block_cb_setup_simple() argument 297 if (flow_block_cb_is_busy(cb, cb_ident, driver_block_list)) in flow_block_cb_setup_simple() 300 block_cb = flow_block_cb_alloc(cb, cb_ident, cb_priv, NULL); in flow_block_cb_setup_simple() 308 block_cb = flow_block_cb_lookup(f->block, cb, cb_ident); in flow_block_cb_setup_simple() [all …]
|
/net/qrtr/ |
D | af_qrtr.c | 440 struct qrtr_cb *cb; in qrtr_endpoint_post() local 452 cb = (struct qrtr_cb *)skb->cb; in qrtr_endpoint_post() 464 cb->type = le32_to_cpu(v1->type); in qrtr_endpoint_post() 465 cb->src_node = le32_to_cpu(v1->src_node_id); in qrtr_endpoint_post() 466 cb->src_port = le32_to_cpu(v1->src_port_id); in qrtr_endpoint_post() 467 cb->confirm_rx = !!v1->confirm_rx; in qrtr_endpoint_post() 468 cb->dst_node = le32_to_cpu(v1->dst_node_id); in qrtr_endpoint_post() 469 cb->dst_port = le32_to_cpu(v1->dst_port_id); in qrtr_endpoint_post() 479 cb->type = v2->type; in qrtr_endpoint_post() 480 cb->confirm_rx = !!(v2->flags & QRTR_FLAGS_CONFIRM_RX); in qrtr_endpoint_post() [all …]
|
/net/vmw_vsock/ |
D | diag.c | 48 static int vsock_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in vsock_diag_dump() argument 58 req = nlmsg_data(cb->nlh); in vsock_diag_dump() 62 table = cb->args[0]; in vsock_diag_dump() 63 bucket = cb->args[1]; in vsock_diag_dump() 64 i = last_i = cb->args[2]; in vsock_diag_dump() 86 NETLINK_CB(cb->skb).portid, in vsock_diag_dump() 87 cb->nlh->nlmsg_seq, in vsock_diag_dump() 120 NETLINK_CB(cb->skb).portid, in vsock_diag_dump() 121 cb->nlh->nlmsg_seq, in vsock_diag_dump() 134 cb->args[0] = table; in vsock_diag_dump() [all …]
|
/net/netfilter/ |
D | nfnetlink_hook.c | 239 struct netlink_callback *cb) in nfnl_hook_dump() argument 241 struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nfnl_hook_dump() 242 struct nfnl_dump_hook_data *ctx = cb->data; in nfnl_hook_dump() 247 unsigned int i = cb->args[0]; in nfnl_hook_dump() 256 cb->seq++; in nfnl_hook_dump() 261 cb->seq++; in nfnl_hook_dump() 267 cb->nlh->nlmsg_seq); in nfnl_hook_dump() 273 nl_dump_check_consistent(cb, nlmsg_hdr(nlskb)); in nfnl_hook_dump() 275 cb->args[0] = i; in nfnl_hook_dump() 279 static int nfnl_hook_dump_start(struct netlink_callback *cb) in nfnl_hook_dump_start() argument [all …]
|
D | nfnetlink_acct.c | 194 nfnl_acct_dump(struct sk_buff *skb, struct netlink_callback *cb) in nfnl_acct_dump() argument 199 const struct nfacct_filter *filter = cb->data; in nfnl_acct_dump() 201 if (cb->args[2]) in nfnl_acct_dump() 204 last = (struct nf_acct *)cb->args[1]; in nfnl_acct_dump() 205 if (cb->args[1]) in nfnl_acct_dump() 206 cb->args[1] = 0; in nfnl_acct_dump() 220 if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid, in nfnl_acct_dump() 221 cb->nlh->nlmsg_seq, in nfnl_acct_dump() 222 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_acct_dump() 224 cb->args[1] = (unsigned long)cur; in nfnl_acct_dump() [all …]
|
D | nf_conntrack_netlink.c | 852 static int ctnetlink_done(struct netlink_callback *cb) in ctnetlink_done() argument 854 if (cb->args[1]) in ctnetlink_done() 855 nf_ct_put((struct nf_conn *)cb->args[1]); in ctnetlink_done() 856 kfree(cb->data); in ctnetlink_done() 1037 static int ctnetlink_start(struct netlink_callback *cb) in ctnetlink_start() argument 1039 const struct nlattr * const *cda = cb->data; in ctnetlink_start() 1041 struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in ctnetlink_start() 1050 cb->data = filter; in ctnetlink_start() 1171 ctnetlink_dump_table(struct sk_buff *skb, struct netlink_callback *cb) in ctnetlink_dump_table() argument 1173 unsigned int flags = cb->data ? NLM_F_DUMP_FILTERED : 0; in ctnetlink_dump_table() [all …]
|
/net/mptcp/ |
D | mptcp_diag.c | 17 struct netlink_callback *cb, in sk_diag_dump() argument 24 return inet_sk_diag_fill(sk, inet_csk(sk), skb, cb, req, NLM_F_MULTI, in sk_diag_dump() 28 static int mptcp_diag_dump_one(struct netlink_callback *cb, in mptcp_diag_dump_one() argument 31 struct sk_buff *in_skb = cb->skb; in mptcp_diag_dump_one() 53 err = inet_sk_diag_fill(sk, inet_csk(sk), rep, cb, req, 0, in mptcp_diag_dump_one() 76 static void mptcp_diag_dump_listeners(struct sk_buff *skb, struct netlink_callback *cb, in mptcp_diag_dump_listeners() argument 80 struct inet_diag_dump_data *cb_data = cb->data; in mptcp_diag_dump_listeners() 81 struct mptcp_diag_ctx *diag_ctx = (void *)cb->ctx; in mptcp_diag_dump_listeners() 122 ret = sk_diag_dump(sk, skb, cb, r, bc, net_admin); in mptcp_diag_dump_listeners() 149 static void mptcp_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, in mptcp_diag_dump() argument [all …]
|
/net/batman-adv/ |
D | bat_v.c | 212 batadv_v_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb, in batadv_v_neigh_dump() argument 218 int i_hardif_s = cb->args[0]; in batadv_v_neigh_dump() 219 int idx = cb->args[1]; in batadv_v_neigh_dump() 220 int portid = NETLINK_CB(cb->skb).portid; in batadv_v_neigh_dump() 226 cb->nlh->nlmsg_seq, in batadv_v_neigh_dump() 240 cb->nlh->nlmsg_seq, in batadv_v_neigh_dump() 250 cb->args[0] = i_hardif; in batadv_v_neigh_dump() 251 cb->args[1] = idx; in batadv_v_neigh_dump() 423 batadv_v_orig_dump(struct sk_buff *msg, struct netlink_callback *cb, in batadv_v_orig_dump() argument 429 int bucket = cb->args[0]; in batadv_v_orig_dump() [all …]
|
/net/tipc/ |
D | socket.h | 62 int tipc_nl_sk_dump(struct sk_buff *skb, struct netlink_callback *cb); 63 int tipc_nl_publ_dump(struct sk_buff *skb, struct netlink_callback *cb); 64 int tipc_sk_fill_sock_diag(struct sk_buff *skb, struct netlink_callback *cb, 67 int tipc_nl_sk_walk(struct sk_buff *skb, struct netlink_callback *cb, 69 struct netlink_callback *cb, 71 int tipc_dump_start(struct netlink_callback *cb); 72 int __tipc_dump_start(struct netlink_callback *cb, struct net *net); 73 int tipc_dump_done(struct netlink_callback *cb);
|
D | diag.c | 50 struct netlink_callback *cb, in __tipc_add_sock_diag() argument 53 struct tipc_sock_diag_req *req = nlmsg_data(cb->nlh); in __tipc_add_sock_diag() 57 nlh = nlmsg_put_answer(skb, cb, SOCK_DIAG_BY_FAMILY, 0, in __tipc_add_sock_diag() 62 err = tipc_sk_fill_sock_diag(skb, cb, tsk, req->tidiag_states, in __tipc_add_sock_diag() 71 static int tipc_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in tipc_diag_dump() argument 73 return tipc_nl_sk_walk(skb, cb, __tipc_add_sock_diag); in tipc_diag_dump()
|
/net/nfc/ |
D | netlink.c | 62 struct netlink_callback *cb, int flags) in nfc_genl_send_target() argument 66 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target() 71 genl_dump_check_consistent(cb, hdr); in nfc_genl_send_target() 107 static struct nfc_dev *__get_device_from_cb(struct netlink_callback *cb) in __get_device_from_cb() argument 109 const struct genl_dumpit_info *info = genl_dumpit_info(cb); in __get_device_from_cb() 126 struct netlink_callback *cb) in nfc_genl_dump_targets() argument 128 int i = cb->args[0]; in nfc_genl_dump_targets() 129 struct nfc_dev *dev = (struct nfc_dev *) cb->args[1]; in nfc_genl_dump_targets() 133 dev = __get_device_from_cb(cb); in nfc_genl_dump_targets() 137 cb->args[1] = (long) dev; in nfc_genl_dump_targets() [all …]
|
/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 129 static void br_skb_cb_save(struct sk_buff *skb, struct br_input_skb_cb *cb, in br_skb_cb_save() argument 132 memcpy(cb, skb->cb, sizeof(*cb)); in br_skb_cb_save() 133 memset(skb->cb, 0, inet_skb_parm_size); in br_skb_cb_save() 137 const struct br_input_skb_cb *cb, in br_skb_cb_restore() argument 140 memcpy(skb->cb, cb, sizeof(*cb)); in br_skb_cb_restore() 149 struct br_input_skb_cb cb; in nf_ct_br_defrag4() local 160 br_skb_cb_save(skb, &cb, sizeof(struct inet_skb_parm)); in nf_ct_br_defrag4() 166 br_skb_cb_restore(skb, &cb, IPCB(skb)->frag_max_size); in nf_ct_br_defrag4() 180 struct br_input_skb_cb cb; in nf_ct_br_defrag6() local 188 br_skb_cb_save(skb, &cb, sizeof(struct inet6_skb_parm)); in nf_ct_br_defrag6() [all …]
|
/net/smc/ |
D | smc_diag.c | 29 static struct smc_diag_dump_ctx *smc_dump_context(struct netlink_callback *cb) in smc_dump_context() argument 31 return (struct smc_diag_dump_ctx *)cb->ctx; in smc_dump_context() 72 struct netlink_callback *cb, in __smc_diag_dump() argument 82 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __smc_diag_dump() 83 cb->nlh->nlmsg_type, sizeof(*r), NLM_F_MULTI); in __smc_diag_dump() 96 user_ns = sk_user_ns(NETLINK_CB(cb->skb).sk); in __smc_diag_dump() 192 struct netlink_callback *cb, int p_type) in smc_diag_dump_proto() argument 194 struct smc_diag_dump_ctx *cb_ctx = smc_dump_context(cb); in smc_diag_dump_proto() 212 rc = __smc_diag_dump(sk, skb, cb, nlmsg_data(cb->nlh), bc); in smc_diag_dump_proto() 225 static int smc_diag_dump(struct sk_buff *skb, struct netlink_callback *cb) in smc_diag_dump() argument [all …]
|
/net/phonet/ |
D | pn_netlink.c | 121 static int getaddr_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in getaddr_dumpit() argument 125 int dev_idx = 0, dev_start_idx = cb->args[0]; in getaddr_dumpit() 126 int addr_idx = 0, addr_start_idx = cb->args[1]; in getaddr_dumpit() 144 NETLINK_CB(cb->skb).portid, in getaddr_dumpit() 145 cb->nlh->nlmsg_seq, RTM_NEWADDR) < 0) in getaddr_dumpit() 152 cb->args[0] = dev_idx; in getaddr_dumpit() 153 cb->args[1] = addr_idx; in getaddr_dumpit() 263 static int route_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in route_dumpit() argument 269 for (addr = cb->args[0]; addr < 64; addr++) { in route_dumpit() 275 if (fill_route(skb, dev, addr << 2, NETLINK_CB(cb->skb).portid, in route_dumpit() [all …]
|
/net/ethtool/ |
D | tunnels.c | 217 int ethnl_tunnel_info_start(struct netlink_callback *cb) in ethnl_tunnel_info_start() argument 219 const struct genl_dumpit_info *info = genl_dumpit_info(cb); in ethnl_tunnel_info_start() 220 struct ethnl_tunnel_info_dump_ctx *ctx = (void *)cb->ctx; in ethnl_tunnel_info_start() 224 BUILD_BUG_ON(sizeof(*ctx) > sizeof(cb->ctx)); in ethnl_tunnel_info_start() 230 sock_net(cb->skb->sk), cb->extack, in ethnl_tunnel_info_start() 240 int ethnl_tunnel_info_dumpit(struct sk_buff *skb, struct netlink_callback *cb) in ethnl_tunnel_info_dumpit() argument 242 struct ethnl_tunnel_info_dump_ctx *ctx = (void *)cb->ctx; in ethnl_tunnel_info_dumpit() 250 cb->seq = net->dev_base_seq; in ethnl_tunnel_info_dumpit() 261 ehdr = ethnl_dump_put(skb, cb, in ethnl_tunnel_info_dumpit() 293 nl_dump_check_consistent(cb, nlmsg_hdr(skb)); in ethnl_tunnel_info_dumpit()
|
D | netlink.c | 226 void *ethnl_dump_put(struct sk_buff *skb, struct netlink_callback *cb, u8 cmd) in ethnl_dump_put() argument 228 return genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ethnl_dump_put() 288 static struct ethnl_dump_ctx *ethnl_dump_context(struct netlink_callback *cb) in ethnl_dump_context() argument 290 return (struct ethnl_dump_ctx *)cb->ctx; in ethnl_dump_context() 422 struct netlink_callback *cb) in ethnl_default_dump_one() argument 427 ehdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ethnl_default_dump_one() 461 struct netlink_callback *cb) in ethnl_default_dumpit() argument 463 struct ethnl_dump_ctx *ctx = ethnl_dump_context(cb); in ethnl_default_dumpit() 479 cb->seq = seq; in ethnl_default_dumpit() 487 ret = ethnl_default_dump_one(skb, dev, ctx, cb); in ethnl_default_dumpit() [all …]
|
/net/ipv6/ |
D | seg6.c | 334 static int seg6_genl_dumphmac_start(struct netlink_callback *cb) in seg6_genl_dumphmac_start() argument 336 struct net *net = sock_net(cb->skb->sk); in seg6_genl_dumphmac_start() 341 iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac_start() 348 cb->args[0] = (long)iter; in seg6_genl_dumphmac_start() 356 static int seg6_genl_dumphmac_done(struct netlink_callback *cb) in seg6_genl_dumphmac_done() argument 358 struct rhashtable_iter *iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac_done() 367 static int seg6_genl_dumphmac(struct sk_buff *skb, struct netlink_callback *cb) in seg6_genl_dumphmac() argument 369 struct rhashtable_iter *iter = (struct rhashtable_iter *)cb->args[0]; in seg6_genl_dumphmac() 388 NETLINK_CB(cb->skb).portid, in seg6_genl_dumphmac() 389 cb->nlh->nlmsg_seq, in seg6_genl_dumphmac() [all …]
|
/net/ieee802154/ |
D | ieee802154.h | 38 int ieee802154_dump_phy(struct sk_buff *skb, struct netlink_callback *cb); 53 int ieee802154_dump_iface(struct sk_buff *skb, struct netlink_callback *cb); 61 struct netlink_callback *cb); 65 struct netlink_callback *cb); 69 struct netlink_callback *cb); 73 struct netlink_callback *cb);
|