diff options
author | 2012-11-23 06:40:26 +0000 | |
---|---|---|
committer | 2012-11-23 06:40:26 +0000 | |
commit | 07e4e28e462a424a68709ae76796de42a5e40f5c (patch) | |
tree | c5ac803f35f796227e0120eb3c8c54d001b82734 /lib/libsndio | |
parent | - Remove return's at the end of void functions (diff) | |
download | wireguard-openbsd-07e4e28e462a424a68709ae76796de42a5e40f5c.tar.xz wireguard-openbsd-07e4e28e462a424a68709ae76796de42a5e40f5c.zip |
Make the client wait for the first flow control message rather than
assuming it can send a full initial data buffer. This requires protocol
version bump (but no library version bump).
Diffstat (limited to 'lib/libsndio')
-rw-r--r-- | lib/libsndio/amsg.h | 4 | ||||
-rw-r--r-- | lib/libsndio/sio_aucat.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libsndio/amsg.h b/lib/libsndio/amsg.h index 6a5664ea138..2841f2e6edf 100644 --- a/lib/libsndio/amsg.h +++ b/lib/libsndio/amsg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amsg.h,v 1.5 2012/11/02 10:24:58 ratchov Exp $ */ +/* $OpenBSD: amsg.h,v 1.6 2012/11/23 06:40:26 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -80,7 +80,7 @@ struct amsg { } vol; struct amsg_hello { uint16_t mode; /* bitmap of MODE_XXX */ -#define AMSG_VERSION 6 +#define AMSG_VERSION 7 uint8_t version; /* protocol version */ uint8_t devnum; /* device number */ uint32_t _reserved[1]; /* for future use */ diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c index da2a270ac56..a8ce5190732 100644 --- a/lib/libsndio/sio_aucat.c +++ b/lib/libsndio/sio_aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_aucat.c,v 1.13 2012/11/02 10:24:58 ratchov Exp $ */ +/* $OpenBSD: sio_aucat.c,v 1.14 2012/11/23 06:40:26 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -189,7 +189,7 @@ sio_aucat_start(struct sio_hdl *sh) return 0; hdl->wbpf = par.bps * par.pchan; hdl->rbpf = par.bps * par.rchan; - hdl->aucat.maxwrite = hdl->wbpf * par.bufsz; + hdl->aucat.maxwrite = 0; hdl->round = par.round; hdl->delta = 0; DPRINTF("aucat: start, maxwrite = %d\n", hdl->aucat.maxwrite); |