• Home
  • Raw
  • Download

Lines Matching refs:fl6

544 static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,  in rawv6_push_pending_frames()  argument
609 csum = csum_ipv6_magic(&fl6->saddr, &fl6->daddr, in rawv6_push_pending_frames()
610 total_len, fl6->flowi6_proto, tmp_csum); in rawv6_push_pending_frames()
612 if (csum == 0 && fl6->flowi6_proto == IPPROTO_UDP) in rawv6_push_pending_frames()
624 struct flowi6 *fl6, struct dst_entry **dstp, in rawv6_send_hdrinc() argument
637 ipv6_local_error(sk, EMSGSIZE, fl6, rt->dst.dev->mtu); in rawv6_send_hdrinc()
716 static int rawv6_probe_proto_opt(struct raw6_frag_vec *rfv, struct flowi6 *fl6) in rawv6_probe_proto_opt() argument
719 switch (fl6->flowi6_proto) { in rawv6_probe_proto_opt()
724 fl6->fl6_icmp_type = rfv->c[0]; in rawv6_probe_proto_opt()
725 fl6->fl6_icmp_code = rfv->c[1]; in rawv6_probe_proto_opt()
732 fl6->fl6_mh_type = rfv->c[2]; in rawv6_probe_proto_opt()
781 struct flowi6 fl6; in rawv6_sendmsg() local
809 memset(&fl6, 0, sizeof(fl6)); in rawv6_sendmsg()
811 fl6.flowi6_mark = sk->sk_mark; in rawv6_sendmsg()
812 fl6.flowi6_uid = sk->sk_uid; in rawv6_sendmsg()
839 fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in rawv6_sendmsg()
840 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in rawv6_sendmsg()
841 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
858 fl6.flowi6_oif = sin6->sin6_scope_id; in rawv6_sendmsg()
865 fl6.flowlabel = np->flow_label; in rawv6_sendmsg()
868 if (fl6.flowi6_oif == 0) in rawv6_sendmsg()
869 fl6.flowi6_oif = sk->sk_bound_dev_if; in rawv6_sendmsg()
878 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6, &sockc); in rawv6_sendmsg()
883 if ((fl6.flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in rawv6_sendmsg()
884 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
899 fl6.flowi6_proto = proto; in rawv6_sendmsg()
904 err = rawv6_probe_proto_opt(&rfv, &fl6); in rawv6_sendmsg()
910 fl6.daddr = *daddr; in rawv6_sendmsg()
912 fl6.daddr.s6_addr[15] = 0x1; /* :: means loopback (BSD'ism) */ in rawv6_sendmsg()
913 if (ipv6_addr_any(&fl6.saddr) && !ipv6_addr_any(&np->saddr)) in rawv6_sendmsg()
914 fl6.saddr = np->saddr; in rawv6_sendmsg()
916 final_p = fl6_update_dst(&fl6, opt, &final); in rawv6_sendmsg()
918 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr)) in rawv6_sendmsg()
919 fl6.flowi6_oif = np->mcast_oif; in rawv6_sendmsg()
920 else if (!fl6.flowi6_oif) in rawv6_sendmsg()
921 fl6.flowi6_oif = np->ucast_oif; in rawv6_sendmsg()
922 security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); in rawv6_sendmsg()
925 fl6.flowi6_flags |= FLOWI_FLAG_KNOWN_NH; in rawv6_sendmsg()
930 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in rawv6_sendmsg()
932 dst = ip6_dst_lookup_flow(sk, &fl6, final_p); in rawv6_sendmsg()
938 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst); in rawv6_sendmsg()
948 err = rawv6_send_hdrinc(sk, msg, len, &fl6, &dst, msg->msg_flags); in rawv6_sendmsg()
953 len, 0, &ipc6, &fl6, (struct rt6_info *)dst, in rawv6_sendmsg()
959 err = rawv6_push_pending_frames(sk, &fl6, rp); in rawv6_sendmsg()
970 dst_confirm_neigh(dst, &fl6.daddr); in rawv6_sendmsg()