summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/packet.h')
-rw-r--r--usr.bin/ssh/packet.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/packet.h b/usr.bin/ssh/packet.h
index 11e8be8c078..269b4c7f80d 100644
--- a/usr.bin/ssh/packet.h
+++ b/usr.bin/ssh/packet.h
@@ -11,7 +11,7 @@
* called by a name other than "ssh" or "Secure Shell".
*/
-/* RCSID("$OpenBSD: packet.h,v 1.29 2001/12/27 20:39:58 markus Exp $"); */
+/* RCSID("$OpenBSD: packet.h,v 1.30 2001/12/28 12:14:27 markus Exp $"); */
#ifndef PACKET_H
#define PACKET_H
@@ -74,7 +74,8 @@ extern int max_packet_size;
int packet_set_maxsize(int);
#define packet_get_maxsize() max_packet_size
-#define packet_done() \
+/* don't allow remaining bytes after the end of the message */
+#define packet_check_eom() \
do { \
int _len = packet_remaining(); \
if (_len > 0) { \