• Home
  • Raw
  • Download

Lines Matching refs:fl6

505 	struct flowi6 fl6;  in l2tp_ip6_sendmsg()  local
526 memset(&fl6, 0, sizeof(fl6)); in l2tp_ip6_sendmsg()
528 fl6.flowi6_mark = sk->sk_mark; in l2tp_ip6_sendmsg()
529 fl6.flowi6_uid = sk->sk_uid; in l2tp_ip6_sendmsg()
544 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg()
545 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in l2tp_ip6_sendmsg()
546 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
563 fl6.flowi6_oif = lsa->l2tp_scope_id; in l2tp_ip6_sendmsg()
569 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg()
572 if (fl6.flowi6_oif == 0) in l2tp_ip6_sendmsg()
573 fl6.flowi6_oif = sk->sk_bound_dev_if; in l2tp_ip6_sendmsg()
581 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6, in l2tp_ip6_sendmsg()
587 if ((fl6.flowlabel & IPV6_FLOWLABEL_MASK) && !flowlabel) { in l2tp_ip6_sendmsg()
588 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
605 fl6.flowi6_proto = sk->sk_protocol; in l2tp_ip6_sendmsg()
607 fl6.daddr = *daddr; in l2tp_ip6_sendmsg()
609 fl6.daddr.s6_addr[15] = 0x1; /* :: means loopback (BSD'ism) */ in l2tp_ip6_sendmsg()
610 if (ipv6_addr_any(&fl6.saddr) && !ipv6_addr_any(&np->saddr)) in l2tp_ip6_sendmsg()
611 fl6.saddr = np->saddr; in l2tp_ip6_sendmsg()
613 final_p = fl6_update_dst(&fl6, opt, &final); in l2tp_ip6_sendmsg()
615 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr)) in l2tp_ip6_sendmsg()
616 fl6.flowi6_oif = np->mcast_oif; in l2tp_ip6_sendmsg()
617 else if (!fl6.flowi6_oif) in l2tp_ip6_sendmsg()
618 fl6.flowi6_oif = np->ucast_oif; in l2tp_ip6_sendmsg()
620 security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); in l2tp_ip6_sendmsg()
625 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
627 dst = ip6_dst_lookup_flow(sk, &fl6, final_p); in l2tp_ip6_sendmsg()
634 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in l2tp_ip6_sendmsg()
646 &fl6, (struct rt6_info *)dst, in l2tp_ip6_sendmsg()