/packages/libc/src/nipxh.inc

https://github.com/slibre/freepascal · Unknown · 84 lines · 71 code · 13 blank · 0 comment · 0 complexity · b6ef211b783c2863f5206b41c324d599 MD5 · raw file

  1. const
  2. SOL_IPX = 256;
  3. IPX_TYPE = 1;
  4. IPX_NODE_LEN = 6;
  5. IPX_MTU = 576;
  6. type
  7. Psockaddr_ipx = ^sockaddr_ipx;
  8. sockaddr_ipx = record
  9. sipx_family : sa_family_t;
  10. sipx_port : u_int16_t;
  11. sipx_network : u_int32_t;
  12. sipx_node : array[0..(IPX_NODE_LEN)-1] of byte;
  13. sipx_type : u_int8_t;
  14. sipx_zero : byte;
  15. end;
  16. const
  17. IPX_DLTITF = 0;
  18. IPX_CRTITF = 1;
  19. type
  20. Pipx_route_definition = ^ipx_route_definition;
  21. ipx_route_definition = record
  22. ipx_network : dword;
  23. ipx_router_network : dword;
  24. ipx_router_node : array[0..(IPX_NODE_LEN)-1] of byte;
  25. end;
  26. Pipx_interface_definition = ^ipx_interface_definition;
  27. ipx_interface_definition = record
  28. ipx_network : dword;
  29. ipx_device : array[0..15] of byte;
  30. ipx_dlink_type : byte;
  31. ipx_special : byte;
  32. ipx_node : array[0..(IPX_NODE_LEN)-1] of byte;
  33. end;
  34. const
  35. IPX_FRAME_NONE = 0;
  36. IPX_FRAME_SNAP = 1;
  37. IPX_FRAME_8022 = 2;
  38. IPX_FRAME_ETHERII = 3;
  39. IPX_FRAME_8023 = 4;
  40. IPX_FRAME_TR_8022 = 5;
  41. IPX_SPECIAL_NONE = 0;
  42. IPX_PRIMARY = 1;
  43. IPX_INTERNAL = 2;
  44. type
  45. Pipx_config_data = ^ipx_config_data;
  46. ipx_config_data = record
  47. ipxcfg_auto_select_primary : byte;
  48. ipxcfg_auto_create_interfaces : byte;
  49. end;
  50. Pipx_route_def = ^ipx_route_def;
  51. ipx_route_def = record
  52. ipx_network : dword;
  53. ipx_router_network : dword;
  54. ipx_router_node : array[0..(IPX_NODE_LEN)-1] of byte;
  55. ipx_device : array[0..15] of byte;
  56. ipx_flags : word;
  57. end;
  58. const
  59. IPX_ROUTE_NO_ROUTER = 0;
  60. IPX_RT_SNAP = 8;
  61. IPX_RT_8022 = 4;
  62. IPX_RT_BLUEBOOK = 2;
  63. IPX_RT_ROUTED = 1;
  64. SIOCAIPXITFCRT = SIOCPROTOPRIVATE;
  65. SIOCAIPXPRISLT = SIOCPROTOPRIVATE + 1;
  66. SIOCIPXCFGDATA = SIOCPROTOPRIVATE + 2;
  67. SIOCIPXNCPCONN = SIOCPROTOPRIVATE + 3;
  68. { ---------------------------------------------------------------------
  69. Borland compatibility types
  70. ---------------------------------------------------------------------}
  71. // Type