patch-netem_paretonormal_c 484 B

12345678910111213141516171819
  1. --- iproute2-3.12.0.orig/netem/paretonormal.c 2013-11-23 02:10:33.000000000 +0100
  2. +++ iproute2-3.12.0/netem/paretonormal.c 2014-02-09 12:22:09.000000000 +0100
  3. @@ -11,15 +11,11 @@
  4. */
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. -#include <stdlib.h>
  8. #include <string.h>
  9. #include <math.h>
  10. #include <limits.h>
  11. -#include <malloc.h>
  12. -
  13. -#include <linux/types.h>
  14. -#include <linux/pkt_sched.h>
  15. +#define NETEM_DIST_SCALE 8192
  16. #define TABLESIZE 16384
  17. #define TABLEFACTOR NETEM_DIST_SCALE