7bc08bcb30
OWAMP is a command line client application and a policy daemon used to determine one way latencies between hosts. It is an implementation of the OWAMP protocol as defined by RFC4656. With roundtrip-based measurements, it is hard to isolate the direction in which congestion is experienced. One-way measurements solve this problem and make the direction of congestion immediately apparent. Since traffic can be asymmetric at many sites that are primarily producers or consumers of data, this allows for more informative measurements. One-way measurements allow the user to better isolate the effects of specific parts of a network on the treatment of traffic.
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
$OpenBSD: patch-owamp_owamp_h,v 1.1.1.1 2011/07/08 09:31:06 sthen Exp $
|
|
|
|
remove conflict with sys/time.h macros
|
|
|
|
--- owamp/owamp.h.orig Fri Jan 23 17:52:04 2009
|
|
+++ owamp/owamp.h Tue Apr 21 18:03:37 2009
|
|
@@ -1627,8 +1627,8 @@ OWPTestDiskspace(
|
|
((tvp)->tv_sec cmp (uvp)->tv_sec))
|
|
#endif
|
|
|
|
-#ifndef timespecadd
|
|
-#define timespecadd(vvp, uvp) \
|
|
+#ifndef mytimespecadd
|
|
+#define mytimespecadd(vvp, uvp) \
|
|
do { \
|
|
(vvp)->tv_sec += (uvp)->tv_sec; \
|
|
(vvp)->tv_nsec += (uvp)->tv_nsec; \
|
|
@@ -1639,8 +1639,8 @@ OWPTestDiskspace(
|
|
} while (0)
|
|
#endif
|
|
|
|
-#ifndef timespecsub
|
|
-#define timespecsub(vvp, uvp) \
|
|
+#ifndef mytimespecsub
|
|
+#define mytimespecsub(vvp, uvp) \
|
|
do { \
|
|
(vvp)->tv_sec -= (uvp)->tv_sec; \
|
|
(vvp)->tv_nsec -= (uvp)->tv_nsec; \
|
|
@@ -1662,7 +1662,7 @@ OWPTestDiskspace(
|
|
ts1_ = *uvp; \
|
|
ts2_ = *vvp; \
|
|
} \
|
|
- timespecsub(&ts1_,&ts2_); \
|
|
+ mytimespecsub(&ts1_,&ts2_); \
|
|
*vvp = ts1_; \
|
|
} while(0)
|
|
#endif
|