浏览代码

go.crypto/ssh: move channelForwardMsg declaration.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/14669046
Han-Wen Nienhuys 12 年之前
父节点
当前提交
ed40a6cc35
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      ssh/tcpip.go

+ 8 - 8
ssh/tcpip.go

@@ -27,14 +27,6 @@ func (c *ClientConn) Listen(n, addr string) (net.Listener, error) {
 	return c.ListenTCP(laddr)
 }
 
-// RFC 4254 7.1
-type channelForwardMsg struct {
-	Message   string
-	WantReply bool
-	raddr     string
-	rport     uint32
-}
-
 // Automatic port allocation is broken with OpenSSH before 6.0. See
 // also https://bugzilla.mindrot.org/show_bug.cgi?id=2017.  In
 // particular, OpenSSH 5.9 sends a channelOpenMsg with port number 0,
@@ -83,6 +75,14 @@ func (c *ClientConn) autoPortListenWorkaround(laddr *net.TCPAddr) (net.Listener,
 	return nil, fmt.Errorf("ssh: listen on random port failed after %d tries: %v", tries, err)
 }
 
+// RFC 4254 7.1
+type channelForwardMsg struct {
+	Message   string
+	WantReply bool
+	raddr     string
+	rport     uint32
+}
+
 // ListenTCP requests the remote peer open a listening socket
 // on laddr. Incoming connections will be available by calling
 // Accept on the returned net.Listener.