Home
last modified time | relevance | path

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

12

/net/ipv4/
Dudp_diag.c32 struct sk_buff *in_skb = cb->skb; in udp_dump_one() local
36 struct net *net = sock_net(in_skb->sk); in udp_dump_one()
74 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one()
80 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in udp_dump_one()
167 static int __udp_diag_destroy(struct sk_buff *in_skb, in __udp_diag_destroy() argument
171 struct net *net = sock_net(in_skb->sk); in __udp_diag_destroy()
225 static int udp_diag_destroy(struct sk_buff *in_skb, in udp_diag_destroy() argument
228 return __udp_diag_destroy(in_skb, req, &udp_table); in udp_diag_destroy()
231 static int udplite_diag_destroy(struct sk_buff *in_skb, in udplite_diag_destroy() argument
234 return __udp_diag_destroy(in_skb, req, &udplite_table); in udplite_diag_destroy()
Draw_diag.c93 struct sk_buff *in_skb = cb->skb; in raw_diag_dump_one() local
99 net = sock_net(in_skb->sk); in raw_diag_dump_one()
114 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
122 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in raw_diag_dump_one()
198 static int raw_diag_destroy(struct sk_buff *in_skb, in raw_diag_destroy() argument
201 struct net *net = sock_net(in_skb->sk); in raw_diag_destroy()
Dinet_diag.c558 struct sk_buff *in_skb = cb->skb; in inet_diag_dump_one_icsk() local
559 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk()
560 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk()
581 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in inet_diag_dump_one_icsk()
591 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument
613 .skb = in_skb, in inet_diag_cmd_exact()
618 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact()
1289 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument
1301 return inet_diag_cmd_exact(SOCK_DIAG_BY_FAMILY, in_skb, nlh, in inet_diag_get_exact_compat()
Dtcp_diag.c194 static int tcp_diag_destroy(struct sk_buff *in_skb, in tcp_diag_destroy() argument
197 struct net *net = sock_net(in_skb->sk); in tcp_diag_destroy()
Dnexthop.c3015 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop() argument
3018 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop()
3038 err = nh_fill_node(skb, nh, RTM_NEWNEXTHOP, NETLINK_CB(in_skb).portid, in rtm_get_nexthop()
3045 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop()
3488 static int rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop_bucket() argument
3491 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop_bucket()
3521 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in rtm_get_nexthop_bucket()
3528 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop_bucket()
Ddevinet.c2175 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument
2179 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf()
2188 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2221 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf()
2230 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
Droute.c3292 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet_rtm_getroute() argument
3295 struct net *net = sock_net(in_skb->sk); in inet_rtm_getroute()
3312 err = inet_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in inet_rtm_getroute()
3439 err = fib_dump_info(skb, NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3443 NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3451 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_rtm_getroute()
Dipmr.c2517 static int ipmr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ipmr_rtm_getroute() argument
2520 struct net *net = sock_net(in_skb->sk); in ipmr_rtm_getroute()
2529 err = ipmr_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in ipmr_rtm_getroute()
2558 err = ipmr_fill_mroute(mrt, skb, NETLINK_CB(in_skb).portid, in ipmr_rtm_getroute()
2564 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ipmr_rtm_getroute()
/net/unix/
Ddiag.c260 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument
268 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact()
291 err = sk_diag_fill(sk, rep, req, sk_user_ns(NETLINK_CB(in_skb).sk), in unix_diag_get_exact()
292 NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
302 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in unix_diag_get_exact()
/net/mptcp/
Dmptcp_diag.c31 struct sk_buff *in_skb = cb->skb; in mptcp_diag_dump_one() local
38 net = sock_net(in_skb->sk); in mptcp_diag_dump_one()
54 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in mptcp_diag_dump_one()
60 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in mptcp_diag_dump_one()
/net/ipv6/
Daddrlabel.c579 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument
582 struct net *net = sock_net(in_skb->sk); in ip6addrlbl_get()
591 err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack); in ip6addrlbl_get()
620 NETLINK_CB(in_skb).portid, in ip6addrlbl_get()
629 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6addrlbl_get()
Daddrconf.c649 static int inet6_netconf_get_devconf(struct sk_buff *in_skb, in inet6_netconf_get_devconf() argument
653 struct net *net = sock_net(in_skb->sk); in inet6_netconf_get_devconf()
662 err = inet6_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet6_netconf_get_devconf()
695 NETLINK_CB(in_skb).portid, in inet6_netconf_get_devconf()
704 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_netconf_get_devconf()
5455 static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet6_rtm_getaddr() argument
5458 struct net *tgt_net = sock_net(in_skb->sk); in inet6_rtm_getaddr()
5460 .portid = NETLINK_CB(in_skb).portid, in inet6_rtm_getaddr()
5474 err = inet6_rtm_valid_getaddr_req(in_skb, nlh, tb, extack); in inet6_rtm_getaddr()
5481 tgt_net = rtnl_get_net_ns_capable(NETLINK_CB(in_skb).sk, in inet6_rtm_getaddr()
[all …]
Droute.c6010 static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet6_rtm_getroute() argument
6013 struct net *net = sock_net(in_skb->sk); in inet6_rtm_getroute()
6024 err = inet6_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in inet6_rtm_getroute()
6132 NETLINK_CB(in_skb).portid, in inet6_rtm_getroute()
6137 NETLINK_CB(in_skb).portid, in inet6_rtm_getroute()
6149 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_rtm_getroute()
/net/netlink/
Daf_netlink.c2407 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, in netlink_ack() argument
2415 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2442 NETLINK_CB(in_skb).sk->sk_err = ENOBUFS; in netlink_ack()
2443 sk_error_report(NETLINK_CB(in_skb).sk); in netlink_ack()
2447 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2459 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack()
2460 (u8 *)extack->bad_attr >= in_skb->data + in netlink_ack()
2461 in_skb->len)) in netlink_ack()
2475 nlmsg_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid); in netlink_ack()
/net/mpls/
Daf_mpls.c1251 static int mpls_netconf_get_devconf(struct sk_buff *in_skb, in mpls_netconf_get_devconf() argument
1255 struct net *net = sock_net(in_skb->sk); in mpls_netconf_get_devconf()
1263 err = mpls_netconf_valid_get_req(in_skb, nlh, tb, extack); in mpls_netconf_get_devconf()
1286 NETLINK_CB(in_skb).portid, in mpls_netconf_get_devconf()
1295 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in mpls_netconf_get_devconf()
2366 static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in mpls_getroute() argument
2369 struct net *net = sock_net(in_skb->sk); in mpls_getroute()
2370 u32 portid = NETLINK_CB(in_skb).portid; in mpls_getroute()
2385 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack); in mpls_getroute()
/net/xfrm/
Dxfrm_user.c815 struct sk_buff *in_skb; member
1086 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local
1093 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state()
1141 info.in_skb = cb->skb; in xfrm_dump_sa()
1185 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument
1196 info.in_skb = in_skb; in xfrm_state_netlink()
1920 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local
1926 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy()
1987 info.in_skb = cb->skb; in xfrm_dump_policy()
1997 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument
[all …]
/net/sched/
Dcls_cgroup.c76 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
Dcls_flow.c387 static int flow_change(struct net *net, struct sk_buff *in_skb, in flow_change() argument
429 sk_user_ns(NETLINK_CB(in_skb).sk) != &init_user_ns) in flow_change()
Dcls_basic.c170 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
Dcls_matchall.c182 static int mall_change(struct net *net, struct sk_buff *in_skb, in mall_change() argument
Dcls_fw.c237 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
Dcls_route.c470 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
Dcls_bpf.c405 static int cls_bpf_change(struct net *net, struct sk_buff *in_skb, in cls_bpf_change() argument
/net/core/
Dneighbour.c2885 static int neigh_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in neigh_get() argument
2888 struct net *net = sock_net(in_skb->sk); in neigh_get()
2923 return pneigh_get_reply(net, pn, NETLINK_CB(in_skb).portid, in neigh_get()
2938 err = neigh_get_reply(net, neigh, NETLINK_CB(in_skb).portid, in neigh_get()
Drtnetlink.c4550 static int rtnl_fdb_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtnl_fdb_get() argument
4555 struct net *net = sock_net(in_skb->sk); in rtnl_fdb_get()
4635 NETLINK_CB(in_skb).portid, in rtnl_fdb_get()
4640 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtnl_fdb_get()

12