patch-lsfd-cmd_sock-xinfo_c 714 B

1234567891011121314151617181920212223242526
  1. Newer kernels dropped these
  2. --- util-linux-2.42.2.orig/lsfd-cmd/sock-xinfo.c 2026-06-16 13:39:44.438424423 +0200
  3. +++ util-linux-2.42.2/lsfd-cmd/sock-xinfo.c 2026-07-05 21:54:27.224797003 +0200
  4. @@ -1453,8 +1453,10 @@ static const char *raw_decode_protocol(u
  5. return "ah";
  6. case IPPROTO_MTP:
  7. return "mtp";
  8. +#ifdef IPPROTO_BEETPH
  9. case IPPROTO_BEETPH:
  10. return "beetph";
  11. +#endif
  12. case IPPROTO_ENCAP:
  13. return "encap";
  14. case IPPROTO_PIM:
  15. @@ -1469,8 +1471,10 @@ static const char *raw_decode_protocol(u
  16. return "sctp";
  17. case IPPROTO_UDPLITE:
  18. return "udplite";
  19. +#ifdef IPPROTO_MPLS
  20. case IPPROTO_MPLS:
  21. return "mpls";
  22. +#endif
  23. #ifdef IPPROTO_ETHERNET
  24. case IPPROTO_ETHERNET:
  25. return "ethernet";