Home
last modified time | relevance | path

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

/linux/net/can/
H A Draw.c920 struct sockcm_cookie sockc; in raw_sendmsg() local
986 sockcm_init(&sockc, sk); in raw_sendmsg()
988 err = sock_cmsg_send(sk, msg, &sockc); in raw_sendmsg()
994 skb->priority = sockc.priority; in raw_sendmsg()
995 skb->mark = sockc.mark; in raw_sendmsg()
996 skb->tstamp = sockc.transmit_time; in raw_sendmsg()
998 skb_setup_tx_timestamp(skb, &sockc); in raw_sendmsg()
/linux/net/packet/
H A Daf_packet.c1953 struct sockcm_cookie sockc; in packet_sendmsg_spkt() local
2042 sockcm_init(&sockc, sk); in packet_sendmsg_spkt()
2044 err = sock_cmsg_send(sk, msg, &sockc); in packet_sendmsg_spkt()
2051 skb->priority = sockc.priority; in packet_sendmsg_spkt()
2052 skb->mark = sockc.mark; in packet_sendmsg_spkt()
2053 skb_set_delivery_type_by_clockid(skb, sockc.transmit_time, sk->sk_clockid); in packet_sendmsg_spkt()
2054 skb_setup_tx_timestamp(skb, &sockc); in packet_sendmsg_spkt()
2571 const struct sockcm_cookie *sockc) in tpacket_fill_skb() argument
2583 skb->priority = sockc->priority; in tpacket_fill_skb()
2584 skb->mark = sockc->mark; in tpacket_fill_skb()
[all …]
/linux/net/ipv4/
H A Dip_output.c1333 cork->mark = ipc->sockc.mark; in ip_setup_cork()
1334 cork->priority = ipc->sockc.priority; in ip_setup_cork()
1335 cork->transmit_time = ipc->sockc.transmit_time; in ip_setup_cork()
1337 sock_tx_timestamp(sk, &ipc->sockc, &cork->tx_flags); in ip_setup_cork()
1338 if (ipc->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip_setup_cork()
1340 cork->ts_opt_id = ipc->sockc.ts_opt_id; in ip_setup_cork()
1624 ipc.sockc.transmit_time = transmit_time; in ip_send_unicast_reply()
1655 ipc.sockc.mark = fl4.flowi4_mark; in ip_send_unicast_reply()
H A Dtcp.c490 static void tcp_tx_timestamp(struct sock *sk, struct sockcm_cookie *sockc) in tcp_tx_timestamp() argument
493 u32 tsflags = sockc->tsflags; in tcp_tx_timestamp()
502 sock_tx_timestamp(sk, sockc, &shinfo->tx_flags); in tcp_tx_timestamp()
1135 struct sockcm_cookie sockc; in tcp_sendmsg_locked() local
1145 sockc = (struct sockcm_cookie){ .tsflags = READ_ONCE(sk->sk_tsflags) }; in tcp_sendmsg_locked()
1147 sockc_err = sock_cmsg_send(sk, msg, &sockc); in tcp_sendmsg_locked()
1161 !sockc_err && sockc.dmabuf_id); in tcp_sendmsg_locked()
1171 if (!sockc_err && sockc.dmabuf_id) { in tcp_sendmsg_locked()
1172 binding = net_devmem_get_binding(sk, sockc.dmabuf_id); in tcp_sendmsg_locked()
1185 if (!sockc_err && sockc.dmabuf_id && in tcp_sendmsg_locked()
[all …]
H A Dicmp.c446 ipc.sockc.mark = mark; in icmp_reply()
956 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.c783 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, in ping_v4_sendmsg()
H A Dudp.c1444 flowi4_init_output(fl4, ipc.oif, ipc.sockc.mark, in udp_sendmsg()
/linux/include/net/
H A Dsock.h1920 static inline void sockcm_init(struct sockcm_cookie *sockc,
1923 *sockc = (struct sockcm_cookie) {
1931 struct sockcm_cookie *sockc);
1933 struct sockcm_cookie *sockc);
2882 * @sockc: pointer to socket cmsg cookie to get timestamping info in _sock_tx_timestamp()
2889 const struct sockcm_cookie *sockc, in _sock_tx_timestamp()
2892 __u32 tsflags = sockc->tsflags; in _sock_tx_timestamp()
2899 *tskey = sockc->ts_opt_id; in sock_tx_timestamp()
2907 const struct sockcm_cookie *sockc, in skb_setup_tx_timestamp()
2910 _sock_tx_timestamp(sk, sockc, tx_flag in skb_setup_tx_timestamp()
1911 sockcm_init(struct sockcm_cookie * sockc,const struct sock * sk) sockcm_init() argument
2880 _sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags,__u32 * tskey) _sock_tx_timestamp() argument
2898 sock_tx_timestamp(struct sock * sk,const struct sockcm_cookie * sockc,__u8 * tx_flags) sock_tx_timestamp() argument
2905 skb_setup_tx_timestamp(struct sk_buff * skb,const struct sockcm_cookie * sockc) skb_setup_tx_timestamp() argument
[all...]
H A Dipv6.h348 struct sockcm_cookie sockc; member
365 sockcm_init(&ipc6->sockc, sk); in ipcm6_init_sk()
/linux/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()
796 struct sockcm_cookie sockc; in sco_sock_sendmsg() local
808 hci_sockcm_init(&sockc, sk); in sco_sock_sendmsg()
811 err = sock_cmsg_send(sk, msg, &sockc); in sco_sock_sendmsg()
823 err = sco_send_frame(sk, skb, &sockc); in sco_sock_sendmsg()
H A Diso.c540 const struct sockcm_cookie *sockc) in iso_send_frame() argument
561 hci_setup_tx_timestamp(skb, 1, sockc); in iso_send_frame()
1472 struct sockcm_cookie sockc; in iso_sock_sendmsg() local
1485 hci_sockcm_init(&sockc, sk); in iso_sock_sendmsg()
1488 err = sock_cmsg_send(sk, msg, &sockc); in iso_sock_sendmsg()
1538 err = iso_send_frame(sk, skb, &sockc); in iso_sock_sendmsg()
H A Dhci_conn.c3120 const struct sockcm_cookie *sockc) in hci_setup_tx_timestamp() argument
3134 if (!skb || !sockc || !sk || !key_offset) in hci_setup_tx_timestamp()
3137 sock_tx_timestamp(sk, sockc, &skb_shinfo(skb)->tx_flags); in hci_setup_tx_timestamp()
3142 if (sockc->tsflags & SOF_TIMESTAMPING_OPT_ID && in hci_setup_tx_timestamp()
3143 sockc->tsflags & SOF_TIMESTAMPING_TX_RECORD_MASK) { in hci_setup_tx_timestamp()
3144 if (sockc->tsflags & SOCKCM_FLAG_TS_OPT_ID) { in hci_setup_tx_timestamp()
3145 skb_shinfo(skb)->tskey = sockc->ts_opt_id; in hci_setup_tx_timestamp()
H A Dl2cap_sock.c1127 struct sockcm_cookie sockc; in l2cap_sock_sendmsg() local
1142 hci_sockcm_init(&sockc, sk); in l2cap_sock_sendmsg()
1145 err = sock_cmsg_send(sk, msg, &sockc); in l2cap_sock_sendmsg()
1157 err = l2cap_chan_send(chan, msg, len, &sockc); in l2cap_sock_sendmsg()
H A Dl2cap_core.c2515 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp() argument
2521 hci_setup_tx_timestamp(skb, len, sockc); in l2cap_tx_timestamp()
2523 hci_setup_tx_timestamp(skb, 1, sockc); in l2cap_tx_timestamp()
2527 const struct sockcm_cookie *sockc, in l2cap_tx_timestamp_seg() argument
2534 l2cap_tx_timestamp(skb_peek_tail(queue), sockc, len); in l2cap_tx_timestamp_seg()
2536 l2cap_tx_timestamp(skb, sockc, len); in l2cap_tx_timestamp_seg()
2540 const struct sockcm_cookie *sockc) in l2cap_chan_send() argument
2555 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
2580 l2cap_tx_timestamp_seg(&seg_queue, sockc, len); in l2cap_chan_send()
2603 l2cap_tx_timestamp(skb, sockc, len); in l2cap_chan_send()
[all …]
/linux/net/core/
H A Dsock.c3010 struct sockcm_cookie *sockc) in __sock_cmsg_send() argument
3023 sockc->mark = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3034 sockc->tsflags &= ~SOF_TIMESTAMPING_TX_RECORD_MASK; in __sock_cmsg_send()
3035 sockc->tsflags |= tsflags; in __sock_cmsg_send()
3042 sockc->transmit_time = get_unaligned((u64 *)CMSG_DATA(cmsg)); in __sock_cmsg_send()
3052 sockc->ts_opt_id = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3053 sockc->tsflags |= SOCKCM_FLAG_TS_OPT_ID; in __sock_cmsg_send()
3064 sockc->priority = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3069 sockc->dmabuf_id = *(u32 *)CMSG_DATA(cmsg); in __sock_cmsg_send()
3079 struct sockcm_cookie *sockc) in sock_cmsg_send() argument
[all …]
/linux/net/ipv6/
H A Dip6_output.c1405 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1406 cork->base.priority = ipc6->sockc.priority; in ip6_setup_cork()
1407 sock_tx_timestamp(sk, &ipc6->sockc, &cork->base.tx_flags); in ip6_setup_cork()
1408 if (ipc6->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip6_setup_cork()
1410 cork->base.ts_opt_id = ipc6->sockc.ts_opt_id; in ip6_setup_cork()
1413 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
H A Dicmp.c790 ipc6.sockc.mark = mark; in icmp6_send()
1008 ipc6.sockc.mark = mark; in icmpv6_echo_reply()
/linux/include/net/bluetooth/
H A Dl2cap.h958 const struct sockcm_cookie *sockc);
H A Dhci_core.h1635 const struct sockcm_cookie *sockc); in hci_sockcm_init() argument
1637 static inline void hci_sockcm_init(struct sockcm_cookie *sockc, struct sock *sk) in hci_sockcm_init()
1639 *sockc = (struct sockcm_cookie) { in hci_sockcm_init()