Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  1 #ifndef _XT_RATE_H
  2 #define _XT_RATE_H
  3 
  4 /* timings are in milliseconds. */
  5 #define XT_LIMIT_SCALE 10000
  6 
  7 /* 1/10,000 sec period => max of 10,000/sec.  Min rate is then 429490
  8    seconds, or one every 59 hours. */
  9 struct xt_rateinfo {
 10         u_int32_t avg;    /* Average secs between packets * scale */
 11         u_int32_t burst;  /* Period multiplier for upper limit. */
 12 
 13         /* Used internally by the kernel */
 14         unsigned long prev;
 15         u_int32_t credit;
 16         u_int32_t credit_cap, cost;
 17 
 18         /* Ugly, ugly fucker. */
 19         struct xt_rateinfo *master;
 20 };
 21 #endif /*_XT_RATE_H*/
 22 
  This page was automatically generated by the LXR engine.