Home
last modified time | relevance | path

Searched refs:vip (Results 1 – 3 of 3) sorted by relevance

/samples/bpf/
Dxdp_tx_iptunnel_kern.c31 __type(key, struct vip);
87 struct vip vip = {}; in handle_ipv4() local
99 vip.protocol = iph->protocol; in handle_ipv4()
100 vip.family = AF_INET; in handle_ipv4()
101 vip.daddr.v4 = iph->daddr; in handle_ipv4()
102 vip.dport = dport; in handle_ipv4()
105 tnl = bpf_map_lookup_elem(&vip2tnl, &vip); in handle_ipv4()
147 count_tx(vip.protocol); in handle_ipv4()
161 struct vip vip = {}; in handle_ipv6() local
171 vip.protocol = ip6h->nexthdr; in handle_ipv6()
[all …]
Dxdp_tx_iptunnel_user.c166 struct vip vip = {}; in main() local
172 vip.protocol = IPPROTO_TCP; in main()
189 vip.family = parse_ipstr(optarg, vip.daddr.v6); in main()
190 if (vip.family == AF_UNSPEC) in main()
198 vip.protocol = atoi(optarg); in main()
283 vip.dport = htons(min_port++); in main()
284 if (bpf_map_update_elem(vip2tnl_map_fd, &vip, &tnl, in main()
Dxdp_tx_iptunnel_common.h11 struct vip { struct