Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 11 of 11) sorted by relevance

/samples/bpf/
Dxdp_tx_iptunnel_kern.c137 iph->saddr = tnl->saddr.v4; in handle_ipv4()
207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
Dxdp_tx_iptunnel_common.h25 } saddr; member
Dxdp_fwd_kern.c77 fib_params.ipv4_src = iph->saddr; in xdp_fwd_flags()
96 *src = ip6h->saddr; in xdp_fwd_flags()
Dxdp_adjust_tail_kern.c100 iph->daddr = orig_iph->saddr; in send_icmp4_too_big()
101 iph->saddr = orig_iph->daddr; in send_icmp4_too_big()
Dxdp_redirect_cpu_kern.c479 cpu_hash = iph->saddr + iph->daddr; in get_ipv4_hash_ip_pair()
496 cpu_hash = ip6h->saddr.s6_addr32[0] + ip6h->daddr.s6_addr32[0]; in get_ipv6_hash_ip_pair()
497 cpu_hash += ip6h->saddr.s6_addr32[1] + ip6h->daddr.s6_addr32[1]; in get_ipv6_hash_ip_pair()
498 cpu_hash += ip6h->saddr.s6_addr32[2] + ip6h->daddr.s6_addr32[2]; in get_ipv6_hash_ip_pair()
499 cpu_hash += ip6h->saddr.s6_addr32[3] + ip6h->daddr.s6_addr32[3]; in get_ipv6_hash_ip_pair()
Dtest_lwt_bpf.c79 printk("src: %x dst: %x\n", iph->saddr, iph->daddr); in do_test_data()
86 #define IP_SRC_OFF offsetof(struct iphdr, saddr)
Dsockex2_kern.c72 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in parse_ip()
91 nhoff + offsetof(struct ipv6hdr, saddr)); in parse_ipv6()
Dtcbpf1_kern.c32 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr))
Dsockex3_kern.c205 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in PROG()
230 nhoff + offsetof(struct ipv6hdr, saddr)); in PROG()
Dxdp_router_ipv4_kern.c103 *src = iph->saddr; in parse_ipv4()
Dxdp_tx_iptunnel_user.c204 v6 = tnl.saddr.v6; in main()