Home
last modified time | relevance | path

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

12

/linux/net/ipv4/
H A 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, sock_net(in_skb->sk)->ipv4.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()
H A Draw_diag.c92 struct sk_buff *in_skb = cb->skb; in raw_diag_dump_one() local
98 net = sock_net(in_skb->sk); in raw_diag_dump_one()
113 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in raw_diag_dump_one()
121 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in raw_diag_dump_one()
199 static int raw_diag_destroy(struct sk_buff *in_skb, in raw_diag_destroy() argument
202 struct net *net = sock_net(in_skb->sk); in raw_diag_destroy()
H A Dinet_diag.c569 struct sk_buff *in_skb = cb->skb; in inet_diag_dump_one_icsk() local
570 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk()
571 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk()
592 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in inet_diag_dump_one_icsk()
602 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument
625 .skb = in_skb, in inet_diag_cmd_exact()
630 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact()
1395 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument
1408 return inet_diag_cmd_exact(SOCK_DIAG_BY_FAMILY, in_skb, nlh, in inet_diag_get_exact_compat()
H A Dtcp_diag.c202 static int tcp_diag_destroy(struct sk_buff *in_skb, in tcp_diag_destroy() argument
205 struct net *net = sock_net(in_skb->sk); in tcp_diag_destroy()
H A Dnexthop.c3291 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop() argument
3295 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop()
3322 err = nh_fill_node(skb, nh, RTM_NEWNEXTHOP, NETLINK_CB(in_skb).portid, in rtm_get_nexthop()
3329 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop()
3760 static int rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop_bucket() argument
3763 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop_bucket()
3793 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in rtm_get_nexthop_bucket()
3800 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop_bucket()
H A Ddevinet.c2228 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument
2232 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf()
2241 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2273 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf()
2282 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
H A Droute.c3270 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet_rtm_getroute() argument
3273 struct net *net = sock_net(in_skb->sk); in inet_rtm_getroute()
3291 err = inet_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in inet_rtm_getroute()
3418 err = fib_dump_info(skb, NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3422 skb, NETLINK_CB(in_skb).portid, in inet_rtm_getroute()
3430 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_rtm_getroute()
H A Dipmr.c2561 static int ipmr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ipmr_rtm_getroute() argument
2564 struct net *net = sock_net(in_skb->sk); in ipmr_rtm_getroute()
2573 err = ipmr_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in ipmr_rtm_getroute()
2602 err = ipmr_fill_mroute(mrt, skb, NETLINK_CB(in_skb).portid, in ipmr_rtm_getroute()
2608 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ipmr_rtm_getroute()
/linux/net/tls/
H A Dtls_strp.c42 tls_strp_skb_copy(struct tls_strparser *strp, struct sk_buff *in_skb, in tls_strp_skb_copy() argument
56 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_skb_copy()
64 skb_copy_header(skb, in_skb); in tls_strp_skb_copy()
211 struct sk_buff *in_skb, unsigned int offset, in tls_strp_copyin_frag() argument
225 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_copyin_frag()
263 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_copyin_frag()
281 struct sk_buff *in_skb, unsigned int offset, in tls_strp_copyin_skb() argument
295 nskb = tls_strp_skb_copy(strp, in_skb, offset, chunk); in tls_strp_copyin_skb()
336 static int tls_strp_copyin(read_descriptor_t *desc, struct sk_buff *in_skb, in tls_strp_copyin() argument
348 skb_copy_decrypted(skb, in_skb); in tls_strp_copyin()
[all …]
/linux/crypto/
H A Dcrypto_user.c29 struct sk_buff *in_skb; member
156 struct sk_buff *in_skb = info->in_skb; in crypto_report_alg() local
162 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg()
183 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report() argument
186 struct net *net = sock_net(in_skb->sk); in crypto_report()
205 info.in_skb = in_skb; in crypto_report()
220 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report()
231 info.in_skb = cb->skb; in crypto_dump_report()
389 static int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_reportstat() argument
/linux/net/unix/
H A Ddiag.c237 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument
241 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact()
267 err = sk_diag_fill(sk, rep, req, sk_user_ns(NETLINK_CB(in_skb).sk), in unix_diag_get_exact()
268 NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
278 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in unix_diag_get_exact()
/linux/net/mptcp/
H A Dmptcp_diag.c30 struct sk_buff *in_skb = cb->skb; in mptcp_diag_dump_one() local
37 net = sock_net(in_skb->sk); in mptcp_diag_dump_one()
53 netlink_net_capable(in_skb, CAP_NET_ADMIN)); in mptcp_diag_dump_one()
59 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in mptcp_diag_dump_one()
/linux/drivers/net/wireguard/
H A Dsocket.h22 struct sk_buff *in_skb,
H A Dsocket.c204 struct sk_buff *in_skb, void *buffer, in wg_socket_send_buffer_as_reply_to_skb() argument
211 if (unlikely(!in_skb)) in wg_socket_send_buffer_as_reply_to_skb()
213 ret = wg_socket_endpoint_from_skb(&endpoint, in_skb); in wg_socket_send_buffer_as_reply_to_skb()
/linux/include/linux/
H A Dinet_diag.h30 int (*destroy)(struct sk_buff *in_skb,
/linux/net/mpls/
H A 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()
2341 static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in mpls_getroute() argument
2344 struct net *net = sock_net(in_skb->sk); in mpls_getroute()
2345 u32 portid = NETLINK_CB(in_skb).portid; in mpls_getroute()
2360 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack); in mpls_getroute()
/linux/net/sched/
H A Dcls_cgroup.c78 static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, in cls_cgroup_change() argument
H A Dcls_flow.c390 static int flow_change(struct net *net, struct sk_buff *in_skb, in flow_change() argument
432 sk_user_ns(NETLINK_CB(in_skb).sk) != &init_user_ns) in flow_change()
H A Dcls_basic.c172 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
H A Dcls_fw.c239 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
H A Dcls_route.c476 static int route4_change(struct net *net, struct sk_buff *in_skb, in route4_change() argument
/linux/net/netlink/
H A Daf_netlink.c2446 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, in netlink_ack() argument
2453 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2474 rep = nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2495 nlmsg_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid); in netlink_ack()
2502 WRITE_ONCE(NETLINK_CB(in_skb).sk->sk_err, ENOBUFS); in netlink_ack()
2503 sk_error_report(NETLINK_CB(in_skb).sk); in netlink_ack()
/linux/net/ipv6/
H A Dip6mr.c98 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
2573 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6mr_rtm_getroute() argument
2576 struct net *net = sock_net(in_skb->sk); in ip6mr_rtm_getroute()
2585 err = ip6mr_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in ip6mr_rtm_getroute()
2614 err = ip6mr_fill_mroute(mrt, skb, NETLINK_CB(in_skb).portid, in ip6mr_rtm_getroute()
2621 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6mr_rtm_getroute()
H A Daddrconf.c653 static int inet6_netconf_get_devconf(struct sk_buff *in_skb, in inet6_netconf_get_devconf() argument
657 struct net *net = sock_net(in_skb->sk); in inet6_netconf_get_devconf()
666 err = inet6_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet6_netconf_get_devconf()
699 NETLINK_CB(in_skb).portid, in inet6_netconf_get_devconf()
708 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet6_netconf_get_devconf()
5520 static int inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr *nlh, in inet6_rtm_getaddr() argument
5523 struct net *tgt_net = sock_net(in_skb->sk); in inet6_rtm_getaddr()
5525 .portid = NETLINK_CB(in_skb).portid, in inet6_rtm_getaddr()
5540 err = inet6_rtm_valid_getaddr_req(in_skb, nlh, tb, extack); in inet6_rtm_getaddr()
5547 tgt_net = rtnl_get_net_ns_capable(NETLINK_CB(in_skb).sk, in inet6_rtm_getaddr()
[all …]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Ddma.c926 struct sk_buff **in_skb) in dma_tx_fragment() argument
928 struct sk_buff *skb = *in_skb; in dma_tx_fragment()
998 *in_skb = bounce_skb; in dma_tx_fragment()

12