Lines Matching refs:fl6
1215 static int udp_v6_send_skb(struct sk_buff *skb, struct flowi6 *fl6, in udp_v6_send_skb() argument
1231 uh->source = fl6->fl6_sport; in udp_v6_send_skb()
1232 uh->dest = fl6->fl6_dport; in udp_v6_send_skb()
1274 udp6_hwcsum_outgoing(sk, skb, &fl6->saddr, &fl6->daddr, len); in udp_v6_send_skb()
1280 uh->check = csum_ipv6_magic(&fl6->saddr, &fl6->daddr, in udp_v6_send_skb()
1281 len, fl6->flowi6_proto, csum); in udp_v6_send_skb()
1333 struct flowi6 *fl6 = &cork.fl.u.ip6; in udpv6_sendmsg() local
1423 memset(fl6, 0, sizeof(*fl6)); in udpv6_sendmsg()
1429 fl6->fl6_dport = sin6->sin6_port; in udpv6_sendmsg()
1433 fl6->flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in udpv6_sendmsg()
1434 if (fl6->flowlabel & IPV6_FLOWLABEL_MASK) { in udpv6_sendmsg()
1435 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1452 fl6->flowi6_oif = sin6->sin6_scope_id; in udpv6_sendmsg()
1457 fl6->fl6_dport = inet->inet_dport; in udpv6_sendmsg()
1459 fl6->flowlabel = np->flow_label; in udpv6_sendmsg()
1463 if (!fl6->flowi6_oif) in udpv6_sendmsg()
1464 fl6->flowi6_oif = READ_ONCE(sk->sk_bound_dev_if); in udpv6_sendmsg()
1466 if (!fl6->flowi6_oif) in udpv6_sendmsg()
1467 fl6->flowi6_oif = np->sticky_pktinfo.ipi6_ifindex; in udpv6_sendmsg()
1469 fl6->flowi6_uid = sk->sk_uid; in udpv6_sendmsg()
1479 err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, fl6, in udpv6_sendmsg()
1485 if ((fl6->flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in udpv6_sendmsg()
1486 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1503 fl6->flowi6_proto = sk->sk_protocol; in udpv6_sendmsg()
1504 fl6->flowi6_mark = ipc6.sockc.mark; in udpv6_sendmsg()
1505 fl6->daddr = *daddr; in udpv6_sendmsg()
1506 if (ipv6_addr_any(&fl6->saddr) && !ipv6_addr_any(&np->saddr)) in udpv6_sendmsg()
1507 fl6->saddr = np->saddr; in udpv6_sendmsg()
1508 fl6->fl6_sport = inet->inet_sport; in udpv6_sendmsg()
1513 &fl6->saddr); in udpv6_sendmsg()
1529 fl6->fl6_dport = sin6->sin6_port; in udpv6_sendmsg()
1530 fl6->daddr = sin6->sin6_addr; in udpv6_sendmsg()
1534 if (ipv6_addr_any(&fl6->daddr)) in udpv6_sendmsg()
1535 fl6->daddr.s6_addr[15] = 0x1; /* :: means loopback (BSD'ism) */ in udpv6_sendmsg()
1537 final_p = fl6_update_dst(fl6, opt, &final); in udpv6_sendmsg()
1541 if (!fl6->flowi6_oif && ipv6_addr_is_multicast(&fl6->daddr)) { in udpv6_sendmsg()
1542 fl6->flowi6_oif = np->mcast_oif; in udpv6_sendmsg()
1544 } else if (!fl6->flowi6_oif) in udpv6_sendmsg()
1545 fl6->flowi6_oif = np->ucast_oif; in udpv6_sendmsg()
1547 security_sk_classify_flow(sk, flowi6_to_flowi_common(fl6)); in udpv6_sendmsg()
1552 fl6->flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6->flowlabel); in udpv6_sendmsg()
1554 dst = ip6_sk_dst_lookup_flow(sk, fl6, final_p, connected); in udpv6_sendmsg()
1562 ipc6.hlimit = ip6_sk_dst_hoplimit(np, fl6, dst); in udpv6_sendmsg()
1578 err = udp_v6_send_skb(skb, fl6, &cork.base); in udpv6_sendmsg()
1601 &ipc6, fl6, (struct rt6_info *)dst, in udpv6_sendmsg()
1636 dst_confirm_neigh(dst, &fl6->daddr); in udpv6_sendmsg()