Home
last modified time | relevance | path

Searched refs:portid (Results 1 – 25 of 105) sorted by relevance

12345

/net/netfilter/
Dnf_conntrack_ecache.c121 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()
Dnfnetlink_cttimeout.c159 ctnl_timeout_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in ctnl_timeout_fill_info() argument
163 unsigned int flags = portid ? NLM_F_MULTI : 0; in ctnl_timeout_fill_info()
169 nlh = nfnl_msg_put(skb, portid, seq, event, flags, AF_UNSPEC, in ctnl_timeout_fill_info()
222 if (ctnl_timeout_fill_info(skb, NETLINK_CB(cb->skb).portid, in ctnl_timeout_dump()
269 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
277 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
374 cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid, in cttimeout_default_fill_info() argument
380 unsigned int flags = portid ? NLM_F_MULTI : 0; in cttimeout_default_fill_info()
385 nlh = nfnl_msg_put(skb, portid, seq, event, flags, AF_UNSPEC, in cttimeout_default_fill_info()
483 ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid, in cttimeout_default_get()
[all …]
Dnf_conntrack_netlink.c513 ctnetlink_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in ctnetlink_fill_info() argument
519 unsigned int flags = portid ? NLM_F_MULTI : 0, event; in ctnetlink_fill_info()
522 nlh = nfnl_msg_put(skb, portid, seq, event, flags, nf_ct_l3num(ct), in ctnetlink_fill_info()
712 nlh = nfnl_msg_put(skb, item->portid, 0, type, flags, nf_ct_l3num(ct), in ctnetlink_conntrack_event()
793 err = nfnetlink_send(skb, net, item->portid, group, item->report, in ctnetlink_conntrack_event()
951 ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid, in ctnetlink_dump_table()
1227 u32 portid, int report, u8 family) in ctnetlink_flush_conntrack() argument
1238 portid, report); in ctnetlink_flush_conntrack()
1271 NETLINK_CB(skb).portid, in ctnetlink_del_conntrack()
1293 nf_ct_delete(ct, NETLINK_CB(skb).portid, nlmsg_report(nlh)); in ctnetlink_del_conntrack()
[all …]
Dnfnetlink_acct.c131 nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in nfnl_acct_fill_info() argument
135 unsigned int flags = portid ? NLM_F_MULTI : 0; in nfnl_acct_fill_info()
140 nlh = nfnl_msg_put(skb, portid, seq, event, flags, AF_UNSPEC, in nfnl_acct_fill_info()
208 if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid, in nfnl_acct_dump()
298 ret = nfnl_acct_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_acct_get()
306 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid, in nfnl_acct_get()
/net/netlink/
Daf_netlink.c166 NETLINK_CB(new).portid = NETLINK_CB(skb).portid; in netlink_to_full_skb()
476 u32 portid; member
481 (offsetof(struct netlink_compare_arg, portid) + sizeof(u32))
489 return nlk->portid != x->portid || in netlink_compare()
494 struct net *net, u32 portid) in netlink_compare_arg_init() argument
498 arg->portid = portid; in netlink_compare_arg_init()
501 static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid, in __netlink_lookup() argument
506 netlink_compare_arg_init(&arg, net, portid); in __netlink_lookup()
515 netlink_compare_arg_init(&arg, sock_net(sk), nlk_sk(sk)->portid); in __netlink_insert()
521 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid) in netlink_lookup() argument
[all …]
Dgenetlink.c441 void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, in genlmsg_put() argument
447 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + in genlmsg_put()
614 info.snd_portid = NETLINK_CB(skb).portid; in genl_family_rcv_msg()
675 static int ctrl_fill_info(const struct genl_family *family, u32 portid, u32 seq, in ctrl_fill_info() argument
680 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_info()
764 int grp_id, u32 portid, u32 seq, u32 flags, in ctrl_fill_mcgrp_info() argument
771 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_mcgrp_info()
818 if (ctrl_fill_info(rt, NETLINK_CB(cb->skb).portid, in ctrl_dumpfamily()
831 u32 portid, int seq, u8 cmd) in ctrl_build_family_msg() argument
840 err = ctrl_fill_info(family, portid, seq, 0, skb, cmd); in ctrl_build_family_msg()
[all …]
Ddiag.c46 u32 portid, u32 seq, u32 flags, int sk_ino) in sk_diag_fill() argument
52 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill()
64 rep->ndiag_portid = nlk->portid; in sk_diag_fill()
138 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump()
168 NETLINK_CB(cb->skb).portid, in __netlink_diag_dump()
/net/batman-adv/
Dbat_v.c218 batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_neigh() argument
229 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_neigh_dump_neigh()
266 batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_neigh_dump_hardif() argument
279 if (batadv_v_neigh_dump_neigh(msg, portid, seq, hardif_neigh)) { in batadv_v_neigh_dump_hardif()
306 int portid = NETLINK_CB(cb->skb).portid; in batadv_v_neigh_dump() local
311 if (batadv_v_neigh_dump_hardif(msg, portid, in batadv_v_neigh_dump()
325 if (batadv_v_neigh_dump_hardif(msg, portid, in batadv_v_neigh_dump()
423 batadv_v_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_orig_dump_subentry() argument
449 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, in batadv_v_orig_dump_subentry()
490 batadv_v_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_v_orig_dump_entry() argument
[all …]
Dbat_algo.c177 static int batadv_algo_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_algo_dump_entry() argument
182 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_algo_dump_entry()
208 int portid = NETLINK_CB(cb->skb).portid; in batadv_algo_dump() local
217 if (batadv_algo_dump_entry(msg, portid, cb->nlh->nlmsg_seq, in batadv_algo_dump()
Dbat_iv_ogm.c1924 batadv_iv_ogm_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_subentry() argument
1944 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_orig_dump_subentry()
1986 batadv_iv_ogm_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_entry() argument
2014 if (batadv_iv_ogm_orig_dump_subentry(msg, portid, seq, in batadv_iv_ogm_orig_dump_entry()
2048 batadv_iv_ogm_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_bucket() argument
2061 if (batadv_iv_ogm_orig_dump_entry(msg, portid, seq, bat_priv, in batadv_iv_ogm_orig_dump_bucket()
2093 int portid = NETLINK_CB(cb->skb).portid; in batadv_iv_ogm_orig_dump() local
2098 if (batadv_iv_ogm_orig_dump_bucket(msg, portid, in batadv_iv_ogm_orig_dump()
2220 batadv_iv_ogm_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_neigh_dump_neigh() argument
2228 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_neigh_dump_neigh()
[all …]
/net/sched/
Dact_api.c1062 u32 portid, u32 seq, u16 flags, int event, int bind, in tca_get_fill() argument
1070 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags); in tca_get_fill()
1096 tcf_get_notify(struct net *net, u32 portid, struct nlmsghdr *n, in tcf_get_notify() argument
1105 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1112 return rtnl_unicast(skb, net, portid); in tcf_get_notify()
1116 struct nlmsghdr *n, u32 portid, in tcf_action_get_1() argument
1160 struct nlmsghdr *n, u32 portid, in tca_action_flush() argument
1193 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, in tca_action_flush()
1221 err = rtnetlink_send(skb, net, portid, RTNLGRP_TC, in tca_action_flush()
1268 u32 portid, size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument
[all …]
Dsch_api.c875 u32 portid, u32 seq, u16 flags, int event) in tc_fill_qdisc() argument
888 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
968 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; in qdisc_notify() local
975 if (tc_fill_qdisc(skb, old, clid, portid, n->nlmsg_seq, in qdisc_notify()
980 if (tc_fill_qdisc(skb, new, clid, portid, n->nlmsg_seq, in qdisc_notify()
986 return rtnetlink_send(skb, net, portid, RTNLGRP_TC, in qdisc_notify()
1744 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root()
1766 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root()
1842 u32 portid, u32 seq, u16 flags, int event) in tc_fill_tclass() argument
1851 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
[all …]
/net/phonet/
Dpn_netlink.c23 u32 portid, u32 seq, int event);
96 u32 portid, u32 seq, int event) in fill_addr() argument
101 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr()
144 NETLINK_CB(cb->skb).portid, in getaddr_dumpit()
161 u32 portid, u32 seq, int event) in fill_route() argument
166 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route()
275 if (fill_route(skb, dev, addr << 2, NETLINK_CB(cb->skb).portid, in route_dumpit()
/net/unix/
Ddiag.c125 u32 portid, u32 seq, u32 flags, int sk_ino) in sk_diag_fill() argument
130 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill()
184 u32 portid, u32 seq, u32 flags) in sk_diag_dump() argument
195 return sk_diag_fill(sk, skb, req, user_ns, portid, seq, flags, sk_ino); in sk_diag_dump()
224 NETLINK_CB(cb->skb).portid, in unix_diag_dump()
292 NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
302 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
/net/tipc/
Dsocket.c100 u32 portid; member
135 static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid);
469 msg_set_origport(msg, tsk->portid); in tipc_sk_create()
536 tipc_node_remove_conn(net, dnode, tsk->portid); in __tipc_shutdown()
547 tsk->portid, error); in __tipc_shutdown()
549 tipc_node_xmit_skb(net, skb, dnode, tsk->portid); in __tipc_shutdown()
703 addr->addr.id.ref = tsk->portid; in tipc_getname()
869 mtu = tipc_node_get_mtu(net, dnode, tsk->portid, false); in tipc_send_group_msg()
875 rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid); in tipc_send_group_msg()
1149 u32 portid, onode; in tipc_sk_mcast_rcv() local
[all …]
Dnet.c177 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net()
216 msg.portid = NETLINK_CB(cb->skb).portid; in tipc_nl_net_dump()
/net/vmw_vsock/
Ddiag.c15 u32 portid, u32 seq, u32 flags) in sk_diag_fill() argument
21 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill()
86 NETLINK_CB(cb->skb).portid, in vsock_diag_dump()
120 NETLINK_CB(cb->skb).portid, in vsock_diag_dump()
/net/ipv4/
Dinet_diag.c176 u32 portid, u32 seq, u16 nlmsg_flags, in inet_sk_diag_fill() argument
191 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill()
313 u32 portid, u32 seq, u16 nlmsg_flags, in inet_csk_diag_fill() argument
318 portid, seq, nlmsg_flags, unlh, net_admin); in inet_csk_diag_fill()
323 u32 portid, u32 seq, u16 nlmsg_flags, in inet_twsk_diag_fill() argument
331 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill()
356 u32 portid, u32 seq, u16 nlmsg_flags, in inet_req_diag_fill() argument
364 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_req_diag_fill()
398 u32 portid, u32 seq, u16 nlmsg_flags, in sk_diag_fill() argument
402 return inet_twsk_diag_fill(sk, skb, portid, seq, in sk_diag_fill()
[all …]
Ddevinet.c108 u32 portid; member
350 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa() argument
389 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa()
427 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa()
445 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa()
473 u32 portid, struct netlink_ext_ack *extack) in __inet_insert_ifa() argument
552 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa()
686 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr()
957 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid, in inet_rtm_newaddr()
978 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid); in inet_rtm_newaddr()
[all …]
/net/nfc/
Dnetlink.c66 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target()
576 u32 portid, u32 seq, in nfc_genl_send_device() argument
582 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_device()
628 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_devices()
998 u32 portid, u32 seq) in nfc_genl_send_params() argument
1002 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0, in nfc_genl_send_params()
1338 u32 portid, u32 seq, in nfc_genl_send_se() argument
1346 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_se()
1396 rc = nfc_genl_send_se(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_ses()
1629 static inline void *nfc_hdr_put(struct sk_buff *skb, u32 portid, u32 seq, in nfc_hdr_put() argument
[all …]
/net/core/
Dnet_namespace.c257 static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid,
796 rtnl_net_notifyid(net, RTM_NEWNSID, err, NETLINK_CB(skb).portid, in rtnl_net_newid()
818 u32 portid; member
832 nlh = nlmsg_put(skb, args->portid, args->seq, args->cmd, sizeof(*rth), in rtnl_net_fill()
898 .portid = NETLINK_CB(skb).portid, in rtnl_net_getid()
958 err = rtnl_unicast(msg, net, NETLINK_CB(skb).portid); in rtnl_net_getid()
1048 .portid = NETLINK_CB(cb->skb).portid, in rtnl_net_dumpid()
1075 static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid, in rtnl_net_notifyid() argument
1079 .portid = portid, in rtnl_net_notifyid()
1095 rtnl_notify(msg, net, portid, RTNLGRP_NSID, nlh, gfp); in rtnl_net_notifyid()
/net/mpls/
Daf_mpls.c74 struct nlmsghdr *nlh, struct net *net, u32 portid,
541 unsigned portid = info ? info->portid : 0; in mpls_notify_route() local
547 rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags); in mpls_notify_route()
1132 u32 portid, u32 seq, int event, in mpls_netconf_fill_devconf() argument
1139 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in mpls_netconf_fill_devconf()
1285 NETLINK_CB(in_skb).portid, in mpls_netconf_get_devconf()
1294 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in mpls_netconf_get_devconf()
1340 NETLINK_CB(cb->skb).portid, in mpls_netconf_dump_devconf()
1886 cfg->rc_nlinfo.portid = NETLINK_CB(skb).portid; in rtm_to_route_config()
2003 static int mpls_dump_route(struct sk_buff *skb, u32 portid, u32 seq, int event, in mpls_dump_route() argument
[all …]
/net/sctp/
Ddiag.c123 int portid, u32 seq, u16 nlmsg_flags, in inet_sctp_diag_fill() argument
135 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sctp_diag_fill()
274 NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one()
284 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one()
319 NETLINK_CB(cb->skb).portid, in sctp_sock_dump()
330 NETLINK_CB(cb->skb).portid, in sctp_sock_dump()
397 NETLINK_CB(cb->skb).portid, in sctp_ep_dump()
/net/ieee802154/
Dnl-mac.c74 static int ieee802154_nl_fill_iface(struct sk_buff *msg, u32 portid, in ieee802154_nl_fill_iface() argument
452 if (ieee802154_nl_fill_iface(skb, NETLINK_CB(cb->skb).portid, in ieee802154_dump_iface()
764 int portid; member
794 data.portid = NETLINK_CB(cb->skb).portid; in ieee802154_llsec_dump_table()
911 ieee802154_nl_fill_key(struct sk_buff *msg, u32 portid, u32 seq, in ieee802154_nl_fill_key() argument
960 if (ieee802154_nl_fill_key(data->skb, data->portid, in llsec_iter_keys()
1048 ieee802154_nl_fill_dev(struct sk_buff *msg, u32 portid, u32 seq, in ieee802154_nl_fill_dev() argument
1091 if (ieee802154_nl_fill_dev(data->skb, data->portid, in llsec_iter_devs()
1155 ieee802154_nl_fill_devkey(struct sk_buff *msg, u32 portid, u32 seq, in ieee802154_nl_fill_devkey() argument
1201 if (ieee802154_nl_fill_devkey(data->skb, data->portid, in llsec_iter_devkeys()
[all …]
/net/wireless/
Dreg.h45 int regulatory_hint_indoor(bool is_indoor, u32 portid);
51 void regulatory_netlink_notify(u32 portid);

12345