blob: 077a971b3d257efcb92f5fe63b7eaed51120f6f5 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/src/parse_ether.c
2+++ b/src/parse_ether.c
3@@ -21,10 +21,18 @@
4 #include "parse_ether.h"
5
6 /* tcpdump header (ether.h) defines ETHER_HDRLEN) */
7-#ifndef ETHER_HDRLEN
8+#ifndef ETHER_HDRLEN
9 #define ETHER_HDRLEN 14
10 #endif
11
12+/* uClibc-ng compatibility */
13+#ifndef IPPROTO_BEETPH
14+#define IPPROTO_BEETPH 94
15+#endif
16+
17+#ifndef IPPROTO_MPLS
18+#define IPPROTO_MPLS 137
19+#endif
20
21 const char *ip_protcol_str(int p)
22 {