summaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-05-19 06:59:37 +0200
committerDamien Miller <djm@mindrot.org>2008-05-19 06:59:37 +0200
commitdb255cad0531047a3e35a95af74ad2e03b054412 (patch)
tree7452c18135999436612dcb4e6e7d9c9f2abfe90f /packet.h
parent - jmc@cvs.openbsd.org 2008/05/07 08:00:14 (diff)
downloadopenssh-db255cad0531047a3e35a95af74ad2e03b054412.tar.xz
openssh-db255cad0531047a3e35a95af74ad2e03b054412.zip
- markus@cvs.openbsd.org 2008/05/08 06:59:01
[bufaux.c buffer.h channels.c packet.c packet.h] avoid extra malloc/copy/free when receiving data over the net; ~10% speedup for localhost-scp; ok djm@
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index c1b9b3bd1..927e0831c 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.h,v 1.46 2008/02/22 20:44:02 dtucker Exp $ */
+/* $OpenBSD: packet.h,v 1.47 2008/05/08 06:59:01 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -58,6 +58,7 @@ void packet_get_bignum(BIGNUM * value);
void packet_get_bignum2(BIGNUM * value);
void *packet_get_raw(u_int *length_ptr);
void *packet_get_string(u_int *length_ptr);
+void *packet_get_string_ptr(u_int *length_ptr);
void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2)));
void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2)));