Home
last modified time | relevance | path

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

/linux/net/can/
H A Draw.c926 struct sockcm_cookie sockc; in raw_sendmsg()
992 sockcm_init(&sockc, sk); in raw_sendmsg()
994 err = sock_cmsg_send(sk, msg, &sockc); in raw_sendmsg()
1000 skb->priority = sockc.priority; in raw_sendmsg()
1001 skb->mark = sockc.mark; in raw_sendmsg()
1002 skb->tstamp = sockc.transmit_time; in raw_sendmsg()
1004 skb_setup_tx_timestamp(skb, &sockc); in raw_sendmsg()
922 struct sockcm_cookie sockc; raw_sendmsg() local
/linux/net/ipv6/
H A Draw.c597 unsigned int flags, const struct sockcm_cookie *sockc) in rawv6_send_hdrinc() argument
624 skb->priority = sockc->priority; in rawv6_send_hdrinc()
625 skb->mark = sockc->mark; in rawv6_send_hdrinc()
626 skb_set_delivery_type_by_clockid(skb, sockc->transmit_time, sk->sk_clockid); in rawv6_send_hdrinc()
634 skb_setup_tx_timestamp(skb, sockc); in rawv6_send_hdrinc()
781 fl6.flowi6_mark = ipc6.sockc.mark; in rawv6_sendmsg()
865 fl6.flowi6_mark = ipc6.sockc.mark; in rawv6_sendmsg()
909 msg->msg_flags, &ipc6.sockc); in rawv6_sendmsg()
H A Dip6_output.c1440 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1441 cork->base.priority = ipc6->sockc.priority; in ip6_setup_cork()
1442 sock_tx_timestamp(sk, &ipc6->sockc, &cork->base.tx_flags); in ip6_setup_cork()
1443 if (ipc6->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip6_setup_cork()
1445 cork->base.ts_opt_id = ipc6->sockc.ts_opt_id; in ip6_setup_cork()
1448 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
H A Dicmp.c790 ipc6.sockc.mark = mark; in icmp6_send()
1011 ipc6.sockc.mark = mark; in icmpv6_echo_reply()
H A Ddatagram.c819 err = __sock_cmsg_send(sk, cmsg, &ipc6->sockc); in ip6_datagram_send_ctl()
H A Dudp.c1654 fl6->flowi6_mark = ipc6.sockc.mark; in udpv6_sendmsg()
/linux/net/ipv4/
H A Draw.c336 const struct sockcm_cookie *sockc) in raw_send_hdrinc() argument
368 skb->priority = sockc->priority; in raw_send_hdrinc()
369 skb->mark = sockc->mark; in raw_send_hdrinc()
370 skb_set_delivery_type_by_clockid(skb, sockc->transmit_time, sk->sk_clockid); in raw_send_hdrinc()
380 skb_setup_tx_timestamp(skb, sockc); in raw_send_hdrinc()
616 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, in raw_sendmsg()
653 &rt, msg->msg_flags, &ipc.sockc); in raw_sendmsg()
H A Dip_output.c1340 cork->mark = ipc->sockc.mark; in ip_setup_cork()
1341 cork->priority = ipc->sockc.priority; in ip_setup_cork()
1342 cork->transmit_time = ipc->sockc.transmit_time; in ip_setup_cork()
1344 sock_tx_timestamp(sk, &ipc->sockc, &cork->tx_flags); in ip_setup_cork()
1345 if (ipc->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip_setup_cork()
1347 cork->ts_opt_id = ipc->sockc.ts_opt_id; in ip_setup_cork()
1631 ipc.sockc.transmit_time = transmit_time; in ip_send_unicast_reply()
1662 ipc.sockc.mark = fl4.flowi4_mark; in ip_send_unicast_reply()
H A Dtcp.c481 static void tcp_tx_timestamp(struct sock *sk, struct sockcm_cookie *sockc) in tcp_tx_timestamp() argument
484 u32 tsflags = sockc->tsflags; in tcp_tx_timestamp()
493 sock_tx_timestamp(sk, sockc, &shinfo->tx_flags); in tcp_tx_timestamp()
1122 struct sockcm_cookie sockc; in tcp_sendmsg_locked() local
1132 sockc = (struct sockcm_cookie){ .tsflags = READ_ONCE(sk->sk_tsflags) }; in tcp_sendmsg_locked()
1134 sockc_err = sock_cmsg_send(sk, msg, &sockc); in tcp_sendmsg_locked()
1148 !sockc_err && sockc.dmabuf_id); in tcp_sendmsg_locked()
1158 if (!sockc_err && sockc.dmabuf_id) { in tcp_sendmsg_locked()
1159 binding = net_devmem_get_binding(sk, sockc.dmabuf_id); in tcp_sendmsg_locked()
1172 if (!sockc_err && sockc in tcp_sendmsg_locked()
[all...]
H A Dicmp.c447 ipc.sockc.mark = mark; in icmp_reply()
971 ipc.sockc.mark = mark; in __icmp_send()
H A Dudp.c1424 flowi4_init_output(fl4, ipc.oif, ipc.sockc.mark, in udp_sendmsg()
/linux/net/packet/
H A Daf_packet.c1970 struct sockcm_cookie sockc; in packet_sendmsg_spkt() local
2064 sockcm_init(&sockc, sk); in packet_sendmsg_spkt()
2066 err = sock_cmsg_send(sk, msg, &sockc); in packet_sendmsg_spkt()
2073 skb->priority = sockc.priority; in packet_sendmsg_spkt()
2074 skb->mark = sockc.mark; in packet_sendmsg_spkt()
2075 skb_set_delivery_type_by_clockid(skb, sockc.transmit_time, sk->sk_clockid); in packet_sendmsg_spkt()
2076 skb_setup_tx_timestamp(skb, &sockc); in packet_sendmsg_spkt()
2609 const struct sockcm_cookie *sockc) in tpacket_fill_skb() argument
2619 skb->priority = sockc->priority; in tpacket_fill_skb()
2620 skb->mark = sockc in tpacket_fill_skb()
2760 struct sockcm_cookie sockc; tpacket_snd() local
3011 struct sockcm_cookie sockc; packet_snd() local
[all...]
/linux/include/net/
H A Dsock.h1933 static inline void sockcm_init(struct sockcm_cookie *sockc, in sockcm_init() argument
1936 *sockc = (struct sockcm_cookie) { in sockcm_init()
1944 struct sockcm_cookie *sockc);
1946 struct sockcm_cookie *sockc);
2929 const struct sockcm_cookie *sockc, in _sock_tx_timestamp() argument
2932 __u32 tsflags = sockc->tsflags; in _sock_tx_timestamp()
2939 *tskey = sockc->ts_opt_id; in _sock_tx_timestamp()
2947 const struct sockcm_cookie *sockc, in sock_tx_timestamp() argument
2950 _sock_tx_timestamp(sk, sockc, tx_flags, NULL); in sock_tx_timestamp()
2954 const struct sockcm_cookie *sockc) in skb_setup_tx_timestamp() argument
[all …]
H A Dip.h85 struct sockcm_cookie sockc;
107 sockcm_init(&ipcm->sockc, &inet->sk);
78 struct sockcm_cookie sockc; global() member
/linux/net/bluetooth/
H A Dsco.c434 const struct sockcm_cookie *sockc) in sco_recv_frame()
445 hci_setup_tx_timestamp(skb, 1, sockc); in sco_recv_frame()
900 struct sockcm_cookie sockc; in sco_conn_defer_accept()
912 hci_sockcm_init(&sockc, sk); in sco_conn_defer_accept()
915 err = sock_cmsg_send(sk, msg, &sockc); in sco_conn_defer_accept()
927 err = sco_send_frame(sk, skb, &sockc); in sco_conn_defer_accept()
405 sco_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) sco_send_frame() argument
855 struct sockcm_cookie sockc; sco_sock_sendmsg() local
H A Dhci_conn.c3258 const struct sockcm_cookie *sockc) in hci_setup_tx_timestamp()
3272 if (!skb || !sockc || !sk || !key_offset) in hci_setup_tx_timestamp()
3275 sock_tx_timestamp(sk, sockc, &skb_shinfo(skb)->tx_flags); in hci_setup_tx_timestamp()
3280 if (sockc->tsflags & SOF_TIMESTAMPING_OPT_ID && in hci_setup_tx_timestamp()
3281 sockc->tsflags & SOF_TIMESTAMPING_TX_RECORD_MASK) { in hci_setup_tx_timestamp()
3282 if (sockc->tsflags & SOCKCM_FLAG_TS_OPT_ID) { in hci_setup_tx_timestamp()
3283 skb_shinfo(skb)->tskey = sockc->ts_opt_id;
3250 hci_setup_tx_timestamp(struct sk_buff * skb,size_t key_offset,const struct sockcm_cookie * sockc) hci_setup_tx_timestamp() argument
H A Dl2cap_sock.c1182 struct sockcm_cookie sockc; in l2cap_sock_sendmsg() local
1197 hci_sockcm_init(&sockc, sk); in l2cap_sock_sendmsg()
1200 err = sock_cmsg_send(sk, msg, &sockc); in l2cap_sock_sendmsg()
1212 err = l2cap_chan_send(chan, msg, len, &sockc); in l2cap_sock_sendmsg()
H A Diso.c629 const struct sockcm_cookie *sockc) in iso_send_frame()
650 hci_setup_tx_timestamp(skb, 1, sockc); in iso_recv_frame()
1616 struct sockcm_cookie sockc; in iso_sock_sendmsg()
1629 hci_sockcm_init(&sockc, sk); in iso_sock_sendmsg()
1632 err = sock_cmsg_send(sk, msg, &sockc); in iso_sock_sendmsg()
1682 err = iso_send_frame(sk, skb, &sockc); in iso_conn_big_sync()
613 iso_send_frame(struct sock * sk,struct sk_buff * skb,const struct sockcm_cookie * sockc) iso_send_frame() argument
1584 struct sockcm_cookie sockc; iso_sock_sendmsg() local
H A Dl2cap_core.c2569 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp() argument
2575 hci_setup_tx_timestamp(skb, len, sockc); in l2cap_tx_timestamp()
2577 hci_setup_tx_timestamp(skb, 1, sockc); in l2cap_tx_timestamp()
2581 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp_seg() argument
2588 l2cap_tx_timestamp(skb_peek_tail(queue), sockc, len); in l2cap_tx_timestamp_seg()
2590 l2cap_tx_timestamp(skb, sockc, len); in l2cap_tx_timestamp_seg()
2594 const struct sockcm_cookie *sockc) in l2cap_chan_send() argument
2609 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
2634 l2cap_tx_timestamp_seg(&seg_queue, sockc, len); in l2cap_chan_send()
2657 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
[all …]
/linux/net/core/
H A Dsock.c3037 struct sockcm_cookie *sockc) in __sock_cmsg_send() argument
3050 sockc->mark = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3061 sockc->tsflags &= ~SOF_TIMESTAMPING_TX_RECORD_MASK; in __sock_cmsg_send()
3062 sockc->tsflags |= tsflags; in __sock_cmsg_send()
3078 sockc->transmit_time = 0; in __sock_cmsg_send()
3098 sockc->transmit_time = max_t(ktime_t, txtime, tmin); in __sock_cmsg_send()
3109 sockc->ts_opt_id = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3110 sockc->tsflags |= SOCKCM_FLAG_TS_OPT_ID; in __sock_cmsg_send()
3121 sockc->priority = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3126 sockc in __sock_cmsg_send()
3136 sock_cmsg_send(struct sock * sk,struct msghdr * msg,struct sockcm_cookie * sockc) sock_cmsg_send() argument
[all...]
/linux/include/net/bluetooth/
H A Dl2cap.h967 const struct sockcm_cookie *sockc);
H A Dhci_core.h1652 const struct sockcm_cookie *sockc);
1654 static inline void hci_sockcm_init(struct sockcm_cookie *sockc, struct sock *sk) in hci_sockcm_init()
1656 *sockc = (struct sockcm_cookie) { in hci_sockcm_init()
1653 hci_sockcm_init(struct sockcm_cookie * sockc,struct sock * sk) hci_sockcm_init() argument