nif_shaperh.inc 657 B

123456789101112131415161718192021222324252627282930
  1. const
  2. SHAPER_QLEN = 10;
  3. SHAPER_LATENCY = 5 * HZ;
  4. SHAPER_MAXSLIP = 2;
  5. SHAPER_BURST = HZ / 50;
  6. SHAPER_SET_DEV = $0001;
  7. SHAPER_SET_SPEED = $0002;
  8. SHAPER_GET_DEV = $0003;
  9. SHAPER_GET_SPEED = $0004;
  10. type
  11. Pshaperconf = ^shaperconf;
  12. shaperconf_u = record
  13. case Integer of
  14. 0: (ssu_name: packed array[0..14-1] of Char);
  15. 1: (ssu_speed: u_int32_t);
  16. end;
  17. shaperconf = record
  18. ss_cmd: u_int16_t;
  19. ss_u: shaperconf_u;
  20. end;
  21. { ---------------------------------------------------------------------
  22. Borland compatibility types
  23. ---------------------------------------------------------------------}
  24. // Type