[LTP] [PATCH 1/2] add ETH_P_CAN compat macro to LAPI headers

Vasileios Almpanis vasileios.almpanis@virtuozzo.com
Fri Feb 6 13:51:12 CET 2026


Signed-off-by: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>
---
 include/lapi/if_ether.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/if_ether.h b/include/lapi/if_ether.h
index 536d1863a..423341c57 100644
--- a/include/lapi/if_ether.h
+++ b/include/lapi/if_ether.h
@@ -16,4 +16,8 @@
 # define ETH_P_ALL 0x0003
 #endif
 
+#ifndef ETH_P_CAN
+# define ETH_P_CAN 0x000C
+#endif
+
 #endif /* LAPI_IF_ETHER_H__ */
-- 
2.43.0



More information about the ltp mailing list