netlink-compat.h 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * netlink/netlink-compat.h Netlink Compatability
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
  10. */
  11. #ifndef NETLINK_COMPAT_H_
  12. #define NETLINK_COMPAT_H_
  13. #if !defined _LINUX_SOCKET_H && !defined _BITS_SOCKADDR_H
  14. typedef unsigned short sa_family_t;
  15. #endif
  16. #ifndef IFNAMSIZ
  17. /** Maximum length of a interface name */
  18. #define IFNAMSIZ 16
  19. #endif
  20. /* patch 2.4.x if_arp */
  21. #ifndef ARPHRD_INFINIBAND
  22. #define ARPHRD_INFINIBAND 32
  23. #endif
  24. /* patch 2.4.x eth header file */
  25. #ifndef ETH_P_MPLS_UC
  26. #define ETH_P_MPLS_UC 0x8847
  27. #endif
  28. #ifndef ETH_P_MPLS_MC
  29. #define ETH_P_MPLS_MC 0x8848
  30. #endif
  31. #ifndef ETH_P_EDP2
  32. #define ETH_P_EDP2 0x88A2
  33. #endif
  34. #ifndef ETH_P_HDLC
  35. #define ETH_P_HDLC 0x0019
  36. #endif
  37. #ifndef AF_LLC
  38. #define AF_LLC 26
  39. #endif
  40. #endif