diff options
author | Damien Miller <djm@mindrot.org> | 2008-05-19 14:59:37 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-05-19 14:59:37 +1000 |
commit | db255cad0531047a3e35a95af74ad2e03b054412 (patch) | |
tree | 7452c18135999436612dcb4e6e7d9c9f2abfe90f /packet.h | |
parent | e9890193032b4bba7afa40d4fc003bbf629afba2 (diff) |
- 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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.46 2008/02/22 20:44:02 dtucker Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.47 2008/05/08 06:59:01 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -58,6 +58,7 @@ void packet_get_bignum(BIGNUM * value); | |||
58 | void packet_get_bignum2(BIGNUM * value); | 58 | void packet_get_bignum2(BIGNUM * value); |
59 | void *packet_get_raw(u_int *length_ptr); | 59 | void *packet_get_raw(u_int *length_ptr); |
60 | void *packet_get_string(u_int *length_ptr); | 60 | void *packet_get_string(u_int *length_ptr); |
61 | void *packet_get_string_ptr(u_int *length_ptr); | ||
61 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 62 | void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
62 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); | 63 | void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2))); |
63 | 64 | ||