Home
last modified time | relevance | path

Searched refs:in_skb (Results 1 – 23 of 23) sorted by relevance

/net/ipv4/
Dudp_diag.c34 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 …]
Dtcp_diag.c45 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()
Dinet_diag.c408 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 …]
Ddevinet.c1845 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()
Droute.c2631 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/
Ddiag.c244 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/
Ddiag.c57 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/
Daddrlabel.c524 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()
Daddrconf.c595 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()
Droute.c3278 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/
Dxfrm_user.c779 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/
Daf_netlink.c2313 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/
Dcls_cgroup.c71 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
Dcls_flow.c375 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()
Dcls_basic.c161 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
Dcls_fw.c236 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
Dcls_bpf.c372 static int cls_bpf_change(struct net *net, struct sk_buff *in_skb, in cls_bpf_change() argument
Dcls_route.c474 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
Dcls_tcindex.c431 tcindex_change(struct net *net, struct sk_buff *in_skb, in tcindex_change() argument
Dcls_rsvp.h463 static int rsvp_change(struct net *net, struct sk_buff *in_skb, in rsvp_change() argument
Dcls_flower.c472 static int fl_change(struct net *net, struct sk_buff *in_skb, in fl_change() argument
Dcls_u32.c725 static int u32_change(struct net *net, struct sk_buff *in_skb, in u32_change() argument
/net/decnet/
Ddn_route.c1637 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()