Lines Matching refs:eth_hdr
384 struct rte_ether_hdr *eth_hdr; in parse_fup() local
398 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in parse_fup()
435 eth_hdr = rte_pktmbuf_mtod(created_pkt, struct rte_ether_hdr *); in parse_fup()
436 rte_ether_addr_copy(ð_addr, ð_hdr->src_addr); in parse_fup()
439 rte_ether_addr_copy(ð_multicast, ð_hdr->dst_addr); in parse_fup()
441 eth_hdr->ether_type = htons(PTP_PROTOCOL); in parse_fup()
459 client_clkid->id[0] = eth_hdr->src_addr.addr_bytes[0]; in parse_fup()
460 client_clkid->id[1] = eth_hdr->src_addr.addr_bytes[1]; in parse_fup()
461 client_clkid->id[2] = eth_hdr->src_addr.addr_bytes[2]; in parse_fup()
464 client_clkid->id[5] = eth_hdr->src_addr.addr_bytes[3]; in parse_fup()
465 client_clkid->id[6] = eth_hdr->src_addr.addr_bytes[4]; in parse_fup()
466 client_clkid->id[7] = eth_hdr->src_addr.addr_bytes[5]; in parse_fup()
578 struct rte_ether_hdr *eth_hdr; in parse_ptp_frames() local
581 eth_hdr = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); in parse_ptp_frames()
582 eth_type = rte_be_to_cpu_16(eth_hdr->ether_type); in parse_ptp_frames()