Lines Matching refs:fl6
498 struct flowi6 fl6; in l2tp_ip6_sendmsg() local
516 memset(&fl6, 0, sizeof(fl6)); in l2tp_ip6_sendmsg()
518 fl6.flowi6_mark = READ_ONCE(sk->sk_mark); in l2tp_ip6_sendmsg()
519 fl6.flowi6_uid = sk->sk_uid; in l2tp_ip6_sendmsg()
532 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg()
533 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in l2tp_ip6_sendmsg()
534 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
550 fl6.flowi6_oif = lsa->l2tp_scope_id; in l2tp_ip6_sendmsg()
556 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg()
559 if (fl6.flowi6_oif == 0) in l2tp_ip6_sendmsg()
560 fl6.flowi6_oif = READ_ONCE(sk->sk_bound_dev_if); in l2tp_ip6_sendmsg()
568 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); in l2tp_ip6_sendmsg()
573 if ((fl6.flowlabel & IPV6_FLOWLABEL_MASK) && !flowlabel) { in l2tp_ip6_sendmsg()
574 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
591 fl6.flowi6_proto = sk->sk_protocol; in l2tp_ip6_sendmsg()
593 fl6.daddr = *daddr; in l2tp_ip6_sendmsg()
595 fl6.daddr.s6_addr[15] = 0x1; /* :: means loopback (BSD'ism) */ in l2tp_ip6_sendmsg()
596 if (ipv6_addr_any(&fl6.saddr) && !ipv6_addr_any(&np->saddr)) in l2tp_ip6_sendmsg()
597 fl6.saddr = np->saddr; in l2tp_ip6_sendmsg()
599 final_p = fl6_update_dst(&fl6, opt, &final); in l2tp_ip6_sendmsg()
601 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr)) in l2tp_ip6_sendmsg()
602 fl6.flowi6_oif = np->mcast_oif; in l2tp_ip6_sendmsg()
603 else if (!fl6.flowi6_oif) in l2tp_ip6_sendmsg()
604 fl6.flowi6_oif = np->ucast_oif; in l2tp_ip6_sendmsg()
606 security_sk_classify_flow(sk, flowi6_to_flowi_common(&fl6)); in l2tp_ip6_sendmsg()
611 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
613 dst = ip6_dst_lookup_flow(sock_net(sk), sk, &fl6, final_p); in l2tp_ip6_sendmsg()
620 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in l2tp_ip6_sendmsg()
633 &fl6, (struct rt6_info *)dst, in l2tp_ip6_sendmsg()
650 dst_confirm_neigh(dst, &fl6.daddr); in l2tp_ip6_sendmsg()