Lines Matching refs:tnl
69 const struct iptnl_info *tnl,
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest));
81 struct iptnl_info *tnl;
105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip);
107 if (!tnl || tnl->family != AF_INET)
127 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IP));
136 iph->daddr = tnl->daddr.v4;
137 iph->saddr = tnl->saddr.v4;
156 struct iptnl_info *tnl;
177 tnl = bpf_map_lookup_elem(&vip2tnl, &vip);
179 if (!tnl || tnl->family != AF_INET6)
199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6));
207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6));
208 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6));