Home
last modified time | relevance | path

Searched refs:sockc (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.15/net/can/
H A Draw.c906 struct sockcm_cookie sockc; in raw_sendmsg() local
960 sockcm_init(&sockc, sk); in raw_sendmsg()
962 err = sock_cmsg_send(sk, msg, &sockc); in raw_sendmsg()
968 skb->priority = sockc.priority; in raw_sendmsg()
969 skb->mark = sockc.mark; in raw_sendmsg()
970 skb->tstamp = sockc.transmit_time; in raw_sendmsg()
972 skb_setup_tx_timestamp(skb, &sockc); in raw_sendmsg()
/linux-6.15/net/ipv6/
H A Draw.c595 unsigned int flags, const struct sockcm_cookie *sockc) in rawv6_send_hdrinc() argument
622 skb->priority = sockc->priority; in rawv6_send_hdrinc()
623 skb->mark = sockc->mark; in rawv6_send_hdrinc()
624 skb_set_delivery_type_by_clockid(skb, sockc->transmit_time, sk->sk_clockid); in rawv6_send_hdrinc()
632 skb_setup_tx_timestamp(skb, sockc); in rawv6_send_hdrinc()
779 fl6.flowi6_mark = ipc6.sockc.mark; in rawv6_sendmsg()
863 fl6.flowi6_mark = ipc6.sockc.mark; in rawv6_sendmsg()
907 msg->msg_flags, &ipc6.sockc); in rawv6_sendmsg()
H A Dip6_output.c1404 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1405 cork->base.priority = ipc6->sockc.priority; in ip6_setup_cork()
1406 sock_tx_timestamp(sk, &ipc6->sockc, &cork->base.tx_flags); in ip6_setup_cork()
1407 if (ipc6->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip6_setup_cork()
1409 cork->base.ts_opt_id = ipc6->sockc.ts_opt_id; in ip6_setup_cork()
1412 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
H A Dping.c144 fl6.flowi6_mark = ipc6.sockc.mark; in ping_v6_sendmsg()
H A Dicmp.c601 ipc6.sockc.mark = mark; in icmp6_send()
809 ipc6.sockc.mark = mark; in icmpv6_echo_reply()
H A Ddatagram.c780 err = __sock_cmsg_send(sk, cmsg, &ipc6->sockc); in ip6_datagram_send_ctl()
H A Dudp.c1658 fl6->flowi6_mark = ipc6.sockc.mark; in udpv6_sendmsg()
/linux-6.15/net/ipv4/
H A Draw.c329 const struct sockcm_cookie *sockc) in raw_send_hdrinc() argument
361 skb->priority = sockc->priority; in raw_send_hdrinc()
362 skb->mark = sockc->mark; in raw_send_hdrinc()
363 skb_set_delivery_type_by_clockid(skb, sockc->transmit_time, sk->sk_clockid); in raw_send_hdrinc()
373 skb_setup_tx_timestamp(skb, sockc); in raw_send_hdrinc()
608 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, in raw_sendmsg()
645 &rt, msg->msg_flags, &ipc.sockc); in raw_sendmsg()
H A Dip_output.c1326 cork->mark = ipc->sockc.mark; in ip_setup_cork()
1327 cork->priority = ipc->sockc.priority; in ip_setup_cork()
1328 cork->transmit_time = ipc->sockc.transmit_time; in ip_setup_cork()
1330 sock_tx_timestamp(sk, &ipc->sockc, &cork->tx_flags); in ip_setup_cork()
1331 if (ipc->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip_setup_cork()
1333 cork->ts_opt_id = ipc->sockc.ts_opt_id; in ip_setup_cork()
1616 ipc.sockc.transmit_time = transmit_time; in ip_send_unicast_reply()
1647 ipc.sockc.mark = fl4.flowi4_mark; in ip_send_unicast_reply()
H A Dtcp.c484 static void tcp_tx_timestamp(struct sock *sk, struct sockcm_cookie *sockc) in tcp_tx_timestamp() argument
487 u32 tsflags = sockc->tsflags; in tcp_tx_timestamp()
493 sock_tx_timestamp(sk, sockc, &shinfo->tx_flags); in tcp_tx_timestamp()
1065 struct sockcm_cookie sockc; in tcp_sendmsg_locked() local
1134 sockc = (struct sockcm_cookie) { .tsflags = READ_ONCE(sk->sk_tsflags)}; in tcp_sendmsg_locked()
1136 err = sock_cmsg_send(sk, msg, &sockc); in tcp_sendmsg_locked()
1333 tcp_tx_timestamp(sk, &sockc); in tcp_sendmsg_locked()
H A Dicmp.c431 ipc.sockc.mark = mark; in icmp_reply()
742 ipc.sockc.mark = mark; in __icmp_send()
H A Dip_sockglue.c270 err = __sock_cmsg_send(sk, cmsg, &ipc->sockc); in ip_cmsg_send()
318 ipc->sockc.priority = rt_tos2priority(ipc->tos); in ip_cmsg_send()
H A Dping.c781 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, in ping_v4_sendmsg()
/linux-6.15/net/packet/
H A Daf_packet.c2007 struct sockcm_cookie sockc; in packet_sendmsg_spkt() local
2096 sockcm_init(&sockc, sk); in packet_sendmsg_spkt()
2105 skb->priority = sockc.priority; in packet_sendmsg_spkt()
2106 skb->mark = sockc.mark; in packet_sendmsg_spkt()
2638 skb->mark = sockc->mark; in tpacket_fill_skb()
2775 struct sockcm_cookie sockc; in tpacket_snd() local
2827 sockcm_init(&sockc, &po->sk); in tpacket_snd()
3003 struct sockcm_cookie sockc; in packet_snd() local
3041 sockcm_init(&sockc, sk); in packet_snd()
3114 skb->priority = sockc.priority; in packet_snd()
[all …]
/linux-6.15/include/net/
H A Dsock.h1857 static inline void sockcm_init(struct sockcm_cookie *sockc, in sockcm_init() argument
1860 *sockc = (struct sockcm_cookie) { in sockcm_init()
1868 struct sockcm_cookie *sockc);
1870 struct sockcm_cookie *sockc);
2724 const struct sockcm_cookie *sockc, in _sock_tx_timestamp() argument
2727 __u32 tsflags = sockc->tsflags; in _sock_tx_timestamp()
2734 *tskey = sockc->ts_opt_id; in _sock_tx_timestamp()
2744 const struct sockcm_cookie *sockc, in sock_tx_timestamp() argument
2747 _sock_tx_timestamp(sk, sockc, tx_flags, NULL); in sock_tx_timestamp()
2751 const struct sockcm_cookie *sockc) in skb_setup_tx_timestamp() argument
[all …]
H A Dip.h77 struct sockcm_cookie sockc; member
99 sockcm_init(&ipcm->sockc, &inet->sk); in ipcm_init_sk()
H A Dipv6.h361 struct sockcm_cookie sockc; member
378 sockcm_init(&ipc6->sockc, sk); in ipcm6_init_sk()
/linux-6.15/net/bluetooth/
H A Dsco.c382 const struct sockcm_cookie *sockc) in sco_send_frame() argument
393 hci_setup_tx_timestamp(skb, 1, sockc); in sco_send_frame()
789 struct sockcm_cookie sockc; in sco_sock_sendmsg() local
801 hci_sockcm_init(&sockc, sk); in sco_sock_sendmsg()
804 err = sock_cmsg_send(sk, msg, &sockc); in sco_sock_sendmsg()
816 err = sco_send_frame(sk, skb, &sockc); in sco_sock_sendmsg()
H A Diso.c522 const struct sockcm_cookie *sockc) in iso_send_frame() argument
543 hci_setup_tx_timestamp(skb, 1, sockc); in iso_send_frame()
1354 struct sockcm_cookie sockc; in iso_sock_sendmsg() local
1367 hci_sockcm_init(&sockc, sk); in iso_sock_sendmsg()
1370 err = sock_cmsg_send(sk, msg, &sockc); in iso_sock_sendmsg()
1420 err = iso_send_frame(sk, skb, &sockc); in iso_sock_sendmsg()
H A Dhci_conn.c2905 const struct sockcm_cookie *sockc) in hci_setup_tx_timestamp() argument
2919 if (!skb || !sockc || !sk || !key_offset) in hci_setup_tx_timestamp()
2922 sock_tx_timestamp(sk, sockc, &skb_shinfo(skb)->tx_flags); in hci_setup_tx_timestamp()
2927 if (sockc->tsflags & SOF_TIMESTAMPING_OPT_ID && in hci_setup_tx_timestamp()
2928 sockc->tsflags & SOF_TIMESTAMPING_TX_RECORD_MASK) { in hci_setup_tx_timestamp()
2929 if (sockc->tsflags & SOCKCM_FLAG_TS_OPT_ID) { in hci_setup_tx_timestamp()
2930 skb_shinfo(skb)->tskey = sockc->ts_opt_id; in hci_setup_tx_timestamp()
H A Dl2cap_sock.c1109 struct sockcm_cookie sockc; in l2cap_sock_sendmsg() local
1124 hci_sockcm_init(&sockc, sk); in l2cap_sock_sendmsg()
1127 err = sock_cmsg_send(sk, msg, &sockc); in l2cap_sock_sendmsg()
1139 err = l2cap_chan_send(chan, msg, len, &sockc); in l2cap_sock_sendmsg()
H A Dl2cap_core.c2520 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp() argument
2526 hci_setup_tx_timestamp(skb, len, sockc); in l2cap_tx_timestamp()
2528 hci_setup_tx_timestamp(skb, 1, sockc); in l2cap_tx_timestamp()
2532 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp_seg() argument
2539 l2cap_tx_timestamp(skb_peek_tail(queue), sockc, len); in l2cap_tx_timestamp_seg()
2541 l2cap_tx_timestamp(skb, sockc, len); in l2cap_tx_timestamp_seg()
2545 const struct sockcm_cookie *sockc) in l2cap_chan_send() argument
2560 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
2585 l2cap_tx_timestamp_seg(&seg_queue, sockc, len); in l2cap_chan_send()
2608 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
[all …]
/linux-6.15/net/core/
H A Dsock.c2969 struct sockcm_cookie *sockc) in __sock_cmsg_send() argument
2982 sockc->mark = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
2993 sockc->tsflags &= ~SOF_TIMESTAMPING_TX_RECORD_MASK; in __sock_cmsg_send()
2994 sockc->tsflags |= tsflags; in __sock_cmsg_send()
3001 sockc->transmit_time = get_unaligned((u64 *)CMSG_DATA(cmsg)); in __sock_cmsg_send()
3011 sockc->ts_opt_id = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3012 sockc->tsflags |= SOCKCM_FLAG_TS_OPT_ID; in __sock_cmsg_send()
3023 sockc->priority = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3033 struct sockcm_cookie *sockc) in sock_cmsg_send() argument
3043 ret = __sock_cmsg_send(sk, cmsg, sockc); in sock_cmsg_send()
/linux-6.15/include/net/bluetooth/
H A Dl2cap.h959 const struct sockcm_cookie *sockc);
H A Dhci_core.h1584 const struct sockcm_cookie *sockc);
1586 static inline void hci_sockcm_init(struct sockcm_cookie *sockc, struct sock *sk) in hci_sockcm_init() argument
1588 *sockc = (struct sockcm_cookie) { in hci_sockcm_init()

12