/Linux-v4.19/net/ipv4/ |
D | udp_diag.c | 34 static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, in udp_dump_one() argument 41 struct net *net = sock_net(in_skb->sk); in udp_dump_one() 77 sk_user_ns(NETLINK_CB(in_skb).sk), in udp_dump_one() 78 NETLINK_CB(in_skb).portid, in udp_dump_one() 80 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one() 86 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in udp_dump_one() 157 static int udp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in udp_diag_dump_one() argument 160 return udp_dump_one(&udp_table, in_skb, nlh, req); in udp_diag_dump_one() 171 static int __udp_diag_destroy(struct sk_buff *in_skb, in __udp_diag_destroy() argument 175 struct net *net = sock_net(in_skb->sk); in __udp_diag_destroy() [all …]
|
D | raw_diag.c | 92 static int raw_diag_dump_one(struct sk_buff *in_skb, in raw_diag_dump_one() argument 96 struct net *net = sock_net(in_skb->sk); in raw_diag_dump_one() 114 sk_user_ns(NETLINK_CB(in_skb).sk), in raw_diag_dump_one() 115 NETLINK_CB(in_skb).portid, in raw_diag_dump_one() 117 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one() 126 NETLINK_CB(in_skb).portid, in raw_diag_dump_one() 204 static int raw_diag_destroy(struct sk_buff *in_skb, in raw_diag_destroy() argument 207 struct net *net = sock_net(in_skb->sk); in raw_diag_destroy()
|
D | tcp_diag.c | 140 static int tcp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in tcp_diag_dump_one() argument 143 return inet_diag_dump_one_icsk(&tcp_hashinfo, in_skb, nlh, req); in tcp_diag_dump_one() 147 static int tcp_diag_destroy(struct sk_buff *in_skb, in tcp_diag_destroy() argument 150 struct net *net = sock_net(in_skb->sk); in tcp_diag_destroy()
|
D | inet_diag.c | 461 struct sk_buff *in_skb, in inet_diag_dump_one_icsk() argument 465 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk() 466 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk() 482 sk_user_ns(NETLINK_CB(in_skb).sk), in inet_diag_dump_one_icsk() 483 NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk() 490 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk() 503 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument 514 err = handler->dump_one(in_skb, nlh, req); in inet_diag_cmd_exact() 516 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact() 1100 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument [all …]
|
D | route.c | 2777 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet_rtm_getroute() argument 2780 struct net *net = sock_net(in_skb->sk); in inet_rtm_getroute() 2894 err = fib_dump_info(skb, NETLINK_CB(in_skb).portid, in inet_rtm_getroute() 2900 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq); in inet_rtm_getroute() 2907 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_rtm_getroute()
|
D | devinet.c | 1933 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument 1937 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf() 1981 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf() 1990 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
|
/Linux-v4.19/crypto/ |
D | crypto_user.c | 43 struct sk_buff *in_skb; member 230 struct sk_buff *in_skb = info->in_skb; in crypto_report_alg() local 236 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg() 257 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report() argument 278 info.in_skb = in_skb; in crypto_report() 291 return nlmsg_unicast(crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report() 305 info.in_skb = cb->skb; in crypto_dump_report()
|
/Linux-v4.19/include/linux/ |
D | inet_diag.h | 21 int (*dump_one)(struct sk_buff *in_skb, 36 int (*destroy)(struct sk_buff *in_skb, 54 struct sk_buff *in_skb, const struct nlmsghdr *nlh,
|
D | netlink.h | 117 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
|
/Linux-v4.19/net/sctp/ |
D | diag.c | 271 struct sk_buff *in_skb = commp->skb; in sctp_tsp_dump_one() local 274 struct net *net = sock_net(in_skb->sk); in sctp_tsp_dump_one() 294 sk_user_ns(NETLINK_CB(in_skb).sk), in sctp_tsp_dump_one() 295 NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one() 305 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one() 449 static int sctp_diag_dump_one(struct sk_buff *in_skb, in sctp_diag_dump_one() argument 453 struct net *net = sock_net(in_skb->sk); in sctp_diag_dump_one() 456 .skb = in_skb, in sctp_diag_dump_one() 459 .net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN), in sctp_diag_dump_one()
|
/Linux-v4.19/net/dccp/ |
D | diag.c | 57 static int dccp_diag_dump_one(struct sk_buff *in_skb, in dccp_diag_dump_one() argument 61 return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); in dccp_diag_dump_one()
|
/Linux-v4.19/net/unix/ |
D | diag.c | 243 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument 251 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact() 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()
|
/Linux-v4.19/net/ipv6/ |
D | addrlabel.c | 494 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument 497 struct net *net = sock_net(in_skb->sk); in ip6addrlbl_get() 536 NETLINK_CB(in_skb).portid, in ip6addrlbl_get() 545 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6addrlbl_get()
|
D | addrconf.c | 600 static int inet6_netconf_get_devconf(struct sk_buff *in_skb, in inet6_netconf_get_devconf() argument 604 struct net *net = sock_net(in_skb->sk); in inet6_netconf_get_devconf() 648 NETLINK_CB(in_skb).portid, in inet6_netconf_get_devconf() 657 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_netconf_get_devconf() 5052 static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet6_rtm_getaddr() argument 5055 struct net *net = sock_net(in_skb->sk); in inet6_rtm_getaddr() 5089 err = inet6_fill_ifaddr(skb, ifa, NETLINK_CB(in_skb).portid, in inet6_rtm_getaddr() 5097 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_rtm_getaddr()
|
/Linux-v4.19/net/netlink/ |
D | af_netlink.c | 2352 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, in netlink_ack() argument 2360 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack() 2390 NETLINK_CB(in_skb).sk->sk_err = ENOBUFS; in netlink_ack() 2391 NETLINK_CB(in_skb).sk->sk_error_report(NETLINK_CB(in_skb).sk); in netlink_ack() 2395 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack() 2408 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack() 2409 (u8 *)extack->bad_attr >= in_skb->data + in netlink_ack() 2410 in_skb->len)) in netlink_ack() 2413 in_skb->data)); in netlink_ack() 2424 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_user.c | 786 struct sk_buff *in_skb; member 955 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local 961 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state() 998 info.in_skb = cb->skb; in xfrm_dump_sa() 1033 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument 1044 info.in_skb = in_skb; in xfrm_state_netlink() 1751 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local 1756 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy() 1805 info.in_skb = cb->skb; in xfrm_dump_policy() 1815 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument [all …]
|
/Linux-v4.19/net/sched/ |
D | cls_cgroup.c | 78 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
|
D | cls_flow.c | 391 static int flow_change(struct net *net, struct sk_buff *in_skb, in flow_change() argument 431 sk_user_ns(NETLINK_CB(in_skb).sk) != &init_user_ns) in flow_change()
|
D | cls_basic.c | 168 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
|
D | cls_matchall.c | 156 static int mall_change(struct net *net, struct sk_buff *in_skb, in mall_change() argument
|
D | cls_fw.c | 250 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
|
D | cls_route.c | 468 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
|
/Linux-v4.19/net/mpls/ |
D | af_mpls.c | 1212 static int mpls_netconf_get_devconf(struct sk_buff *in_skb, in mpls_netconf_get_devconf() argument 1216 struct net *net = sock_net(in_skb->sk); in mpls_netconf_get_devconf() 1249 NETLINK_CB(in_skb).portid, in mpls_netconf_get_devconf() 1258 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in mpls_netconf_get_devconf() 2113 static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in mpls_getroute() argument 2116 struct net *net = sock_net(in_skb->sk); in mpls_getroute() 2117 u32 portid = NETLINK_CB(in_skb).portid; in mpls_getroute()
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/ |
D | dma.c | 1011 struct sk_buff **in_skb) in dma_tx_fragment() argument 1013 struct sk_buff *skb = *in_skb; in dma_tx_fragment() 1083 *in_skb = bounce_skb; in dma_tx_fragment()
|
/Linux-v4.19/net/decnet/ |
D | dn_route.c | 1639 static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in dn_cache_getroute() argument 1642 struct net *net = sock_net(in_skb->sk); in dn_cache_getroute() 1709 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0); in dn_cache_getroute() 1715 return rtnl_unicast(skb, &init_net, NETLINK_CB(in_skb).portid); in dn_cache_getroute()
|