diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-22 20:30:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-22 20:30:34 +0200 |
commit | ec890556e4fb900030963cb7a751d2844381a728 (patch) | |
tree | 81cf6752578341430c9da328eb9bfa80f89bded4 /src/ipc.h | |
parent | wg: add -MP to makefile (diff) | |
download | wireguard-tools-ec890556e4fb900030963cb7a751d2844381a728.tar.xz wireguard-tools-ec890556e4fb900030963cb7a751d2844381a728.zip |
wg: Use seqpacket instead of dgram
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | src/ipc.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -12,13 +12,4 @@ int ipc_get_device(struct wgdevice **dev, const char *interface); char *ipc_list_devices(void); bool ipc_has_device(const char *interface); - -#define for_each_wgpeer(__dev, __peer, __i) for ((__i) = 0, (__peer) = (typeof(__peer))((uint8_t *)(__dev) + sizeof(struct wgdevice)); \ - (__i) < (__dev)->num_peers; \ - ++(__i), (__peer) = (typeof(__peer))((uint8_t *)(__peer) + sizeof(struct wgpeer) + (sizeof(struct wgipmask) * (__peer)->num_ipmasks))) - -#define for_each_wgipmask(__peer, __ipmask, __i) for ((__i) = 0, (__ipmask) = (typeof(__ipmask))((uint8_t *)(__peer) + sizeof(struct wgpeer)); \ - (__i) < (__peer)->num_ipmasks; \ - ++(__i), (__ipmask) = (typeof(__ipmask))((uint8_t *)(__ipmask) + sizeof(struct wgipmask))) - #endif |