Home
last modified time | relevance | path

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

12345

/net/netfilter/
Dnf_conntrack_ecache.c134 u32 portid, int report) in nf_conntrack_eventmask_report() argument
153 .portid = e->portid ? e->portid : portid, in nf_conntrack_eventmask_report()
157 unsigned long missed = e->portid ? 0 : e->missed; in nf_conntrack_eventmask_report()
171 if (e->portid == 0 && portid != 0) in nf_conntrack_eventmask_report()
172 e->portid = portid; in nf_conntrack_eventmask_report()
223 item.portid = 0; in nf_ct_deliver_cached_events()
245 u32 portid, int report) in nf_ct_expect_event_report() argument
264 .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.c557 ctnetlink_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, in ctnetlink_fill_info() argument
565 if (portid) in ctnetlink_fill_info()
568 nlh = nfnl_msg_put(skb, portid, seq, event, flags, nf_ct_l3num(ct), in ctnetlink_fill_info()
744 nlh = nfnl_msg_put(skb, item->portid, 0, type, flags, nf_ct_l3num(ct), in ctnetlink_conntrack_event()
824 err = nfnetlink_send(skb, net, item->portid, group, item->report, in ctnetlink_conntrack_event()
1173 ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid, in ctnetlink_dump_table()
1501 u32 portid, int report, u8 family) in ctnetlink_flush_conntrack() argument
1515 portid, report); in ctnetlink_flush_conntrack()
1548 NETLINK_CB(skb).portid, in ctnetlink_del_conntrack()
1570 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.c167 NETLINK_CB(new).portid = NETLINK_CB(skb).portid; in netlink_to_full_skb()
477 u32 portid; member
482 (offsetof(struct netlink_compare_arg, portid) + sizeof(u32))
490 return nlk->portid != x->portid || in netlink_compare()
495 struct net *net, u32 portid) in netlink_compare_arg_init() argument
499 arg->portid = portid; in netlink_compare_arg_init()
502 static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid, in __netlink_lookup() argument
507 netlink_compare_arg_init(&arg, net, portid); in __netlink_lookup()
516 netlink_compare_arg_init(&arg, sock_net(sk), nlk_sk(sk)->portid); in __netlink_insert()
522 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid) in netlink_lookup() argument
[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()
Dgenetlink.c496 void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, in genlmsg_put() argument
502 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + in genlmsg_put()
724 info.snd_portid = NETLINK_CB(skb).portid; in genl_family_rcv_msg_doit()
821 static int ctrl_fill_info(const struct genl_family *family, u32 portid, u32 seq, in ctrl_fill_info() argument
826 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_info()
912 int grp_id, u32 portid, u32 seq, u32 flags, in ctrl_fill_mcgrp_info() argument
919 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd); in ctrl_fill_mcgrp_info()
966 if (ctrl_fill_info(rt, NETLINK_CB(cb->skb).portid, in ctrl_dumpfamily()
979 u32 portid, int seq, u8 cmd) in ctrl_build_family_msg() argument
988 err = ctrl_fill_info(family, portid, seq, 0, skb, cmd); in ctrl_build_family_msg()
[all …]
/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.c1926 batadv_iv_ogm_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_subentry() argument
1946 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_orig_dump_subentry()
1988 batadv_iv_ogm_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_entry() argument
2016 if (batadv_iv_ogm_orig_dump_subentry(msg, portid, seq, in batadv_iv_ogm_orig_dump_entry()
2050 batadv_iv_ogm_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_orig_dump_bucket() argument
2063 if (batadv_iv_ogm_orig_dump_entry(msg, portid, seq, bat_priv, in batadv_iv_ogm_orig_dump_bucket()
2095 int portid = NETLINK_CB(cb->skb).portid; in batadv_iv_ogm_orig_dump() local
2100 if (batadv_iv_ogm_orig_dump_bucket(msg, portid, in batadv_iv_ogm_orig_dump()
2222 batadv_iv_ogm_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, in batadv_iv_ogm_neigh_dump_neigh() argument
2230 hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, in batadv_iv_ogm_neigh_dump_neigh()
[all …]
/net/sched/
Dact_api.c1188 u32 portid, u32 seq, u16 flags, int event, int bind, in tca_get_fill() argument
1196 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags); in tca_get_fill()
1222 tcf_get_notify(struct net *net, u32 portid, struct nlmsghdr *n, in tcf_get_notify() argument
1231 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, in tcf_get_notify()
1238 return rtnl_unicast(skb, net, portid); in tcf_get_notify()
1242 struct nlmsghdr *n, u32 portid, in tcf_action_get_1() argument
1286 struct nlmsghdr *n, u32 portid, in tca_action_flush() argument
1319 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, in tca_action_flush()
1347 err = rtnetlink_send(skb, net, portid, RTNLGRP_TC, in tca_action_flush()
1394 u32 portid, size_t attr_size, struct netlink_ext_ack *extack) in tcf_del_notify() argument
[all …]
Dsch_api.c885 u32 portid, u32 seq, u16 flags, int event) in tc_fill_qdisc() argument
898 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
978 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; in qdisc_notify() local
985 if (tc_fill_qdisc(skb, old, clid, portid, n->nlmsg_seq, in qdisc_notify()
990 if (tc_fill_qdisc(skb, new, clid, portid, n->nlmsg_seq, in qdisc_notify()
996 return rtnetlink_send(skb, net, portid, RTNLGRP_TC, in qdisc_notify()
1754 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root()
1776 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid, in tc_dump_qdisc_root()
1852 u32 portid, u32 seq, u16 flags, int event) in tc_fill_tclass() argument
1861 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/
Dnet.c168 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_add_net()
207 msg.portid = NETLINK_CB(cb->skb).portid; in tipc_nl_net_dump()
293 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, in __tipc_nl_addr_legacy_get()
331 msg.portid = info->snd_portid; in tipc_nl_net_addr_legacy_get()
Dsocket.c103 u32 portid; member
145 static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid);
503 msg_set_origport(msg, tsk->portid); in tipc_sk_create()
572 tipc_node_remove_conn(net, dnode, tsk->portid); in __tipc_shutdown()
583 tsk->portid, error); in __tipc_shutdown()
585 tipc_node_xmit_skb(net, skb, dnode, tsk->portid); in __tipc_shutdown()
738 addr->addr.id.ref = tsk->portid; in tipc_getname()
904 mtu = tipc_node_get_mtu(net, dnode, tsk->portid, false); in tipc_send_group_msg()
910 rc = tipc_node_xmit(net, &pkts, dnode, tsk->portid); in tipc_send_group_msg()
1184 u32 portid, onode; in tipc_sk_mcast_rcv() local
[all …]
/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/nfc/
Dnetlink.c66 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target()
568 u32 portid, u32 seq, in nfc_genl_send_device() argument
574 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_device()
620 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_devices()
990 u32 portid, u32 seq) in nfc_genl_send_params() argument
994 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0, in nfc_genl_send_params()
1330 u32 portid, u32 seq, in nfc_genl_send_se() argument
1338 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, in nfc_genl_send_se()
1388 rc = nfc_genl_send_se(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_ses()
1621 static inline void *nfc_hdr_put(struct sk_buff *skb, u32 portid, u32 seq, in nfc_hdr_put() argument
[all …]
/net/core/
Dnet_namespace.c240 static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid,
793 rtnl_net_notifyid(net, RTM_NEWNSID, err, NETLINK_CB(skb).portid, in rtnl_net_newid()
815 u32 portid; member
829 nlh = nlmsg_put(skb, args->portid, args->seq, args->cmd, sizeof(*rth), in rtnl_net_fill()
895 .portid = NETLINK_CB(skb).portid, in rtnl_net_getid()
955 err = rtnl_unicast(msg, net, NETLINK_CB(skb).portid); in rtnl_net_getid()
1045 .portid = NETLINK_CB(cb->skb).portid, in rtnl_net_dumpid()
1072 static void rtnl_net_notifyid(struct net *net, int cmd, int id, u32 portid, in rtnl_net_notifyid() argument
1076 .portid = portid, in rtnl_net_notifyid()
1092 rtnl_notify(msg, net, portid, RTNLGRP_NSID, nlh, gfp); in rtnl_net_notifyid()
/net/ipv4/
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/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()
1875 cfg->rc_nlinfo.portid = NETLINK_CB(skb).portid; in rtm_to_route_config()
1992 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 …]
Dnl802154.c294 static inline void *nl802154hdr_put(struct sk_buff *skb, u32 portid, u32 seq, in nl802154hdr_put() argument
298 return genlmsg_put(skb, portid, seq, &nl802154_fam, flags, cmd); in nl802154hdr_put()
433 struct sk_buff *msg, u32 portid, u32 seq, in nl802154_send_wpan_phy() argument
440 hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); in nl802154_send_wpan_phy()
614 NETLINK_CB(cb->skb).portid, in nl802154_dump_wpan_phy()
770 nl802154_send_iface(struct sk_buff *msg, u32 portid, u32 seq, int flags, in nl802154_send_iface() argument
777 hdr = nl802154hdr_put(msg, portid, seq, flags, in nl802154_send_iface()
865 if (nl802154_send_iface(skb, NETLINK_CB(cb->skb).portid, in nl802154_dump_interface()
1432 static int nl802154_send_key(struct sk_buff *msg, u32 cmd, u32 portid, in nl802154_send_key() argument
1442 hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); in nl802154_send_key()
[all …]
/net/wireless/
Dreg.h45 int regulatory_hint_indoor(bool is_indoor, u32 portid);
51 void regulatory_netlink_notify(u32 portid);

12345