<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=RU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>I have mixed with pty descriptors which are redirected
for a shell. I ported dropbear under VxWorks and there is a little bit
different mechanism with the pty. When I connect to dropbear server with the
Putty client then I don&#8217;t see any information from shell. But server
receives information from client so on the server side I can catch the packets.
I experimented a lot with the master and slave file descriptors but still have
nothing on client side. May be somebody cans advice me how to send any test
message to client and it will be displayed at client side. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>May be it somehow helps: it is not possible to set
master side of pty to nonblocking state.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'>This is the part of trace<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span lang=EN-US style='font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: type is pty-req<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter sessionpty<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: Open Master PTY
/dev/atTlnPty1M [1]<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: Open Slave PTY
/dev/atTlnPty1S<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: ADJA: master 28
slave 29 name /dev/atTlnPty1S<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave sessionpty<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
send_msg_channel_success<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
encrypt_packet()<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: encrypt_packet
type is 99<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter writemac<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave writemac<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter enqueue<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave enqueue<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
encrypt_packet()<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
send_msg_channel_success<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
chansessionrequest<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
recv_msg_channel_request<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
process_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: checkclose: infd
-2, outfd -2, errfd -1, sentclosed 0, recvclosed 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: writebuf 0
extrabuf&nbsp; extrabuf 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: infd = -2, outfd
-2, errfd -1, bufused 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
write_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: empty queue
dequeing<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
write_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: checkclose: infd
-2, outfd -2, errfd -1, sentclosed 0, recvclosed 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: writebuf 0
extrabuf&nbsp; extrabuf 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: infd = -2, outfd
-2, errfd -1, bufused 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
read_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
decrypt_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
decrypt_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
read_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
process_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: process_packet:
packet type = 98<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
recv_msg_channel_request<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
chansessionrequest<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: type is shell<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
sessioncommand<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: continue
ptycommand: parent<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter ptycommand
29<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: setnonblocking:
28<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
setnonblocking<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave ptycommand<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
send_msg_channel_success<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
encrypt_packet()<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: encrypt_packet
type is 99<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter writemac<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave writemac<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter enqueue<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave enqueue<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
encrypt_packet()<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
send_msg_channel_success<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
chansessionrequest<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
recv_msg_channel_request<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
process_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: checkclose: infd
28, outfd 28, errfd -1, sentclosed 0, recvclosed 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: writebuf 0
extrabuf&nbsp; extrabuf 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: infd = 28, outfd
28, errfd -1, bufused 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
write_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: empty queue
dequeing<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
write_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: checkclose: infd
28, outfd 28, errfd -1, sentclosed 0, recvclosed 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: writebuf 0
extrabuf&nbsp; extrabuf 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: infd = 28, outfd
28, errfd -1, bufused 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
read_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
decrypt_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
decrypt_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
read_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
process_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: process_packet:
packet type = 94<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: enter
recv_msg_channel_data<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
recv_msg_channel_data<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: leave
process_packet<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: checkclose: infd
28, outfd 28, errfd -1, sentclosed 0, recvclosed 0<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Courier><span
lang=EN-US style='font-size:10.0pt;font-family:Courier'>TRACE: writebuf 1
extrabuf&nbsp; extrabuf 0<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Courier><span lang=EN-US style='font-size:
10.0pt;font-family:Courier'>TRACE: infd = 28, outfd 28, errfd -1, bufused 1</span></font><font
size=2 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

</div>

</body>

</html>