Searched refs:portid (Results 1 - 25 of 60) sorted by relevance

123

/net/netlink/
H A Daf_netlink.c109 static inline struct hlist_head *nl_portid_hashfn(struct nl_portid_hash *hash, u32 portid) argument
111 return &hash->table[jhash_1word(portid, hash->rnd) & hash->mask];
623 NETLINK_CB(skb).portid = nlk->portid;
857 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid) argument
864 head = nl_portid_hashfn(hash, portid);
866 if (net_eq(sock_net(sk), net) && (nlk_sk(sk)->portid == portid)) {
928 __sk_add_node(sk, nl_portid_hashfn(hash, nlk_sk(sk)->portid));
977 static int netlink_insert(struct sock *sk, struct net *net, u32 portid) argument
1189 s32 portid = task_tgid_vnr(current); local
1388 netlink_getsockbyportid(struct sock *ssk, u32 portid) argument
1550 netlink_unicast(struct sock *ssk, struct sk_buff *skb, u32 portid, int nonblock) argument
1684 u32 portid; member in struct:netlink_broadcast_data
1757 netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, u32 portid, u32 group, gfp_t allocation, int (*filter)(struct sock *dsk, struct sk_buff *skb, void *data), void *filter_data) argument
1808 netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid, u32 group, gfp_t allocation) argument
1818 u32 portid; member in struct:netlink_set_err_data
1859 netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code) argument
2386 __nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int flags) argument
2636 nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid, unsigned int group, int report, gfp_t flags) argument
[all...]
H A Ddiag.c58 u32 portid, u32 seq, u32 flags, int sk_ino)
64 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep),
76 rep->ndiag_portid = nlk->portid;
122 NETLINK_CB(cb->skb).portid,
145 NETLINK_CB(cb->skb).portid,
56 sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct netlink_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) argument
H A Dgenetlink.c519 * @portid: netlink portid the message is addressed to
527 void *genlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, argument
533 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN +
605 info.snd_portid = NETLINK_CB(skb).portid;
670 static int ctrl_fill_info(struct genl_family *family, u32 portid, u32 seq, argument
675 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd);
745 static int ctrl_fill_mcgrp_info(struct genl_multicast_group *grp, u32 portid, argument
753 hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd);
800 if (ctrl_fill_info(rt, NETLINK_CB(cb->skb).portid,
816 ctrl_build_family_msg(struct genl_family *family, u32 portid, int seq, u8 cmd) argument
835 ctrl_build_mcgrp_msg(struct genl_multicast_group *grp, u32 portid, int seq, u8 cmd) argument
1014 genlmsg_mcast(struct sk_buff *skb, u32 portid, unsigned long group, gfp_t flags) argument
1043 genlmsg_multicast_allns(struct sk_buff *skb, u32 portid, unsigned int group, gfp_t flags) argument
1050 genl_notify(struct sk_buff *skb, struct net *net, u32 portid, u32 group, struct nlmsghdr *nlh, gfp_t flags) argument
[all...]
H A Daf_netlink.h26 u32 portid; member in struct:netlink_sock
/net/netfilter/
H A Dnfnetlink.c122 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, argument
125 return nlmsg_notify(net->nfnl, skb, portid, group, echo, flags);
129 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) argument
131 return netlink_set_err(net->nfnl, portid, group, error);
135 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, argument
138 return netlink_unicast(net->nfnl, skb, portid, flags);
H A Dnfnetlink_acct.c96 nfnl_acct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, argument
101 unsigned int flags = portid ? NLM_F_MULTI : 0;
105 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
158 if (nfnl_acct_fill_info(skb, NETLINK_CB(cb->skb).portid,
203 ret = nfnl_acct_fill_info(skb2, NETLINK_CB(skb).portid,
211 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid,
H A Dnfnetlink_cttimeout.c159 ctnl_timeout_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, argument
164 unsigned int flags = portid ? NLM_F_MULTI : 0;
168 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
229 if (ctnl_timeout_fill_info(skb, NETLINK_CB(cb->skb).portid,
275 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid,
283 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid,
H A Dnf_conntrack_netlink.c456 ctnetlink_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, argument
462 unsigned int flags = portid ? NLM_F_MULTI : 0, event;
465 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
644 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags);
723 err = nfnetlink_send(skb, net, item->portid, group, item->report,
800 ctnetlink_fill_info(skb, NETLINK_CB(cb->skb).portid,
1012 NETLINK_CB(skb).portid,
1036 NETLINK_CB(skb).portid,
1120 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
1127 err = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, MSG_DONTWAI
1842 ctnetlink_ct_stat_cpu_fill_info(struct sk_buff *skb, u32 portid, u32 seq, __u16 cpu, const struct ip_conntrack_stat *st) argument
1928 ctnetlink_stat_ct_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, struct net *net) argument
2274 ctnetlink_exp_fill_info(struct sk_buff *skb, u32 portid, u32 seq, int event, const struct nf_conntrack_expect *exp) argument
2735 ctnetlink_create_expect(struct net *net, u16 zone, const struct nlattr * const cda[], u_int8_t u3, u32 portid, int report) argument
2909 ctnetlink_exp_stat_fill_info(struct sk_buff *skb, u32 portid, u32 seq, int cpu, const struct ip_conntrack_stat *st) argument
[all...]
H A Dnfnetlink_cthelper.c400 nfnl_cthelper_fill_info(struct sk_buff *skb, u32 portid, u32 seq, u32 type, argument
405 unsigned int flags = portid ? NLM_F_MULTI : 0;
409 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags);
472 NETLINK_CB(cb->skb).portid,
541 ret = nfnl_cthelper_fill_info(skb2, NETLINK_CB(skb).portid,
550 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid,
/net/phonet/
H A Dpn_netlink.c36 u32 portid, u32 seq, int event);
107 u32 portid, u32 seq, int event)
112 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0);
154 NETLINK_CB(cb->skb).portid,
171 u32 portid, u32 seq, int event)
176 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0);
285 if (fill_route(skb, dev, addr << 2, NETLINK_CB(cb->skb).portid,
106 fill_addr(struct sk_buff *skb, struct net_device *dev, u8 addr, u32 portid, u32 seq, int event) argument
170 fill_route(struct sk_buff *skb, struct net_device *dev, u8 dst, u32 portid, u32 seq, int event) argument
/net/unix/
H A Ddiag.c113 u32 portid, u32 seq, u32 flags, int sk_ino)
118 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep),
165 u32 portid, u32 seq, u32 flags)
176 return sk_diag_fill(sk, skb, req, portid, seq, flags, sk_ino);
205 NETLINK_CB(cb->skb).portid,
270 err = sk_diag_fill(sk, rep, req, NETLINK_CB(in_skb).portid,
280 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
112 sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags, int sk_ino) argument
164 sk_diag_dump(struct sock *sk, struct sk_buff *skb, struct unix_diag_req *req, u32 portid, u32 seq, u32 flags) argument
/net/sched/
H A Dact_api.c649 tca_get_fill(struct sk_buff *skb, struct tc_action *a, u32 portid, u32 seq, argument
657 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags);
683 act_get_notify(struct net *net, u32 portid, struct nlmsghdr *n, argument
691 if (tca_get_fill(skb, a, portid, n->nlmsg_seq, 0, event, 0, 0) <= 0) {
696 return rtnl_unicast(skb, net, portid);
700 tcf_action_get_1(struct nlattr *nla, struct nlmsghdr *n, u32 portid) argument
767 struct nlmsghdr *n, u32 portid)
804 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, sizeof(*t), 0);
828 err = rtnetlink_send(skb, net, portid, RTNLGRP_TC,
846 u32 portid, in
766 tca_action_flush(struct net *net, struct nlattr *nla, struct nlmsghdr *n, u32 portid) argument
845 tca_action_gd(struct net *net, struct nlattr *nla, struct nlmsghdr *n, u32 portid, int event) argument
909 tcf_add_notify(struct net *net, struct tc_action *a, u32 portid, u32 seq, int event, u16 flags) argument
957 tcf_action_add(struct net *net, struct nlattr *nla, struct nlmsghdr *n, u32 portid, int ovr) argument
989 u32 portid = skb ? NETLINK_CB(skb).portid : 0; local
[all...]
H A Dsch_api.c1198 u32 portid, u32 seq, u16 flags, int event)
1206 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
1261 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; local
1268 if (tc_fill_qdisc(skb, old, clid, portid, n->nlmsg_seq,
1273 if (tc_fill_qdisc(skb, new, clid, portid, n->nlmsg_seq,
1279 return rtnetlink_send(skb, net, portid, RTNLGRP_TC,
1302 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid,
1313 tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).portid,
1388 u32 portid; local
1197 tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid, u32 portid, u32 seq, u16 flags, int event) argument
1510 tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q, unsigned long cl, u32 portid, u32 seq, u16 flags, int event) argument
1560 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; local
[all...]
H A Dcls_api.c348 unsigned long fh, u32 portid, u32 seq, u16 flags, int event)
354 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
386 u32 portid = oskb ? NETLINK_CB(oskb).portid : 0; local
392 if (tcf_fill_node(skb, tp, fh, portid, n->nlmsg_seq, 0, event) <= 0) {
397 return rtnetlink_send(skb, net, portid, RTNLGRP_TC,
412 return tcf_fill_node(a->skb, tp, n, NETLINK_CB(a->cb->skb).portid,
470 if (tcf_fill_node(skb, tp, 0, NETLINK_CB(cb->skb).portid,
347 tcf_fill_node(struct sk_buff *skb, struct tcf_proto *tp, unsigned long fh, u32 portid, u32 seq, u16 flags, int event) argument
/net/tipc/
H A Dnetlink.c65 genlmsg_unicast(&init_net, rep_buf, NETLINK_CB(skb).portid);
/net/ipv4/
H A Dinet_diag.c77 u32 portid, u32 seq, u16 nlmsg_flags,
91 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
213 u32 portid, u32 seq, u16 nlmsg_flags,
217 skb, req, user_ns, portid, seq, nlmsg_flags, unlh);
222 u32 portid, u32 seq, u16 nlmsg_flags,
229 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r),
272 u32 portid, u32 seq, u16 nlmsg_flags,
277 skb, r, portid, seq, nlmsg_flags,
279 return inet_csk_diag_fill(sk, skb, r, user_ns, portid, seq, nlmsg_flags, unlh);
328 NETLINK_CB(in_skb).portid,
74 inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, struct sk_buff *skb, struct inet_diag_req_v2 *req, struct user_namespace *user_ns, u32 portid, u32 seq, u16 nlmsg_flags, const struct nlmsghdr *unlh) argument
210 inet_csk_diag_fill(struct sock *sk, struct sk_buff *skb, struct inet_diag_req_v2 *req, struct user_namespace *user_ns, u32 portid, u32 seq, u16 nlmsg_flags, const struct nlmsghdr *unlh) argument
220 inet_twsk_diag_fill(struct inet_timewait_sock *tw, struct sk_buff *skb, struct inet_diag_req_v2 *req, u32 portid, u32 seq, u16 nlmsg_flags, const struct nlmsghdr *unlh) argument
269 sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct inet_diag_req_v2 *r, struct user_namespace *user_ns, u32 portid, u32 seq, u16 nlmsg_flags, const struct nlmsghdr *unlh) argument
703 inet_diag_fill_req(struct sk_buff *skb, struct sock *sk, struct request_sock *req, struct user_namespace *user_ns, u32 portid, u32 seq, const struct nlmsghdr *unlh) argument
[all...]
H A Dudp_diag.c29 NETLINK_CB(cb->skb).portid,
75 NETLINK_CB(in_skb).portid,
82 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid,
H A Ddevinet.c317 int destroy, struct nlmsghdr *nlh, u32 portid)
351 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid);
388 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid);
401 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid);
427 u32 portid)
477 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid);
576 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid);
825 return __inet_insert_ifa(ifa, nlh, NETLINK_CB(skb).portid);
836 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, NETLINK_CB(skb).portid);
1462 u32 portid, u3
316 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy, struct nlmsghdr *nlh, u32 portid) argument
426 __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, u32 portid) argument
1461 inet_fill_ifaddr(struct sk_buff *skb, struct in_ifaddr *ifa, u32 portid, u32 seq, int event, unsigned int flags) argument
1576 rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, u32 portid) argument
1700 inet_netconf_fill_devconf(struct sk_buff *skb, int ifindex, struct ipv4_devconf *devconf, u32 portid, u32 seq, int event, unsigned int flags, int type) argument
[all...]
/net/nfc/
H A Dnetlink.c71 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
428 u32 portid, u32 seq,
434 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags,
484 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid,
800 u32 portid, u32 seq)
804 hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0,
1092 int portid; member in struct:urelease_work
1101 pr_debug("portid %d\n", w->portid);
1111 if (dev->genl_data.poll_req_portid == w->portid) {
427 nfc_genl_send_device(struct sk_buff *msg, struct nfc_dev *dev, u32 portid, u32 seq, struct netlink_callback *cb, int flags) argument
798 nfc_genl_send_params(struct sk_buff *msg, struct nfc_llcp_local *local, u32 portid, u32 seq) argument
[all...]
/net/openvswitch/
H A Ddatapath.c248 upcall.portid = p->upcall_portid;
285 if (upcall_info->portid == 0) {
443 err = genlmsg_unicast(net, user_skb, upcall_info->portid);
861 struct sk_buff *skb, u32 portid,
875 ovs_header = genlmsg_put(skb, portid, seq, &dp_flow_genl_family, flags, cmd);
944 u32 portid, u32 seq, u8 cmd)
953 retval = ovs_flow_cmd_fill_info(flow, dp, skb, portid, seq, 0, cmd);
1228 NETLINK_CB(cb->skb).portid,
1294 u32 portid, u32 seq, u32 flags, u8 cmd)
1300 ovs_header = genlmsg_put(skb, portid, se
860 ovs_flow_cmd_fill_info(struct sw_flow *flow, struct datapath *dp, struct sk_buff *skb, u32 portid, u32 seq, u32 flags, u8 cmd) argument
942 ovs_flow_cmd_build_info(struct sw_flow *flow, struct datapath *dp, u32 portid, u32 seq, u8 cmd) argument
1293 ovs_dp_cmd_fill_info(struct datapath *dp, struct sk_buff *skb, u32 portid, u32 seq, u32 flags, u8 cmd) argument
1325 ovs_dp_cmd_build_info(struct datapath *dp, u32 portid, u32 seq, u8 cmd) argument
1639 ovs_vport_cmd_fill_info(struct vport *vport, struct sk_buff *skb, u32 portid, u32 seq, u32 flags, u8 cmd) argument
1678 ovs_vport_cmd_build_info(struct vport *vport, u32 portid, u32 seq, u8 cmd) argument
[all...]
H A Ddatapath.h111 u32 portid; member in struct:dp_upcall_info
/net/packet/
H A Ddiag.c131 u32 portid, u32 seq, u32 flags, int sk_ino)
137 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags);
203 NETLINK_CB(cb->skb).portid,
128 sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct packet_diag_req *req, struct user_namespace *user_ns, u32 portid, u32 seq, u32 flags, int sk_ino) argument
/net/ipv6/
H A Daddrlabel.c480 u32 portid, u32 seq, int event,
483 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event,
512 NETLINK_CB(cb->skb).portid,
579 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq,
590 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid);
477 ip6addrlbl_fill(struct sk_buff *skb, struct ip6addrlbl_entry *p, u32 lseq, u32 portid, u32 seq, int event, unsigned int flags) argument
/net/decnet/
H A Ddn_table.c297 static int dn_fib_dump_info(struct sk_buff *skb, u32 portid, u32 seq, int event, argument
304 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags);
380 u32 portid = req ? req->portid : 0; local
387 err = dn_fib_dump_info(skb, portid, nlh->nlmsg_seq, event, tb_id,
396 rtnl_notify(skb, &init_net, portid, RTNLGRP_DECnet_ROUTE, nlh, GFP_KERNEL);
417 if (dn_fib_dump_info(skb, NETLINK_CB(cb->skb).portid,
/net/netfilter/ipset/
H A Dip_set_core.c634 start_msg(struct sk_buff *skb, u32 portid, u32 seq, unsigned int flags, argument
640 nlh = nlmsg_put(skb, portid, seq, cmd | (NFNL_SUBSYS_IPSET << 8),
1150 unsigned int flags = NETLINK_CB(cb->skb).portid ? NLM_F_MULTI : 0;
1198 nlh = start_msg(skb, NETLINK_CB(cb->skb).portid,
1331 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid,
1346 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, MSG_DONTWAIT);
1520 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
1532 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, MSG_DONTWAIT);
1580 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0,
1593 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, MSG_DONTWAI
[all...]

Completed in 195 milliseconds

123