Home
last modified time | relevance | path

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

/dpdk/examples/bpf/
H A Dt1.c44 struct iphdr *iphdr = (void *)(ether_header + 1); in entry() local
45 if (iphdr->protocol != 17 || (iphdr->frag_off & 0x1ffff) != 0 || in entry()
46 iphdr->daddr != htonl(0x1020304)) in entry()
49 int hlen = iphdr->ihl * 4; in entry()
50 struct udphdr *udphdr = (void *)iphdr + hlen; in entry()
/dpdk/drivers/net/tap/
H A Dtap_bpf_program.c153 if (data + off + sizeof(struct iphdr) + sizeof(__u32) in rss_l3_l4()
157 __u8 *src_dst_addr = data + off + offsetof(struct iphdr, saddr); in rss_l3_l4()
158 __u8 *src_dst_port = data + off + sizeof(struct iphdr); in rss_l3_l4()
/dpdk/examples/ipv4_multicast/
H A Dmain.c305 struct rte_ipv4_hdr *iphdr; in mcast_forward() local
315 iphdr = (struct rte_ipv4_hdr *) in mcast_forward()
317 RTE_ASSERT(iphdr != NULL); in mcast_forward()
319 dest_addr = rte_be_to_cpu_32(iphdr->dst_addr); in mcast_forward()