Searched refs:saddr (Results 1 – 11 of 11) sorted by relevance
/samples/bpf/ |
D | xdp_tx_iptunnel_kern.c | 137 iph->saddr = tnl->saddr.v4; in handle_ipv4() 207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
|
D | xdp_tx_iptunnel_common.h | 25 } saddr; member
|
D | xdp_fwd_kern.c | 77 fib_params.ipv4_src = iph->saddr; in xdp_fwd_flags() 96 *src = ip6h->saddr; in xdp_fwd_flags()
|
D | xdp_adjust_tail_kern.c | 100 iph->daddr = orig_iph->saddr; in send_icmp4_too_big() 101 iph->saddr = orig_iph->daddr; in send_icmp4_too_big()
|
D | xdp_redirect_cpu_kern.c | 479 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()
|
D | test_lwt_bpf.c | 79 printk("src: %x dst: %x\n", iph->saddr, iph->daddr); in do_test_data() 86 #define IP_SRC_OFF offsetof(struct iphdr, saddr)
|
D | sockex2_kern.c | 72 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in parse_ip() 91 nhoff + offsetof(struct ipv6hdr, saddr)); in parse_ipv6()
|
D | tcbpf1_kern.c | 32 #define IP_SRC_OFF (ETH_HLEN + offsetof(struct iphdr, saddr))
|
D | sockex3_kern.c | 205 g->flow.src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in PROG() 230 nhoff + offsetof(struct ipv6hdr, saddr)); in PROG()
|
D | xdp_router_ipv4_kern.c | 103 *src = iph->saddr; in parse_ipv4()
|
D | xdp_tx_iptunnel_user.c | 204 v6 = tnl.saddr.v6; in main()
|