From 5e4e01fc64ba2a360a139d47acf80a7d767dd377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20S=C3=A1=20Marques?= Date: Tue, 11 Aug 2020 16:39:05 +0100 Subject: [PATCH] lwip/pbuf: Add PTP specific changes --- src/include/lwip/pbuf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/lwip/pbuf.h b/src/include/lwip/pbuf.h index 5a4fc88b..3c79c4cc 100644 --- a/src/include/lwip/pbuf.h +++ b/src/include/lwip/pbuf.h @@ -222,6 +222,13 @@ struct pbuf { /** In case the user needs to store data custom data on a pbuf */ LWIP_PBUF_CUSTOM_DATA +#if LWIP_PTP + /** + * Timestamp that this packet was received. + */ + s32_t time_sec; + s32_t time_nsec; +#endif };