summaryrefslogtreecommitdiffstats
path: root/net.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-29 19:26:16 +0000
committerRoy Marples <roy@marples.name>2008-05-29 19:26:16 +0000
commit3c02568a28483fb384bd9eedc208e19154c9310a (patch)
treecd49217fe733b223ec3e32794d1788c9d0f099ed /net.h
parent6db92f62e6f7ae69f5877462ca78a0b7801afe69 (diff)
downloaddhcpcd-3c02568a28483fb384bd9eedc208e19154c9310a.tar.xz
Make the timings more random by using the full range of poll timeout.
Diffstat (limited to 'net.h')
-rw-r--r--net.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/net.h b/net.h
index 77e4b6f9..b8b6cb6c 100644
--- a/net.h
+++ b/net.h
@@ -171,14 +171,15 @@ ssize_t send_raw_packet(const struct interface *, int,
ssize_t get_packet(struct interface *, void *, ssize_t);
#ifdef ENABLE_ARP
-/* These are really for IPV4LL */
-#define PROBE_WAIT 1
-#define PROBE_NUM 3
-#define PROBE_MIN 1
-#define PROBE_MAX 2
-#define ANNOUNCE_WAIT 2
-#define ANNOUNCE_NUM 2
-#define ANNOUNCE_INTERVAL 2
+/* These are really for IPV4LL, RFC 3927.
+ * We multiply some numbers by 1000 so they are suitable for use in poll(). */
+#define PROBE_WAIT 1 * 1000
+#define PROBE_NUM 3
+#define PROBE_MIN 1 * 1000
+#define PROBE_MAX 2 * 1000
+#define ANNOUNCE_WAIT 2 * 1000
+#define ANNOUNCE_NUM 2
+#define ANNOUNCE_INTERVAL 2 * 1000
#define MAX_CONFLICTS 10
#define RATE_LIMIT_INTERVAL 60
#define DEFEND_INTERVAL 10