/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() 76 sk_user_ns(NETLINK_CB(in_skb).sk), in udp_dump_one() 77 NETLINK_CB(in_skb).portid, in udp_dump_one() 79 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one() 85 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 | tcp_diag.c | 45 static int tcp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in tcp_diag_dump_one() argument 48 return inet_diag_dump_one_icsk(&tcp_hashinfo, in_skb, nlh, req); in tcp_diag_dump_one() 52 static int tcp_diag_destroy(struct sk_buff *in_skb, in tcp_diag_destroy() argument 55 struct net *net = sock_net(in_skb->sk); in tcp_diag_destroy()
|
D | inet_diag.c | 408 struct sk_buff *in_skb, in inet_diag_dump_one_icsk() argument 412 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk() 428 sk_user_ns(NETLINK_CB(in_skb).sk), in inet_diag_dump_one_icsk() 429 NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk() 431 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in inet_diag_dump_one_icsk() 437 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk() 450 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument 461 err = handler->dump_one(in_skb, nlh, req); in inet_diag_cmd_exact() 463 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact() 1029 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument [all …]
|
D | devinet.c | 1845 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument 1848 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf() 1892 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf() 1901 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
|
D | route.c | 2631 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) in inet_rtm_getroute() argument 2633 struct net *net = sock_net(in_skb->sk); in inet_rtm_getroute() 2727 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in inet_rtm_getroute() 2732 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_rtm_getroute()
|
/net/unix/ |
D | diag.c | 244 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument 252 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact() 275 err = sk_diag_fill(sk, rep, req, NETLINK_CB(in_skb).portid, in unix_diag_get_exact() 285 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
|
/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()
|
/net/ipv6/ |
D | addrlabel.c | 524 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh) in ip6addrlbl_get() argument 526 struct net *net = sock_net(in_skb->sk); in ip6addrlbl_get() 572 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in ip6addrlbl_get() 583 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6addrlbl_get()
|
D | addrconf.c | 595 static int inet6_netconf_get_devconf(struct sk_buff *in_skb, in inet6_netconf_get_devconf() argument 598 struct net *net = sock_net(in_skb->sk); in inet6_netconf_get_devconf() 642 NETLINK_CB(in_skb).portid, in inet6_netconf_get_devconf() 651 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_netconf_get_devconf() 4637 static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh) in inet6_rtm_getaddr() argument 4639 struct net *net = sock_net(in_skb->sk); in inet6_rtm_getaddr() 4674 err = inet6_fill_ifaddr(skb, ifa, NETLINK_CB(in_skb).portid, in inet6_rtm_getaddr() 4682 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_rtm_getaddr()
|
D | route.c | 3278 static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) in inet6_rtm_getroute() argument 3280 struct net *net = sock_net(in_skb->sk); in inet6_rtm_getroute() 3368 RTM_NEWROUTE, NETLINK_CB(in_skb).portid, in inet6_rtm_getroute() 3375 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_rtm_getroute()
|
/net/xfrm/ |
D | xfrm_user.c | 779 struct sk_buff *in_skb; member 909 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local 916 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state() 964 info.in_skb = cb->skb; in xfrm_dump_sa() 999 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument 1010 info.in_skb = in_skb; in xfrm_state_netlink() 1724 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local 1730 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy() 1789 info.in_skb = cb->skb; in xfrm_dump_policy() 1799 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument [all …]
|
/net/netlink/ |
D | af_netlink.c | 2313 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err) in netlink_ack() argument 2319 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack() 2327 skb = netlink_alloc_skb(in_skb->sk, nlmsg_total_size(payload), in netlink_ack() 2328 NETLINK_CB(in_skb).portid, GFP_KERNEL); in netlink_ack() 2332 sk = netlink_lookup(sock_net(in_skb->sk), in netlink_ack() 2333 in_skb->sk->sk_protocol, in netlink_ack() 2334 NETLINK_CB(in_skb).portid); in netlink_ack() 2343 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack() 2348 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()
|
/net/sched/ |
D | cls_cgroup.c | 71 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
|
D | cls_flow.c | 375 static int flow_change(struct net *net, struct sk_buff *in_skb, in flow_change() argument 417 sk_user_ns(NETLINK_CB(in_skb).sk) != &init_user_ns) in flow_change()
|
D | cls_basic.c | 161 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
|
D | cls_fw.c | 236 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
|
D | cls_bpf.c | 372 static int cls_bpf_change(struct net *net, struct sk_buff *in_skb, in cls_bpf_change() argument
|
D | cls_route.c | 474 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
|
D | cls_tcindex.c | 431 tcindex_change(struct net *net, struct sk_buff *in_skb, in tcindex_change() argument
|
D | cls_rsvp.h | 463 static int rsvp_change(struct net *net, struct sk_buff *in_skb, in rsvp_change() argument
|
D | cls_flower.c | 472 static int fl_change(struct net *net, struct sk_buff *in_skb, in fl_change() argument
|
D | cls_u32.c | 725 static int u32_change(struct net *net, struct sk_buff *in_skb, in u32_change() argument
|
/net/decnet/ |
D | dn_route.c | 1637 static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) in dn_cache_getroute() argument 1639 struct net *net = sock_net(in_skb->sk); in dn_cache_getroute() 1705 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0); in dn_cache_getroute() 1711 return rtnl_unicast(skb, &init_net, NETLINK_CB(in_skb).portid); in dn_cache_getroute()
|