[RFC v1 1/4] ptp: introduce PTP protocol library

Stephen Hemminger stephen at networkplumber.org
Tue Apr 28 01:01:15 CEST 2026


On Tue, 28 Apr 2026 06:31:03 +0530
Rajesh Kumar <rajesh3.kumar at intel.com> wrote:

> +		const struct rte_udp_hdr *udp =
> +			(const struct rte_udp_hdr *)
> +			((const uint8_t *)eth + offset);

Use rte_pktmbuf_mtod_offset() avoid pointer math as error prone.


More information about the dev mailing list