proutedh.inc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. const
  2. RIPVERSION = 1;
  3. type
  4. Pnetinfo = ^netinfo;
  5. netinfo = record
  6. rip_dst : sockaddr;
  7. rip_metric : longint;
  8. end;
  9. Prip = ^rip;
  10. rip = record
  11. rip_cmd : u_char;
  12. rip_vers : u_char;
  13. rip_res1 : array[0..1] of u_char;
  14. ripun : record
  15. case longint of
  16. 0 : ( ru_nets : array[0..0] of netinfo );
  17. 1 : ( ru_tracefile : array[0..0] of char );
  18. end;
  19. end;
  20. const
  21. RIPCMD_REQUEST = 1;
  22. RIPCMD_RESPONSE = 2;
  23. RIPCMD_TRACEON = 3;
  24. RIPCMD_TRACEOFF = 4;
  25. RIPCMD_MAX = 5;
  26. ripcmds : array [0..RIPCMD_MAX-1] of pchar = ( ''#0, 'REQUEST', 'RESPONSE', 'TRACEON', 'TRACEOFF' );
  27. const
  28. HOPCNT_INFINITY = 16;
  29. MAXPACKETSIZE = 512;
  30. TIMER_RATE = 30;
  31. SUPPLY_INTERVAL = 30;
  32. MIN_WAITTIME = 2;
  33. MAX_WAITTIME = 5;
  34. EXPIRE_TIME = 180;
  35. GARBAGE_TIME = 240;
  36. { ---------------------------------------------------------------------
  37. Borland compatibility types
  38. ---------------------------------------------------------------------}
  39. // Type