diff options
| author | Roy Marples <roy@marples.name> | 2008-05-29 19:26:16 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-29 19:26:16 +0000 |
| commit | 3c02568a28483fb384bd9eedc208e19154c9310a (patch) | |
| tree | cd49217fe733b223ec3e32794d1788c9d0f099ed /net.h | |
| parent | 6db92f62e6f7ae69f5877462ca78a0b7801afe69 (diff) | |
| download | dhcpcd-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.h | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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 |
