1 | #define _POSIX_C_SOURCE 200112 |
1 | #define _POSIX_C_SOURCE 200112 |
2 | #define _XOPEN_SOURCE 600 |
2 | #define _XOPEN_SOURCE 600 |
3 | #define _LARGEFILE64_SOURCE 1 |
3 | #define _LARGEFILE64_SOURCE 1 |
4 | |
4 | |
5 | #ifndef __APPLE__ |
5 | #ifdef __APPLE__ |
6 | # define IPV6 0 |
6 | # define IPV6 0 |
7 | #else |
7 | #else |
8 | # define IPV6 1 // if you get compilation problems try to disable IPv6 |
8 | # define IPV6 1 // if you get compilation problems try to disable IPv6 |
9 | #endif |
9 | #endif |
10 | |
10 | |
… | |
… | |
49 | #define MIN_INTERVAL .000001 // minimum packet send interval, in seconds |
49 | #define MIN_INTERVAL .000001 // minimum packet send interval, in seconds |
50 | |
50 | |
51 | #define HDR_SIZE_IP4 20 |
51 | #define HDR_SIZE_IP4 20 |
52 | #define HDR_SIZE_IP6 48 |
52 | #define HDR_SIZE_IP6 48 |
53 | |
53 | |
54 | //TODO: xread/xwrite for atomicity? we currently rely on the fact that the pip biffersize divides exactly by pointer sizes |
54 | //TODO: xread/xwrite for atomicity? we currently rely on the fact that the pip buffersize divides exactly by pointer sizes |
55 | |
55 | |
56 | typedef uint8_t addr_t[16]; |
56 | typedef uint8_t addr_t[16]; |
57 | |
57 | |
58 | typedef double tstamp; |
58 | typedef double tstamp; |
59 | |
59 | |