Home
last modified time | relevance | path

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

12

/Linux-v4.19/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()
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 …]
Draw_diag.c92 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()
Dtcp_diag.c140 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()
Dinet_diag.c461 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 …]
Droute.c2777 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()
Ddevinet.c1933 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/
Dcrypto_user.c43 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/
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.h117 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
/Linux-v4.19/net/sctp/
Ddiag.c271 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/
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()
/Linux-v4.19/net/unix/
Ddiag.c243 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/
Daddrlabel.c494 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()
Daddrconf.c600 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/
Daf_netlink.c2352 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/
Dxfrm_user.c786 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/
Dcls_cgroup.c78 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
Dcls_flow.c391 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()
Dcls_basic.c168 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
Dcls_matchall.c156 static int mall_change(struct net *net, struct sk_buff *in_skb, in mall_change() argument
Dcls_fw.c250 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
Dcls_route.c468 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
/Linux-v4.19/net/mpls/
Daf_mpls.c1212 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/
Ddma.c1011 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/
Ddn_route.c1639 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()

12