54 |
#define PEV_DUPLICATE 1 |
#define PEV_DUPLICATE 1 |
55 |
#define PEV_NOECHO 2 |
#define PEV_NOECHO 2 |
56 |
|
|
57 |
#define PING_INTERVAL 1 |
#define PING_DEFAULT_INTERVAL 1000 /* Milliseconds */ |
58 |
|
#define PING_PRECISION 1000 /* Millisecond precision */ |
59 |
#define PING_CKTABSIZE 128 |
#define PING_CKTABSIZE 128 |
60 |
|
#define PING_SET_INTERVAL(t,i) do {\ |
61 |
|
(t).tv_sec = (i)/PING_PRECISION;\ |
62 |
|
(t).tv_usec = ((i)%PING_PRECISION)*(1000000/PING_PRECISION) ;\ |
63 |
|
} while (0) |
64 |
|
|
65 |
#define _PING_BUFLEN(p) ((p)->ping_datalen + sizeof (icmphdr_t)) |
#define _PING_BUFLEN(p) ((p)->ping_datalen + sizeof (icmphdr_t)) |
66 |
|
|