nroseh.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. const
  2. SOL_ROSE = 260;
  3. ROSE_MTU = 251;
  4. ROSE_MAX_DIGIS = 6;
  5. ROSE_DEFER = 1;
  6. ROSE_T1 = 2;
  7. ROSE_T2 = 3;
  8. ROSE_T3 = 4;
  9. ROSE_IDLE = 5;
  10. ROSE_QBITINCL = 6;
  11. ROSE_HOLDBACK = 7;
  12. SIOCRSGCAUSE = SIOCPROTOPRIVATE + 0;
  13. SIOCRSSCAUSE = SIOCPROTOPRIVATE + 1;
  14. SIOCRSL2CALL = SIOCPROTOPRIVATE + 2;
  15. SIOCRSSL2CALL = SIOCPROTOPRIVATE + 2;
  16. SIOCRSACCEPT = SIOCPROTOPRIVATE + 3;
  17. SIOCRSCLRRT = SIOCPROTOPRIVATE + 4;
  18. SIOCRSGL2CALL = SIOCPROTOPRIVATE + 5;
  19. SIOCRSGFACILITIES = SIOCPROTOPRIVATE + 6;
  20. ROSE_DTE_ORIGINATED = $00;
  21. ROSE_NUMBER_BUSY = $01;
  22. ROSE_INVALID_FACILITY = $03;
  23. ROSE_NETWORK_CONGESTION = $05;
  24. ROSE_OUT_OF_ORDER = $09;
  25. ROSE_ACCESS_BARRED = $0B;
  26. ROSE_NOT_OBTAINABLE = $0D;
  27. ROSE_REMOTE_PROCEDURE = $11;
  28. ROSE_LOCAL_PROCEDURE = $13;
  29. ROSE_SHIP_ABSENT = $39;
  30. type
  31. Prose_address = ^rose_address;
  32. rose_address = record
  33. rose_addr : array[0..4] of char;
  34. end;
  35. Psockaddr_rose = ^sockaddr_rose;
  36. sockaddr_rose = record
  37. srose_family : sa_family_t;
  38. srose_addr : rose_address;
  39. srose_call : ax25_address;
  40. srose_ndigis : longint;
  41. srose_digi : ax25_address;
  42. end;
  43. Pfull_sockaddr_rose = ^full_sockaddr_rose;
  44. full_sockaddr_rose = record
  45. srose_family : sa_family_t;
  46. srose_addr : rose_address;
  47. srose_call : ax25_address;
  48. srose_ndigis : dword;
  49. srose_digis : array[0..(ROSE_MAX_DIGIS)-1] of ax25_address;
  50. end;
  51. Prose_route_struct = ^rose_route_struct;
  52. rose_route_struct = record
  53. address : rose_address;
  54. mask : word;
  55. neighbour : ax25_address;
  56. device : array[0..15] of char;
  57. ndigis : byte;
  58. digipeaters : array[0..(AX25_MAX_DIGIS)-1] of ax25_address;
  59. end;
  60. Prose_cause_struct = ^rose_cause_struct;
  61. rose_cause_struct = record
  62. cause : byte;
  63. diagnostic : byte;
  64. end;
  65. Prose_facilities_struct = ^rose_facilities_struct;
  66. rose_facilities_struct = record
  67. source_addr : rose_address;
  68. dest_addr : rose_address;
  69. source_call : ax25_address;
  70. dest_call : ax25_address;
  71. source_ndigis : byte;
  72. dest_ndigis : byte;
  73. source_digis : array[0..(ROSE_MAX_DIGIS)-1] of ax25_address;
  74. dest_digis : array[0..(ROSE_MAX_DIGIS)-1] of ax25_address;
  75. rand : dword;
  76. fail_addr : rose_address;
  77. fail_call : ax25_address;
  78. end;
  79. { ---------------------------------------------------------------------
  80. Borland compatibility types
  81. ---------------------------------------------------------------------}
  82. // Type