Home
last modified time | relevance | path

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

12

/linux-6.12.1/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, 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()
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()
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()
Dinet_diag.c567 struct sk_buff *in_skb = cb->skb; in inet_diag_dump_one_icsk() local
568 bool net_admin = netlink_net_capable(in_skb, CAP_NET_ADMIN); in inet_diag_dump_one_icsk()
569 struct net *net = sock_net(in_skb->sk); in inet_diag_dump_one_icsk()
590 err = nlmsg_unicast(net->diag_nlsk, rep, NETLINK_CB(in_skb).portid); in inet_diag_dump_one_icsk()
600 static int inet_diag_cmd_exact(int cmd, struct sk_buff *in_skb, in inet_diag_cmd_exact() argument
623 .skb = in_skb, in inet_diag_cmd_exact()
628 err = handler->destroy(in_skb, req); in inet_diag_cmd_exact()
1393 static int inet_diag_get_exact_compat(struct sk_buff *in_skb, in inet_diag_get_exact_compat() argument
1406 return inet_diag_cmd_exact(SOCK_DIAG_BY_FAMILY, in_skb, nlh, in inet_diag_get_exact_compat()
Dnexthop.c3295 static int rtm_get_nexthop(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop() argument
3299 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop()
3326 err = nh_fill_node(skb, nh, RTM_NEWNEXTHOP, NETLINK_CB(in_skb).portid, in rtm_get_nexthop()
3333 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop()
3767 static int rtm_get_nexthop_bucket(struct sk_buff *in_skb, struct nlmsghdr *nlh, in rtm_get_nexthop_bucket() argument
3770 struct net *net = sock_net(in_skb->sk); in rtm_get_nexthop_bucket()
3800 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in rtm_get_nexthop_bucket()
3807 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in rtm_get_nexthop_bucket()
Ddevinet.c2207 static int inet_netconf_get_devconf(struct sk_buff *in_skb, in inet_netconf_get_devconf() argument
2211 struct net *net = sock_net(in_skb->sk); in inet_netconf_get_devconf()
2220 err = inet_netconf_valid_get_req(in_skb, nlh, tb, extack); in inet_netconf_get_devconf()
2252 NETLINK_CB(in_skb).portid, in inet_netconf_get_devconf()
2261 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in inet_netconf_get_devconf()
/linux-6.12.1/crypto/
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-6.12.1/net/tls/
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-6.12.1/net/unix/
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-6.12.1/net/mptcp/
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-6.12.1/net/ipv6/
Daddrlabel.c582 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get() argument
585 struct net *net = sock_net(in_skb->sk); in ip6addrlbl_get()
594 err = ip6addrlbl_valid_get_req(in_skb, nlh, tb, extack); in ip6addrlbl_get()
623 NETLINK_CB(in_skb).portid, in ip6addrlbl_get()
632 err = rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6addrlbl_get()
Dip6mr.c98 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,
2540 static int ip6mr_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6mr_rtm_getroute() argument
2543 struct net *net = sock_net(in_skb->sk); in ip6mr_rtm_getroute()
2552 err = ip6mr_rtm_valid_getroute_req(in_skb, nlh, tb, extack); in ip6mr_rtm_getroute()
2581 err = ip6mr_fill_mroute(mrt, skb, NETLINK_CB(in_skb).portid, in ip6mr_rtm_getroute()
2588 return rtnl_unicast(skb, net, NETLINK_CB(in_skb).portid); in ip6mr_rtm_getroute()
/linux-6.12.1/drivers/net/wireguard/
Dsocket.h22 struct sk_buff *in_skb,
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-6.12.1/net/netlink/
Daf_netlink.c2180 netlink_ack_tlv_fill(struct sk_buff *in_skb, struct sk_buff *skb, in netlink_ack_tlv_fill() argument
2194 !WARN_ON((u8 *)extack->bad_attr < in_skb->data || in netlink_ack_tlv_fill()
2195 (u8 *)extack->bad_attr >= in_skb->data + in_skb->len)) in netlink_ack_tlv_fill()
2205 !WARN_ON((u8 *)extack->miss_nest < in_skb->data || in netlink_ack_tlv_fill()
2206 (u8 *)extack->miss_nest > in_skb->data + in_skb->len)) in netlink_ack_tlv_fill()
2449 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, in netlink_ack() argument
2456 struct netlink_sock *nlk = nlk_sk(NETLINK_CB(in_skb).sk); in netlink_ack()
2477 rep = nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2494 netlink_ack_tlv_fill(in_skb, skb, nlh, err, extack); in netlink_ack()
2498 nlmsg_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid); in netlink_ack()
[all …]
/linux-6.12.1/include/linux/
Dinet_diag.h30 int (*destroy)(struct sk_buff *in_skb,
Dnetlink.h222 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
/linux-6.12.1/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()
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-6.12.1/net/xfrm/
Dxfrm_user.c1027 struct sk_buff *in_skb; member
1315 struct sk_buff *in_skb = sp->in_skb; in dump_one_state() local
1322 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_state()
1370 info.in_skb = cb->skb; in xfrm_dump_sa()
1414 static struct sk_buff *xfrm_state_netlink(struct sk_buff *in_skb, in xfrm_state_netlink() argument
1425 info.in_skb = in_skb; in xfrm_state_netlink()
2214 struct sk_buff *in_skb = sp->in_skb; in dump_one_policy() local
2220 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, sp->nlmsg_seq, in dump_one_policy()
2283 info.in_skb = cb->skb; in xfrm_dump_policy()
2293 static struct sk_buff *xfrm_policy_netlink(struct sk_buff *in_skb, in xfrm_policy_netlink() argument
[all …]
/linux-6.12.1/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.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()
Dcls_basic.c172 static int basic_change(struct net *net, struct sk_buff *in_skb, in basic_change() argument
Dcls_matchall.c162 static int mall_change(struct net *net, struct sk_buff *in_skb, in mall_change() argument
Dcls_fw.c239 static int fw_change(struct net *net, struct sk_buff *in_skb, in fw_change() argument
/linux-6.12.1/drivers/net/wireless/broadcom/b43legacy/
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