summaryrefslogtreecommitdiffstats
path: root/ssh2.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-08-28 05:28:43 +0200
committerDamien Miller <djm@mindrot.org>2023-08-28 05:34:01 +0200
commitdce6d80d2ed3cad2c516082682d5f6ca877ef714 (patch)
treef938d8cff790af10c6a3097502dfbfa5c728ea01 /ssh2.h
parentupstream: Log errors in kex_exchange_identification() with level (diff)
downloadopenssh-dce6d80d2ed3cad2c516082682d5f6ca877ef714.tar.xz
openssh-dce6d80d2ed3cad2c516082682d5f6ca877ef714.zip
upstream: Introduce a transport-level ping facility
This adds a pair of SSH transport protocol messages SSH2_MSG_PING/PONG to implement a ping capability. These messages use numbers in the "local extensions" number space and are advertised using a "ping@openssh.com" ext-info message with a string version number of "0". ok markus@ OpenBSD-Commit-ID: b6b3c4cb2084c62f85a8dc67cf74954015eb547f
Diffstat (limited to '')
-rw-r--r--ssh2.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssh2.h b/ssh2.h
index 288c39f69..0d48d0527 100644
--- a/ssh2.h
+++ b/ssh2.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh2.h,v 1.20 2023/08/14 03:37:00 djm Exp $ */
+/* $OpenBSD: ssh2.h,v 1.21 2023/08/28 03:28:43 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -108,6 +108,10 @@
#define SSH2_MSG_KEX_ECDH_INIT 30
#define SSH2_MSG_KEX_ECDH_REPLY 31
+/* transport layer: OpenSSH extensions */
+#define SSH2_MSG_PING 192
+#define SSH2_MSG_PONG 193
+
/* user authentication: generic */
#define SSH2_MSG_USERAUTH_REQUEST 50