You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
418 B

  1. --- a/src/parse_ether.c
  2. +++ b/src/parse_ether.c
  3. @@ -21,10 +21,18 @@
  4. #include "parse_ether.h"
  5. /* tcpdump header (ether.h) defines ETHER_HDRLEN) */
  6. -#ifndef ETHER_HDRLEN
  7. +#ifndef ETHER_HDRLEN
  8. #define ETHER_HDRLEN 14
  9. #endif
  10. +/* uClibc-ng compatibility */
  11. +#ifndef IPPROTO_BEETPH
  12. +#define IPPROTO_BEETPH 94
  13. +#endif
  14. +
  15. +#ifndef IPPROTO_MPLS
  16. +#define IPPROTO_MPLS 137
  17. +#endif
  18. const char *ip_protcol_str(int p)
  19. {