@@ -764,3 +764,29 @@ func decode(packet []byte) (interface{}, error) {
764
764
}
765
765
return msg , nil
766
766
}
767
+
768
+ var packetTypeNames = map [byte ]string {
769
+ msgDisconnect : "disconnectMsg" ,
770
+ msgServiceRequest : "serviceRequestMsg" ,
771
+ msgServiceAccept : "serviceAcceptMsg" ,
772
+ msgKexInit : "kexInitMsg" ,
773
+ msgKexDHInit : "kexDHInitMsg" ,
774
+ msgKexDHReply : "kexDHReplyMsg" ,
775
+ msgUserAuthRequest : "userAuthRequestMsg" ,
776
+ msgUserAuthSuccess : "userAuthSuccessMsg" ,
777
+ msgUserAuthFailure : "userAuthFailureMsg" ,
778
+ msgUserAuthPubKeyOk : "userAuthPubKeyOkMsg" ,
779
+ msgGlobalRequest : "globalRequestMsg" ,
780
+ msgRequestSuccess : "globalRequestSuccessMsg" ,
781
+ msgRequestFailure : "globalRequestFailureMsg" ,
782
+ msgChannelOpen : "channelOpenMsg" ,
783
+ msgChannelData : "channelDataMsg" ,
784
+ msgChannelOpenConfirm : "channelOpenConfirmMsg" ,
785
+ msgChannelOpenFailure : "channelOpenFailureMsg" ,
786
+ msgChannelWindowAdjust : "windowAdjustMsg" ,
787
+ msgChannelEOF : "channelEOFMsg" ,
788
+ msgChannelClose : "channelCloseMsg" ,
789
+ msgChannelRequest : "channelRequestMsg" ,
790
+ msgChannelSuccess : "channelRequestSuccessMsg" ,
791
+ msgChannelFailure : "channelRequestFailureMsg" ,
792
+ }
0 commit comments