Home
last modified time | relevance | path

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

12

/openbmc/linux/crypto/
H A Dcrypto_user_stat.c21 struct sk_buff *in_skb; member
109 struct sk_buff *in_skb = info->in_skb; in crypto_reportstat_alg() local
115 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_reportstat_alg()
136 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_reportstat() argument
139 struct net *net = sock_net(in_skb->sk); in crypto_reportstat()
158 info.in_skb = in_skb; in crypto_reportstat()
173 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_reportstat()
H A 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()
221 return nlmsg_unicast(net->crypto_nlsk, skb, NETLINK_CB(in_skb).portid); in crypto_report()
232 info.in_skb = cb->skb; in crypto_dump_report()
/openbmc/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.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()
1290 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument
1302 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.c3037 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop() argument
3040 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop()
3060 err = nh_fill_node(skb, nh, RTM_NEWNEXTHOP, NETLINK_CB(in_skb).portid, in rtm_get_nexthop()
3067 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop()
3504 static int rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop_bucket() argument
3507 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop_bucket()
3537 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in rtm_get_nexthop_bucket()
3544 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop_bucket()
H A Ddevinet.c2202 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument
2206 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf()
2215 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2248 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf()
2257 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
/openbmc/linux/net/tls/
H A Dtls_strp.c41 tls_strp_skb_copy(struct tls_strparser *strp, struct sk_buff *in_skb, in tls_strp_skb_copy() argument
55 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_skb_copy()
63 skb_copy_header(skb, in_skb); in tls_strp_skb_copy()
210 struct sk_buff *in_skb, unsigned int offset, in tls_strp_copyin_frag() argument
224 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_copyin_frag()
262 WARN_ON_ONCE(skb_copy_bits(in_skb, offset, in tls_strp_copyin_frag()
280 struct sk_buff *in_skb, unsigned int offset, in tls_strp_copyin_skb() argument
294 nskb = tls_strp_skb_copy(strp, in_skb, offset, chunk); in tls_strp_copyin_skb()
347 skb_copy_decrypted(skb, in_skb); in tls_strp_copyin()
349 strp->mixed_decrypted |= !!skb_cmp_decrypted(skb, in_skb); in tls_strp_copyin()
[all …]
/openbmc/linux/include/crypto/internal/
H A 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
/openbmc/linux/net/mptcp/
H A 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()
/openbmc/linux/net/unix/
H A Ddiag.c258 static int unix_diag_get_exact(struct sk_buff *in_skb, in unix_diag_get_exact() argument
262 struct net *net = sock_net(in_skb->sk); in unix_diag_get_exact()
288 err = sk_diag_fill(sk, rep, req, sk_user_ns(NETLINK_CB(in_skb).sk), in unix_diag_get_exact()
289 NETLINK_CB(in_skb).portid, in unix_diag_get_exact()
299 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in unix_diag_get_exact()
/openbmc/linux/net/ipv6/
H A 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()
H A Dip6mr.c98 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
2544 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6mr_rtm_getroute() argument
2547 struct net *net = sock_net(in_skb->sk); in ip6mr_rtm_getroute()
2556 err = ip6mr_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in ip6mr_rtm_getroute()
2585 err = ip6mr_fill_mroute(mrt, skb, NETLINK_CB(in_skb).portid, in ip6mr_rtm_getroute()
2592 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6mr_rtm_getroute()
/openbmc/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()
/openbmc/linux/net/netlink/
H A Daf_netlink.c2427 netlink_ack_tlv_fill(struct sk_buff *in_skb, struct sk_buff *skb, in netlink_ack_tlv_fill() argument
2441 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack_tlv_fill()
2442 (u8 *)extack->bad_attr >= in_skb->data + in_skb->len)) in netlink_ack_tlv_fill()
2452 !WARN_ON((u8 *)extack->miss_nest < in_skb->data || in netlink_ack_tlv_fill()
2453 (u8 *)extack->miss_nest > in_skb->data + in_skb->len)) in netlink_ack_tlv_fill()
2465 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2486 rep = nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2503 netlink_ack_tlv_fill(in_skb, skb, nlh, err, extack); in netlink_ack()
2507 nlmsg_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid); in netlink_ack()
2514 WRITE_ONCE(NETLINK_CB(in_skb).sk->sk_err, ENOBUFS); in netlink_ack()
[all …]
/openbmc/linux/include/linux/
H A Dinet_diag.h29 int (*destroy)(struct sk_buff *in_skb,
H A Dnetlink.h223 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
/openbmc/linux/net/mpls/
H A Daf_mpls.c1252 static int mpls_netconf_get_devconf(struct sk_buff *in_skb, in mpls_netconf_get_devconf() argument
1256 struct net *net = sock_net(in_skb->sk); in mpls_netconf_get_devconf()
1264 err = mpls_netconf_valid_get_req(in_skb, nlh, tb, extack); in mpls_netconf_get_devconf()
1287 NETLINK_CB(in_skb).portid, in mpls_netconf_get_devconf()
1296 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in mpls_netconf_get_devconf()
2358 static int mpls_getroute(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in mpls_getroute() argument
2361 struct net *net = sock_net(in_skb->sk); in mpls_getroute()
2362 u32 portid = NETLINK_CB(in_skb).portid; in mpls_getroute()
2377 err = mpls_valid_getroute_req(in_skb, in_nlh, tb, extack); in mpls_getroute()
/openbmc/linux/net/xfrm/
H A Dxfrm_user.c920 struct sk_buff *in_skb; member
1194 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local
1201 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state()
1249 info.in_skb = cb->skb; in xfrm_dump_sa()
1293 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument
1304 info.in_skb = in_skb; in xfrm_state_netlink()
2090 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local
2096 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy()
2159 info.in_skb = cb->skb; in xfrm_dump_policy()
2169 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument
[all …]
/openbmc/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.c389 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()
H A Dcls_basic.c172 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
/openbmc/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