Home
last modified time | relevance | path

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

/Linux-v5.4/net/l2tp/
Dl2tp_ip6.c501 struct ipcm6_cookie ipc6; in l2tp_ip6_sendmsg() local
525 ipcm6_init(&ipc6); in l2tp_ip6_sendmsg()
571 ipc6.opt = opt; in l2tp_ip6_sendmsg()
573 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); in l2tp_ip6_sendmsg()
594 ipc6.opt = opt; in l2tp_ip6_sendmsg()
613 if (ipc6.tclass < 0) in l2tp_ip6_sendmsg()
614 ipc6.tclass = np->tclass; in l2tp_ip6_sendmsg()
616 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
624 if (ipc6.hlimit < 0) in l2tp_ip6_sendmsg()
625 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in l2tp_ip6_sendmsg()
[all …]
/Linux-v5.4/net/ipv6/
Draw.c780 struct ipcm6_cookie ipc6; in rawv6_sendmsg() local
811 ipcm6_init(&ipc6); in rawv6_sendmsg()
812 ipc6.sockc.tsflags = sk->sk_tsflags; in rawv6_sendmsg()
813 ipc6.sockc.mark = sk->sk_mark; in rawv6_sendmsg()
871 ipc6.opt = opt; in rawv6_sendmsg()
873 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); in rawv6_sendmsg()
895 fl6.flowi6_mark = ipc6.sockc.mark; in rawv6_sendmsg()
923 if (ipc6.tclass < 0) in rawv6_sendmsg()
924 ipc6.tclass = np->tclass; in rawv6_sendmsg()
926 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in rawv6_sendmsg()
[all …]
Dping.c60 struct ipcm6_cookie ipc6; in ping_v6_sendmsg() local
116 ipcm6_init_sk(&ipc6, np); in ping_v6_sendmsg()
117 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in ping_v6_sendmsg()
138 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in ping_v6_sendmsg()
142 0, &ipc6, &fl6, rt, in ping_v6_sendmsg()
Dudp.c1227 struct ipcm6_cookie ipc6; in udpv6_sendmsg() local
1236 ipcm6_init(&ipc6); in udpv6_sendmsg()
1237 ipc6.gso_size = up->gso_size; in udpv6_sendmsg()
1238 ipc6.sockc.tsflags = sk->sk_tsflags; in udpv6_sendmsg()
1239 ipc6.sockc.mark = sk->sk_mark; in udpv6_sendmsg()
1362 fl6.flowi6_mark = ipc6.sockc.mark; in udpv6_sendmsg()
1369 ipc6.opt = opt; in udpv6_sendmsg()
1371 err = udp_cmsg_send(sk, msg, &ipc6.gso_size); in udpv6_sendmsg()
1374 &ipc6); in udpv6_sendmsg()
1395 ipc6.opt = opt; in udpv6_sendmsg()
[all …]
Dip6_output.c1236 struct inet6_cork *v6_cork, struct ipcm6_cookie *ipc6, in ip6_setup_cork() argument
1241 struct ipv6_txoptions *opt = ipc6->opt; in ip6_setup_cork()
1283 v6_cork->hop_limit = ipc6->hlimit; in ip6_setup_cork()
1284 v6_cork->tclass = ipc6->tclass; in ip6_setup_cork()
1298 cork->base.gso_size = ipc6->gso_size; in ip6_setup_cork()
1300 cork->base.mark = ipc6->sockc.mark; in ip6_setup_cork()
1301 sock_tx_timestamp(sk, ipc6->sockc.tsflags, &cork->base.tx_flags); in ip6_setup_cork()
1307 cork->base.transmit_time = ipc6->sockc.transmit_time; in ip6_setup_cork()
1321 unsigned int flags, struct ipcm6_cookie *ipc6) in __ip6_append_data() argument
1373 if (cork->length + length > mtu - headersize && ipc6->dontfrag && in __ip6_append_data()
[all …]
Dicmp.c436 struct ipcm6_cookie ipc6; in icmp6_send() local
554 ipcm6_init_sk(&ipc6, np); in icmp6_send()
555 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in icmp6_send()
561 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmp6_send()
581 &ipc6, &fl6, (struct rt6_info *)dst, in icmp6_send()
684 struct ipcm6_cookie ipc6; in icmpv6_echo_reply() local
748 ipcm6_init_sk(&ipc6, np); in icmpv6_echo_reply()
749 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in icmpv6_echo_reply()
750 ipc6.tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in icmpv6_echo_reply()
754 sizeof(struct icmp6hdr), &ipc6, &fl6, in icmpv6_echo_reply()
Ddatagram.c739 struct ipcm6_cookie *ipc6) in ip6_datagram_send_ctl() argument
745 struct ipv6_txoptions *opt = ipc6->opt; in ip6_datagram_send_ctl()
758 err = __sock_cmsg_send(sk, msg, cmsg, &ipc6->sockc); in ip6_datagram_send_ctl()
970 ipc6->hlimit = *(int *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
971 if (ipc6->hlimit < -1 || ipc6->hlimit > 0xff) { in ip6_datagram_send_ctl()
991 ipc6->tclass = tc; in ip6_datagram_send_ctl()
1009 ipc6->dontfrag = df; in ip6_datagram_send_ctl()
Dip6_flowlabel.c394 struct ipcm6_cookie ipc6; in fl_create() local
411 ipc6.opt = fl->opt; in fl_create()
412 err = ip6_datagram_send_ctl(net, sk, &msg, &flowi6, &ipc6); in fl_create()
Dipv6_sockglue.c501 struct ipcm6_cookie ipc6; in do_ipv6_setsockopt() local
531 ipc6.opt = opt; in do_ipv6_setsockopt()
533 retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6); in do_ipv6_setsockopt()
/Linux-v5.4/include/net/
Dtransp_v6.h45 struct flowi6 *fl6, struct ipcm6_cookie *ipc6);
Dipv6.h352 static inline void ipcm6_init(struct ipcm6_cookie *ipc6) in ipcm6_init() argument
354 *ipc6 = (struct ipcm6_cookie) { in ipcm6_init()
361 static inline void ipcm6_init_sk(struct ipcm6_cookie *ipc6, in ipcm6_init_sk() argument
364 *ipc6 = (struct ipcm6_cookie) { in ipcm6_init_sk()
992 struct ipcm6_cookie *ipc6, struct flowi6 *fl6,
1008 struct ipcm6_cookie *ipc6, struct flowi6 *fl6,