diff options
author | 2008-05-08 06:59:01 +0000 | |
---|---|---|
committer | 2008-05-08 06:59:01 +0000 | |
commit | af62fc1a71a078e9c86948dfe53732cfadf46c37 (patch) | |
tree | 79f2de561f1bec4c024e7669183f3ebc0865543c /usr.bin/ssh/buffer.h | |
parent | change timer internals so that we use a timewheel (tailq, sorted by expiry (diff) | |
download | wireguard-openbsd-af62fc1a71a078e9c86948dfe53732cfadf46c37.tar.xz wireguard-openbsd-af62fc1a71a078e9c86948dfe53732cfadf46c37.zip |
avoid extra malloc/copy/free when receiving data over the net;
~10% speedup for localhost-scp; ok djm@
Diffstat (limited to 'usr.bin/ssh/buffer.h')
-rw-r--r-- | usr.bin/ssh/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/buffer.h b/usr.bin/ssh/buffer.h index ecc4aea8319..d0f354ee7bf 100644 --- a/usr.bin/ssh/buffer.h +++ b/usr.bin/ssh/buffer.h @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.h,v 1.16 2006/08/03 03:34:41 deraadt Exp $ */ +/* $OpenBSD: buffer.h,v 1.17 2008/05/08 06:59:01 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -66,6 +66,7 @@ int buffer_get_char(Buffer *); void buffer_put_char(Buffer *, int); void *buffer_get_string(Buffer *, u_int *); +void *buffer_get_string_ptr(Buffer *, u_int *); void buffer_put_string(Buffer *, const void *, u_int); void buffer_put_cstring(Buffer *, const char *); |