/net/netfilter/ |
D | nf_conntrack_ecache.c | 121 u32 portid, int report) in nf_conntrack_eventmask_report() argument 140 .portid = e->portid ? e->portid : portid, in nf_conntrack_eventmask_report() 144 unsigned long missed = e->portid ? 0 : e->missed; in nf_conntrack_eventmask_report() 158 if (e->portid == 0 && portid != 0) in nf_conntrack_eventmask_report() 159 e->portid = portid; in nf_conntrack_eventmask_report() 210 item.portid = 0; in nf_ct_deliver_cached_events() 232 u32 portid, int report) in nf_ct_expect_event_report() argument 251 .portid = portid, in nf_ct_expect_event_report()
|
D | nf_conntrack_netlink.c | 463 ctnetlink_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in ctnetlink_fill_info() argument 470 unsigned int flags = portid ? NLM_F_MULTI : 0, event; in ctnetlink_fill_info() 473 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info() 658 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event() 742 err = nfnetlink_send(skb, net, item->portid, group, item->report, in ctnetlink_conntrack_event() 873 ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid, in ctnetlink_dump_table() 1113 u32 portid, int report) in ctnetlink_flush_conntrack() argument 1124 portid, report); in ctnetlink_flush_conntrack() 1155 NETLINK_CB(skb).portid, in ctnetlink_del_conntrack() 1176 nf_ct_delete(ct, NETLINK_CB(skb).portid, nlmsg_report(nlh)); in ctnetlink_del_conntrack() [all …]
|
D | nfnetlink_cttimeout.c | 153 ctnl_timeout_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in ctnl_timeout_fill_info() argument 158 unsigned int flags = portid ? NLM_F_MULTI : 0; in ctnl_timeout_fill_info() 162 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnl_timeout_fill_info() 224 if (ctnl_timeout_fill_info(skb, NETLINK_CB(cb->skb).portid, in ctnl_timeout_dump() 270 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 278 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 426 cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid, in cttimeout_default_fill_info() argument 432 unsigned int flags = portid ? NLM_F_MULTI : 0; in cttimeout_default_fill_info() 435 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in cttimeout_default_fill_info() 504 ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid, in cttimeout_default_get() [all …]
|
D | nf_tables_api.c | 108 ctx->portid = NETLINK_CB(skb).portid; in nft_ctx_init() 392 u32 portid, u32 seq, int event, u32 flags, in nf_tables_fill_table_info() argument 399 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags); in nf_tables_fill_table_info() 435 err = nf_tables_fill_table_info(skb, ctx->net, ctx->portid, ctx->seq, in nf_tables_table_notify() 442 err = nfnetlink_send(skb, ctx->net, ctx->portid, NFNLGRP_NFTABLES, in nf_tables_table_notify() 446 nfnetlink_set_err(ctx->net, ctx->portid, NFNLGRP_NFTABLES, in nf_tables_table_notify() 478 NETLINK_CB(cb->skb).portid, in nf_tables_dump_tables() 527 err = nf_tables_fill_table_info(skb2, net, NETLINK_CB(skb).portid, in nf_tables_gettable() 533 return nlmsg_unicast(nlsk, skb2, NETLINK_CB(skb).portid); in nf_tables_gettable() 938 u32 portid, u32 seq, int event, u32 flags, in nf_tables_fill_chain_info() argument [all …]
|
D | nfnetlink.c | 130 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_send() argument 133 return nlmsg_notify(net->nfnl, skb, portid, group, echo, flags); in nfnetlink_send() 137 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) in nfnetlink_set_err() argument 139 return netlink_set_err(net->nfnl, portid, group, error); in nfnetlink_set_err() 143 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_unicast() argument 146 return netlink_unicast(net->nfnl, skb, portid, flags); in nfnetlink_unicast()
|
D | nfnetlink_acct.c | 132 nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in nfnl_acct_fill_info() argument 137 unsigned int flags = portid ? NLM_F_MULTI : 0; in nfnl_acct_fill_info() 142 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_acct_fill_info() 214 if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid, in nfnl_acct_dump() 305 ret = nfnl_acct_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_acct_get() 313 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid, in nfnl_acct_get()
|
/net/netlink/ |
D | af_netlink.c | 176 NETLINK_CB(new).portid = NETLINK_CB(skb).portid; in netlink_to_full_skb() 455 u32 portid; member 460 (offsetof(struct netlink_compare_arg, portid) + sizeof(u32)) 468 return nlk->portid != x->portid || in netlink_compare() 473 struct net *net, u32 portid) in netlink_compare_arg_init() argument 477 arg->portid = portid; in netlink_compare_arg_init() 480 static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid, in __netlink_lookup() argument 485 netlink_compare_arg_init(&arg, net, portid); in __netlink_lookup() 494 netlink_compare_arg_init(&arg, sock_net(sk), nlk_sk(sk)->portid); in __netlink_insert() 500 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid) in netlink_lookup() argument [all …]
|
D | genetlink.c | 478 void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, in genlmsg_put() argument 484 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + in genlmsg_put() 622 info.snd_portid = NETLINK_CB(skb).portid; in genl_family_rcv_msg() 687 static int ctrl_fill_info(struct genl_family *family, u32 portid, u32 seq, in ctrl_fill_info() argument 692 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_info() 776 int grp_id, u32 portid, u32 seq, u32 flags, in ctrl_fill_mcgrp_info() argument 783 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_mcgrp_info() 831 if (ctrl_fill_info(rt, NETLINK_CB(cb->skb).portid, in ctrl_dumpfamily() 848 u32 portid, int seq, u8 cmd) in ctrl_build_family_msg() argument 857 err = ctrl_fill_info(family, portid, seq, 0, skb, cmd); in ctrl_build_family_msg() [all …]
|
D | diag.c | 24 u32 portid, u32 seq, u32 flags, int sk_ino) in sk_diag_fill() argument 30 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill() 42 rep->ndiag_portid = nlk->portid; in sk_diag_fill() 115 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump() 145 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump()
|
/net/batman-adv/ |
D | bat_v.c | 228 batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_neigh() argument 239 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_neigh_dump_neigh() 276 batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_hardif() argument 289 if (batadv_v_neigh_dump_neigh(msg, portid, seq, hardif_neigh)) { in batadv_v_neigh_dump_hardif() 316 int portid = NETLINK_CB(cb->skb).portid; in batadv_v_neigh_dump() local 321 if (batadv_v_neigh_dump_hardif(msg, portid, in batadv_v_neigh_dump() 335 if (batadv_v_neigh_dump_hardif(msg, portid, in batadv_v_neigh_dump() 434 batadv_v_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_orig_dump_subentry() argument 460 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_orig_dump_subentry() 501 batadv_v_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_orig_dump_entry() argument [all …]
|
D | bat_algo.c | 160 static int batadv_algo_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_algo_dump_entry() argument 165 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_algo_dump_entry() 191 int portid = NETLINK_CB(cb->skb).portid; in batadv_algo_dump() local 200 if (batadv_algo_dump_entry(msg, portid, cb->nlh->nlmsg_seq, in batadv_algo_dump()
|
D | bat_iv_ogm.c | 1999 batadv_iv_ogm_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_subentry() argument 2019 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_orig_dump_subentry() 2061 batadv_iv_ogm_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_entry() argument 2089 if (batadv_iv_ogm_orig_dump_subentry(msg, portid, seq, in batadv_iv_ogm_orig_dump_entry() 2123 batadv_iv_ogm_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_bucket() argument 2136 if (batadv_iv_ogm_orig_dump_entry(msg, portid, seq, bat_priv, in batadv_iv_ogm_orig_dump_bucket() 2168 int portid = NETLINK_CB(cb->skb).portid; in batadv_iv_ogm_orig_dump() local 2173 if (batadv_iv_ogm_orig_dump_bucket(msg, portid, in batadv_iv_ogm_orig_dump() 2295 batadv_iv_ogm_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_neigh_dump_neigh() argument 2303 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_neigh_dump_neigh() [all …]
|
/net/sched/ |
D | act_api.c | 694 u32 portid, u32 seq, u16 flags, int event, int bind, in tca_get_fill() argument 702 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags); in tca_get_fill() 728 act_get_notify(struct net *net, u32 portid, struct nlmsghdr *n, in act_get_notify() argument 736 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in act_get_notify() 742 return rtnl_unicast(skb, net, portid); in act_get_notify() 746 struct nlmsghdr *n, u32 portid) in tcf_action_get_1() argument 782 struct nlmsghdr *n, u32 portid) in tca_action_flush() argument 813 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, in tca_action_flush() 835 err = rtnetlink_send(skb, net, portid, RTNLGRP_TC, in tca_action_flush() 851 u32 portid) in tcf_del_notify() argument [all …]
|
D | sch_api.c | 1342 u32 portid, u32 seq, u16 flags, int event) in tc_fill_qdisc() argument 1354 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc() 1415 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; in qdisc_notify() local 1422 if (tc_fill_qdisc(skb, old, clid, portid, n->nlmsg_seq, in qdisc_notify() 1427 if (tc_fill_qdisc(skb, new, clid, portid, n->nlmsg_seq, in qdisc_notify() 1433 return rtnetlink_send(skb, net, portid, RTNLGRP_TC, in qdisc_notify() 1457 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root() 1479 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root() 1554 u32 portid; in tc_ctl_tclass() local 1586 portid = tcm->tcm_parent; in tc_ctl_tclass() [all …]
|
D | cls_api.c | 390 struct tcf_proto *tp, unsigned long fh, u32 portid, in tcf_fill_node() argument 397 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node() 429 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; in tfilter_notify() local 435 if (tcf_fill_node(net, skb, tp, fh, portid, n->nlmsg_seq, in tfilter_notify() 442 return netlink_unicast(net->rtnl, skb, portid, MSG_DONTWAIT); in tfilter_notify() 444 return rtnetlink_send(skb, net, portid, RTNLGRP_TC, in tfilter_notify() 460 return tcf_fill_node(net, a->skb, tp, n, NETLINK_CB(a->cb->skb).portid, in tcf_node_dump() 522 NETLINK_CB(cb->skb).portid, in tc_dump_tfilter()
|
/net/tipc/ |
D | socket.c | 89 u32 portid; member 121 static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid); 354 msg_set_origport(msg, tsk->portid); in tipc_sk_create() 434 tipc_node_remove_conn(net, dnode, tsk->portid); in tipc_release() 447 tsk->portid, TIPC_ERR_NO_PORT); in tipc_release() 449 tipc_node_xmit_skb(net, skb, dnode, tsk->portid); in tipc_release() 450 tipc_node_remove_conn(net, dnode, tsk->portid); in tipc_release() 551 addr->addr.id.ref = tsk->portid; in tipc_getname() 709 u32 portid; in tipc_sk_mcast_rcv() local 730 portid = tipc_plist_pop(&dports); in tipc_sk_mcast_rcv() [all …]
|
D | net.c | 153 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net() 189 msg.portid = NETLINK_CB(cb->skb).portid; in tipc_nl_net_dump()
|
/net/core/ |
D | devlink.c | 372 enum devlink_command cmd, u32 portid, in devlink_nl_fill() argument 377 hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); in devlink_nl_fill() 415 enum devlink_command cmd, u32 portid, in devlink_nl_port_fill() argument 420 hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); in devlink_nl_port_fill() 528 NETLINK_CB(cb->skb).portid, in devlink_nl_cmd_get_dumpit() 585 NETLINK_CB(cb->skb).portid, in devlink_nl_cmd_port_get_dumpit() 687 enum devlink_command cmd, u32 portid, in devlink_nl_sb_fill() argument 692 hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); in devlink_nl_sb_fill() 766 NETLINK_CB(cb->skb).portid, in devlink_nl_cmd_sb_get_dumpit() 784 u32 portid, u32 seq, int flags) in devlink_nl_sb_pool_fill() argument [all …]
|
/net/unix/ |
D | diag.c | 113 u32 portid, u32 seq, u32 flags, int sk_ino) in sk_diag_fill() argument 118 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill() 167 u32 portid, u32 seq, u32 flags) in sk_diag_dump() argument 178 return sk_diag_fill(sk, skb, req, portid, seq, flags, sk_ino); in sk_diag_dump() 207 NETLINK_CB(cb->skb).portid, in unix_diag_dump() 274 err = sk_diag_fill(sk, rep, req, NETLINK_CB(in_skb).portid, in unix_diag_get_exact() 284 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
|
/net/phonet/ |
D | pn_netlink.c | 36 u32 portid, u32 seq, int event); 107 u32 portid, u32 seq, int event) in fill_addr() argument 112 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr() 155 NETLINK_CB(cb->skb).portid, in getaddr_dumpit() 172 u32 portid, u32 seq, int event) in fill_route() argument 177 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route() 284 if (fill_route(skb, dev, addr << 2, NETLINK_CB(cb->skb).portid, in route_dumpit()
|
/net/ipv4/ |
D | inet_diag.c | 156 u32 portid, u32 seq, u16 nlmsg_flags, in inet_sk_diag_fill() argument 171 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill() 282 u32 portid, u32 seq, u16 nlmsg_flags, in inet_csk_diag_fill() argument 287 portid, seq, nlmsg_flags, unlh, net_admin); in inet_csk_diag_fill() 292 u32 portid, u32 seq, u16 nlmsg_flags, in inet_twsk_diag_fill() argument 300 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill() 328 u32 portid, u32 seq, u16 nlmsg_flags, in inet_req_diag_fill() argument 336 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_req_diag_fill() 368 u32 portid, u32 seq, u16 nlmsg_flags, in sk_diag_fill() argument 372 return inet_twsk_diag_fill(sk, skb, portid, seq, in sk_diag_fill() [all …]
|
D | devinet.c | 327 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa() argument 364 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa() 402 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa() 415 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa() 441 u32 portid) in __inet_insert_ifa() argument 491 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa() 613 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr() 876 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr() 888 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr() 1530 u32 portid, u32 seq, int event, unsigned int flags) in inet_fill_ifaddr() argument [all …]
|
/net/nfc/ |
D | netlink.c | 80 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target() 593 u32 portid, u32 seq, in nfc_genl_send_device() argument 599 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_device() 649 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_devices() 992 u32 portid, u32 seq) in nfc_genl_send_params() argument 996 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0, in nfc_genl_send_params() 1324 u32 portid, u32 seq, in nfc_genl_send_se() argument 1332 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_se() 1382 rc = nfc_genl_send_se(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_ses() 1586 static inline void *nfc_hdr_put(struct sk_buff *skb, u32 portid, u32 seq, in nfc_hdr_put() argument [all …]
|
/net/wireless/ |
D | reg.h | 40 int regulatory_hint_indoor(bool is_indoor, u32 portid); 46 void regulatory_netlink_notify(u32 portid);
|
/net/sctp/ |
D | sctp_diag.c | 111 int portid, u32 seq, u16 nlmsg_flags, in inet_sctp_diag_fill() argument 123 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sctp_diag_fill() 264 NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one() 274 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one() 307 NETLINK_CB(cb->skb).portid, in sctp_sock_dump() 319 NETLINK_CB(cb->skb).portid, in sctp_sock_dump() 399 NETLINK_CB(cb->skb).portid, in sctp_ep_dump()
|