Lines Matching refs:fl6
1037 struct flowi6 *fl6, int encap_limit, __u32 *pmtu, in ip6_tnl_xmit() argument
1083 memcpy(&fl6->daddr, addr6, sizeof(fl6->daddr)); in ip6_tnl_xmit()
1098 if (!ip6_tnl_xmit_ctl(t, &fl6->saddr, &fl6->daddr)) in ip6_tnl_xmit()
1104 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit()
1106 dst = ip6_route_output(net, NULL, fl6); in ip6_tnl_xmit()
1110 dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), NULL, 0); in ip6_tnl_xmit()
1118 &fl6->daddr, 0, &fl6->saddr)) in ip6_tnl_xmit()
1188 dst_cache_set_ip6(&t->dst_cache, ndst, &fl6->saddr); in ip6_tnl_xmit()
1205 err = ip6_tnl_encap(skb, t, &proto, fl6); in ip6_tnl_xmit()
1213 ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); in ip6_tnl_xmit()
1216 ipv6h->saddr = fl6->saddr; in ip6_tnl_xmit()
1217 ipv6h->daddr = fl6->daddr; in ip6_tnl_xmit()
1235 struct flowi6 fl6; in ip4ip6_tnl_xmit() local
1256 memset(&fl6, 0, sizeof(fl6)); in ip4ip6_tnl_xmit()
1257 fl6.flowi6_proto = IPPROTO_IPIP; in ip4ip6_tnl_xmit()
1258 fl6.daddr = key->u.ipv6.dst; in ip4ip6_tnl_xmit()
1259 fl6.flowlabel = key->label; in ip4ip6_tnl_xmit()
1265 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip4ip6_tnl_xmit()
1266 fl6.flowi6_proto = IPPROTO_IPIP; in ip4ip6_tnl_xmit()
1273 fl6.flowi6_mark = skb->mark; in ip4ip6_tnl_xmit()
1276 fl6.flowi6_uid = sock_net_uid(dev_net(dev), NULL); in ip4ip6_tnl_xmit()
1285 err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, in ip4ip6_tnl_xmit()
1305 struct flowi6 fl6; in ip6ip6_tnl_xmit() local
1325 memset(&fl6, 0, sizeof(fl6)); in ip6ip6_tnl_xmit()
1326 fl6.flowi6_proto = IPPROTO_IPV6; in ip6ip6_tnl_xmit()
1327 fl6.daddr = key->u.ipv6.dst; in ip6ip6_tnl_xmit()
1328 fl6.flowlabel = key->label; in ip6ip6_tnl_xmit()
1348 memcpy(&fl6, &t->fl.u.ip6, sizeof(fl6)); in ip6ip6_tnl_xmit()
1349 fl6.flowi6_proto = IPPROTO_IPV6; in ip6ip6_tnl_xmit()
1356 fl6.flowlabel |= ip6_flowlabel(ipv6h); in ip6ip6_tnl_xmit()
1358 fl6.flowi6_mark = skb->mark; in ip6ip6_tnl_xmit()
1361 fl6.flowi6_uid = sock_net_uid(dev_net(dev), NULL); in ip6ip6_tnl_xmit()
1370 err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, in ip6ip6_tnl_xmit()
1415 struct flowi6 *fl6 = &t->fl.u.ip6; in ip6_tnl_link_config() local
1422 fl6->saddr = p->laddr; in ip6_tnl_link_config()
1423 fl6->daddr = p->raddr; in ip6_tnl_link_config()
1424 fl6->flowi6_oif = p->link; in ip6_tnl_link_config()
1425 fl6->flowlabel = 0; in ip6_tnl_link_config()
1428 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6_tnl_link_config()
1430 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6_tnl_link_config()