From cbc13cc8aad800043bb78fca1b57e24498d7a2ef Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 9 Jun 2025 22:12:55 +0800 Subject: [PATCH] if_ether.h: add the definition of ETH_P_TSN add macro definitions used by third-party libraries to resolve compilation errors. Signed-off-by: zhanghongyu --- include/netinet/if_ether.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/netinet/if_ether.h b/include/netinet/if_ether.h index 01da882ab35..db35a1c43a9 100644 --- a/include/netinet/if_ether.h +++ b/include/netinet/if_ether.h @@ -50,6 +50,7 @@ #define ETH_P_IP ETHERTYPE_IP #define ETH_P_IPV6 ETHERTYPE_IPV6 #define ETH_P_ARP ETHERTYPE_ARP +#define ETH_P_TSN 0x22F0 /* TSN (IEEE 1722) packet */ /**************************************************************************** * Public Type Definitions