Lines Matching refs:fl6
255 int ip6_xmit(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
260 struct in6_addr *first_hop = &fl6->daddr;
268 u8 proto = fl6->flowi6_proto;
293 &fl6->saddr);
322 ip6_flow_hdr(hdr, tclass, ip6_make_flowlabel(net, skb, fl6->flowlabel,
323 ip6_autoflowlabel(net, np), fl6));
329 hdr->saddr = fl6->saddr;
359 ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu);
1049 const struct flowi6 *fl6)
1080 if (ip6_rt_check(&rt->rt6i_dst, &fl6->daddr, np->daddr_cache) ||
1082 ip6_rt_check(&rt->rt6i_src, &fl6->saddr, np->saddr_cache) ||
1084 (fl6->flowi6_oif && fl6->flowi6_oif != dst->dev->ifindex)) {
1094 struct dst_entry **dst, struct flowi6 *fl6)
1112 if (ipv6_addr_any(&fl6->saddr)) {
1116 *dst = ip6_route_output(net, sk, fl6);
1121 err = ip6_route_get_saddr(net, from, &fl6->daddr,
1123 &fl6->saddr);
1138 if (fl6->flowi6_oif)
1143 *dst = ip6_route_output_flags(net, sk, fl6, flags);
1161 rt6_nexthop(rt, &fl6->daddr));
1170 ifp = ipv6_get_ifaddr(net, &fl6->saddr,
1183 memcpy(&fl_gw6, fl6, sizeof(struct flowi6));
1192 if (ipv6_addr_v4mapped(&fl6->saddr) &&
1193 !(ipv6_addr_v4mapped(&fl6->daddr) || ipv6_addr_any(&fl6->daddr))) {
1214 * @fl6: flow to lookup
1221 struct flowi6 *fl6)
1224 return ip6_dst_lookup_tail(net, sk, dst, fl6);
1232 * @fl6: flow to lookup
1240 struct dst_entry *ip6_dst_lookup_flow(struct net *net, const struct sock *sk, struct flowi6 *fl6,
1246 err = ip6_dst_lookup_tail(net, sk, &dst, fl6);
1250 fl6->daddr = *final_dst;
1252 return xfrm_lookup_route(net, dst, flowi6_to_flowi(fl6), sk, 0);
1259 * @fl6: flow to lookup
1274 struct dst_entry *ip6_sk_dst_lookup_flow(struct sock *sk, struct flowi6 *fl6,
1280 dst = ip6_sk_dst_check(sk, dst, fl6);
1284 dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_dst);
1286 ip6_sk_dst_store_flow(sk, dst_clone(dst), fl6);
1321 struct flowi6 fl6;
1332 memset(&fl6, 0, sizeof(fl6));
1333 fl6.flowi6_mark = skb->mark;
1334 fl6.flowi6_proto = protocol;
1335 fl6.daddr = info->key.u.ipv6.dst;
1336 fl6.saddr = info->key.u.ipv6.src;
1338 fl6.flowlabel = ip6_make_flowinfo(prio, info->key.label);
1340 dst = ipv6_stub->ipv6_dst_lookup_flow(net, sock->sk, &fl6,
1343 netdev_dbg(dev, "no route to %pI6\n", &fl6.daddr);
1347 netdev_dbg(dev, "circular route to %pI6\n", &fl6.daddr);
1353 dst_cache_set_ip6(dst_cache, dst, &fl6.saddr);
1355 *saddr = fl6.saddr;
1481 struct flowi6 *fl6 = &cork_full->fl.u.ip6;
1541 ipv6_local_rxpmtu(sk, fl6, mtu - headersize +
1554 ipv6_local_error(sk, EMSGSIZE, fl6, pmtu);
1872 struct ipcm6_cookie *ipc6, struct flowi6 *fl6,
1892 inet->cork.fl.u.ip6 = *fl6;
1949 struct flowi6 *fl6 = &cork->fl.u.ip6;
1950 unsigned char proto = fl6->flowi6_proto;
1975 final_dst = &fl6->daddr;
1979 ipv6_push_nfrag_opts(skb, opt, &proto, &final_dst, &fl6->saddr);
1986 ip6_make_flowlabel(net, skb, fl6->flowlabel,
1987 ip6_autoflowlabel(net, np), fl6));
1990 hdr->saddr = fl6->saddr;
2005 icmp6_type = fl6->fl6_icmp_type;