On 10/17/25 7:29 AM, Alexis Lothoré (eBPF Foundation) wrote:
+#define ETH_HLEN 14 +#define TC_ACT_OK 0 +#define TC_ACT_SHOT 2 +#define ETH_P_MPLS_UC 0x8847 +#define ETH_P_IP 0x0800 +#define ETH_P_IPV6 0x86DD +#define ETH_P_TEB 0x6558 + +#define MPLS_LS_S_MASK 0x00000100 +#define BPF_F_ADJ_ROOM_ENCAP_L2(len) \ + (((__u64)len & BPF_ADJ_ROOM_ENCAP_L2_MASK) \ + << BPF_ADJ_ROOM_ENCAP_L2_SHIFT) +
Some of them (e.g. TC_ACT_OK) should be already in bpf_tracing_net.h, so include that header instead. Not sure the remaining ones (e.g. MPLS) will be very useful, so I would leave it here for now instead of adding them to bpf_tracing_net.h.

