Home
last modified time | relevance | path

Searched refs:ipc6 (Results 1 – 10 of 10) sorted by relevance

/linux/net/ipv6/
H A Dping.c75 struct ipcm6_cookie ipc6; in ping_v6_sendmsg() local
121 ipcm6_init_sk(&ipc6, sk); in ping_v6_sendmsg()
122 ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); in ping_v6_sendmsg()
123 ipc6.sockc.mark = READ_ONCE(sk->sk_mark); in ping_v6_sendmsg()
131 ipc6.opt = &opt; in ping_v6_sendmsg()
133 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); in ping_v6_sendmsg()
140 ipc6.opt = NULL; in ping_v6_sendmsg()
146 fl6.flowi6_mark = ipc6.sockc.mark; in ping_v6_sendmsg()
152 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in ping_v6_sendmsg()
173 if (ipc6.hlimit < 0) in ping_v6_sendmsg()
[all …]
H A Dip6_output.c1342 struct inet6_cork *v6_cork, struct ipcm6_cookie *ipc6, in ip6_setup_cork() argument
1347 struct ipv6_txoptions *nopt, *opt = ipc6->opt; in ip6_setup_cork()
1387 v6_cork->hop_limit = ipc6->hlimit; in ip6_setup_cork()
1388 v6_cork->tclass = ipc6->tclass; in ip6_setup_cork()
1401 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1403 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1404 sock_tx_timestamp(sk, &ipc6->sockc, &cork->base.tx_flags); in ip6_setup_cork()
1405 if (ipc6->sockc.tsflags & SOCKCM_FLAG_TS_OPT_ID) { in ip6_setup_cork()
1407 cork->base.ts_opt_id = ipc6->sockc.ts_opt_id; in ip6_setup_cork()
1410 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
[all …]
H A Dicmp.c464 struct ipcm6_cookie ipc6; in icmp6_send() local
597 ipcm6_init_sk(&ipc6, sk); in icmp6_send()
598 ipc6.sockc.mark = mark; in icmp6_send()
599 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in icmp6_send()
605 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send()
625 &ipc6, &fl6, dst_rt6_info(dst), in icmp6_send()
731 struct ipcm6_cookie ipc6; in icmpv6_echo_reply() local
802 ipcm6_init_sk(&ipc6, sk); in icmpv6_echo_reply()
803 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmpv6_echo_reply()
804 ipc6.tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in icmpv6_echo_reply()
[all …]
H A Dudp.c1438 struct ipcm6_cookie ipc6; in udpv6_sendmsg() local
1447 ipcm6_init(&ipc6); in udpv6_sendmsg()
1448 ipc6.gso_size = READ_ONCE(up->gso_size); in udpv6_sendmsg()
1449 ipc6.sockc.tsflags = READ_ONCE(sk->sk_tsflags); in udpv6_sendmsg()
1450 ipc6.sockc.mark = READ_ONCE(sk->sk_mark); in udpv6_sendmsg()
1580 ipc6.opt = opt; in udpv6_sendmsg()
1582 err = udp_cmsg_send(sk, msg, &ipc6.gso_size); in udpv6_sendmsg()
1585 &ipc6); in udpv6_sendmsg()
1607 ipc6.opt = opt; in udpv6_sendmsg()
1610 fl6->flowi6_mark = ipc6.sockc.mark; in udpv6_sendmsg()
[all …]
H A Ddatagram.c761 struct ipcm6_cookie *ipc6) in ip6_datagram_send_ctl() argument
767 struct ipv6_txoptions *opt = ipc6->opt; in ip6_datagram_send_ctl()
780 err = __sock_cmsg_send(sk, cmsg, &ipc6->sockc); in ip6_datagram_send_ctl()
992 ipc6->hlimit = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
993 if (ipc6->hlimit < -1 || ipc6->hlimit > 0xff) { in ip6_datagram_send_ctl()
1013 ipc6->tclass = tc; in ip6_datagram_send_ctl()
1031 ipc6->dontfrag = df; in ip6_datagram_send_ctl()
H A Dip6_flowlabel.c397 struct ipcm6_cookie ipc6; in fl_create() local
415 ipc6.opt = fl->opt; in fl_create()
416 err = ip6_datagram_send_ctl(net, sk, &msg, &flowi6, &ipc6); in fl_create()
H A Dipv6_sockglue.c837 struct ipcm6_cookie ipc6; in do_ipv6_setsockopt() local
868 ipc6.opt = opt; in do_ipv6_setsockopt()
870 retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6); in do_ipv6_setsockopt()
/linux/net/l2tp/
H A Dl2tp_ip6.c528 struct ipcm6_cookie ipc6; in l2tp_ip6_sendmsg() local
550 ipcm6_init(&ipc6); in l2tp_ip6_sendmsg()
595 ipc6.opt = opt; in l2tp_ip6_sendmsg()
597 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); in l2tp_ip6_sendmsg()
618 ipc6.opt = opt; in l2tp_ip6_sendmsg()
637 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg()
638 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg()
640 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
648 if (ipc6.hlimit < 0) in l2tp_ip6_sendmsg()
649 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in l2tp_ip6_sendmsg()
[all …]
/linux/include/net/
H A Dtransp_v6.h45 struct flowi6 *fl6, struct ipcm6_cookie *ipc6);
H A Dipv6.h366 static inline void ipcm6_init(struct ipcm6_cookie *ipc6) in ipcm6_init() argument
368 *ipc6 = (struct ipcm6_cookie) { in ipcm6_init()
375 static inline void ipcm6_init_sk(struct ipcm6_cookie *ipc6, in ipcm6_init_sk() argument
378 *ipc6 = (struct ipcm6_cookie) { in ipcm6_init_sk()
1100 struct ipcm6_cookie *ipc6, struct flowi6 *fl6,
1116 struct ipcm6_cookie *ipc6,