summaryrefslogtreecommitdiff
path: root/net/shaperprobe/files/patch-diffprobe.h
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2011-06-12 16:00:42 +0000
committerChris Rees <crees@FreeBSD.org>2011-06-12 16:00:42 +0000
commitbb820b75167525a74d275907cf41f0f7381962b7 (patch)
treeac145015e5e6f054a811c72c37988f56beb228a1 /net/shaperprobe/files/patch-diffprobe.h
parent- Add UPDATING note for mail/sympa 6.1.4_1 (diff)
Shaperprobe is a speed test utility to analyze traffic shaping being done and
determine max downstream and upstream throughput. WWW: http://www.cc.gatech.edu/~partha/diffprobe/shaperprobe.html PR: ports/157773 Submitted by: Josh Carroll <josh.carroll at gmail.com> Approved by: rene (mentor)
Notes
Notes: svn path=/head/; revision=275448
Diffstat (limited to 'net/shaperprobe/files/patch-diffprobe.h')
-rw-r--r--net/shaperprobe/files/patch-diffprobe.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/shaperprobe/files/patch-diffprobe.h b/net/shaperprobe/files/patch-diffprobe.h
new file mode 100644
index 000000000000..51b0ffbd95aa
--- /dev/null
+++ b/net/shaperprobe/files/patch-diffprobe.h
@@ -0,0 +1,20 @@
+--- ./diffprobe.h.orig 2009-12-01 12:47:55.000000000 -0800
++++ ./diffprobe.h 2011-06-11 10:51:08.000000000 -0700
+@@ -26,6 +26,8 @@
+ #ifndef _DIFFPROBE_H_
+ #define _DIFFPROBE_H_
+
++#include <netinet/in.h>
++
+ #define VERSION 3
+ #define RATE_FACTOR 0.9
+ #define RATE_DROP_FACTOR 2
+@@ -69,7 +71,7 @@
+ int prober_bind_port(int port);
+
+ double prober_sleep_resolution();
+-void prober_sbusywait(struct timeval);
++inline void prober_sbusywait(struct timeval);
+ void prober_swait(struct timeval, double sleepRes);
+ struct timeval prober_packet_gap(struct timeval y, struct timeval x);
+