Home
last modified time | relevance | path

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

12

/Linux-v5.4/net/ipv4/
Dudp_diag.c30 static int udp_dump_one(struct udp_table *tbl, struct sk_buff *in_skb, in udp_dump_one() argument
37 struct net *net = sock_net(in_skb->sk); in udp_dump_one()
74 sk_user_ns(NETLINK_CB(in_skb).sk), in udp_dump_one()
75 NETLINK_CB(in_skb).portid, in udp_dump_one()
77 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in udp_dump_one()
83 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in udp_dump_one()
154 static int udp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in udp_diag_dump_one() argument
157 return udp_dump_one(&udp_table, in_skb, nlh, req); in udp_diag_dump_one()
168 static int __udp_diag_destroy(struct sk_buff *in_skb, in __udp_diag_destroy() argument
172 struct net *net = sock_net(in_skb->sk); in __udp_diag_destroy()
[all …]
Draw_diag.c90 static int raw_diag_dump_one(struct sk_buff *in_skb, in raw_diag_dump_one() argument
94 struct net *net = sock_net(in_skb->sk); in raw_diag_dump_one()
112 sk_user_ns(NETLINK_CB(in_skb).sk), in raw_diag_dump_one()
113 NETLINK_CB(in_skb).portid, in raw_diag_dump_one()
115 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
124 NETLINK_CB(in_skb).portid, in raw_diag_dump_one()
202 static int raw_diag_destroy(struct sk_buff *in_skb, in raw_diag_destroy() argument
205 struct net *net = sock_net(in_skb->sk); in raw_diag_destroy()
Dtcp_diag.c187 static int tcp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in tcp_diag_dump_one() argument
190 return inet_diag_dump_one_icsk(&tcp_hashinfo, in_skb, nlh, req); in tcp_diag_dump_one()
194 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()
Dinet_diag.c465 struct sk_buff *in_skb, in inet_diag_dump_one_icsk() argument
469 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk()
470 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk()
486 sk_user_ns(NETLINK_CB(in_skb).sk), in inet_diag_dump_one_icsk()
487 NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk()
494 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in inet_diag_dump_one_icsk()
507 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument
518 err = handler->dump_one(in_skb, nlh, req); in inet_diag_cmd_exact()
520 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact()
1106 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument
[all …]
Dnexthop.c1557 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop() argument
1560 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop()
1580 err = nh_fill_node(skb, nh, RTM_NEWNEXTHOP, NETLINK_CB(in_skb).portid, in rtm_get_nexthop()
1587 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop()
Ddevinet.c2158 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument
2162 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf()
2171 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2204 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf()
2213 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
Droute.c3074 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet_rtm_getroute() argument
3077 struct net *net = sock_net(in_skb->sk); in inet_rtm_getroute()
3094 err = inet_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in inet_rtm_getroute()
3190 err = fib_dump_info(skb, NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3196 NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3204 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_rtm_getroute()
/Linux-v5.4/crypto/
Dcrypto_user_base.c30 struct sk_buff *in_skb; member
157 struct sk_buff *in_skb = info->in_skb; in crypto_report_alg() local
163 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg()
184 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report() argument
187 struct net *net = sock_net(in_skb->sk); in crypto_report()
206 info.in_skb = in_skb; in crypto_report()
219 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report()
230 info.in_skb = cb->skb; in crypto_dump_report()
Dcrypto_user_stat.c25 struct sk_buff *in_skb; member
272 struct sk_buff *in_skb = info->in_skb; in crypto_reportstat_alg() local
278 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_reportstat_alg()
299 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_reportstat() argument
302 struct net *net = sock_net(in_skb->sk); in crypto_reportstat()
321 info.in_skb = in_skb; in crypto_reportstat()
334 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_reportstat()
/Linux-v5.4/include/linux/
Dinet_diag.h21 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,
Dnetlink.h126 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
/Linux-v5.4/include/crypto/internal/
Dcryptouser.h8 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs);
10 static inline int crypto_reportstat(struct sk_buff *in_skb, in crypto_reportstat() argument
/Linux-v5.4/net/sctp/
Ddiag.c257 struct sk_buff *in_skb = commp->skb; in sctp_tsp_dump_one() local
260 struct net *net = sock_net(in_skb->sk); in sctp_tsp_dump_one()
280 sk_user_ns(NETLINK_CB(in_skb).sk), in sctp_tsp_dump_one()
281 NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one()
291 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in sctp_tsp_dump_one()
435 static int sctp_diag_dump_one(struct sk_buff *in_skb, in sctp_diag_dump_one() argument
439 struct net *net = sock_net(in_skb->sk); in sctp_diag_dump_one()
442 .skb = in_skb, in sctp_diag_dump_one()
445 .net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN), in sctp_diag_dump_one()
/Linux-v5.4/net/dccp/
Ddiag.c54 static int dccp_diag_dump_one(struct sk_buff *in_skb, in dccp_diag_dump_one() argument
58 return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); in dccp_diag_dump_one()
/Linux-v5.4/net/unix/
Ddiag.c257 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument
265 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact()
288 err = sk_diag_fill(sk, rep, req, NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
298 err = netlink_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
/Linux-v5.4/net/ipv6/
Daddrlabel.c570 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument
573 struct net *net = sock_net(in_skb->sk); in ip6addrlbl_get()
582 err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack); in ip6addrlbl_get()
611 NETLINK_CB(in_skb).portid, in ip6addrlbl_get()
620 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6addrlbl_get()
/Linux-v5.4/net/netlink/
Daf_netlink.c2375 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, in netlink_ack() argument
2383 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2413 NETLINK_CB(in_skb).sk->sk_err = ENOBUFS; in netlink_ack()
2414 NETLINK_CB(in_skb).sk->sk_error_report(NETLINK_CB(in_skb).sk); in netlink_ack()
2418 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2431 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack()
2432 (u8 *)extack->bad_attr >= in_skb->data + in netlink_ack()
2433 in_skb->len)) in netlink_ack()
2436 in_skb->data)); in netlink_ack()
2447 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()
/Linux-v5.4/net/xfrm/
Dxfrm_user.c806 struct sk_buff *in_skb; member
975 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local
981 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state()
1018 info.in_skb = cb->skb; in xfrm_dump_sa()
1053 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument
1064 info.in_skb = in_skb; in xfrm_state_netlink()
1764 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local
1769 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy()
1818 info.in_skb = cb->skb; in xfrm_dump_policy()
1828 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument
[all …]
/Linux-v5.4/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()
2337 static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in mpls_getroute() argument
2340 struct net *net = sock_net(in_skb->sk); in mpls_getroute()
2341 u32 portid = NETLINK_CB(in_skb).portid; in mpls_getroute()
2356 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack); in mpls_getroute()
/Linux-v5.4/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
/Linux-v5.4/drivers/net/wireless/broadcom/b43legacy/
Ddma.c947 struct sk_buff **in_skb) in dma_tx_fragment() argument
949 struct sk_buff *skb = *in_skb; in dma_tx_fragment()
1019 *in_skb = bounce_skb; in dma_tx_fragment()
/Linux-v5.4/net/decnet/
Ddn_route.c1631 static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in dn_cache_getroute() argument
1634 struct net *net = sock_net(in_skb->sk); in dn_cache_getroute()
1701 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0); in dn_cache_getroute()
1707 return rtnl_unicast(skb, &init_net, NETLINK_CB(in_skb).portid); in dn_cache_getroute()

12