Lines Matching refs:tnl
67 const struct iptnl_info *tnl,
71 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
79 struct iptnl_info *tnl;
103 tnl = bpf_map_lookup_elem(&vip2tnl, &vip);
105 if (!tnl || tnl->family != AF_INET)
123 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IP));
132 iph->daddr = tnl->daddr.v4;
133 iph->saddr = tnl->saddr.v4;
152 struct iptnl_info *tnl;
173 tnl = bpf_map_lookup_elem(&vip2tnl, &vip);
175 if (!tnl || tnl->family != AF_INET6)
192 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6));
200 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6));
201 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6));