Mercurial > dropbear
comparison process-packet.c @ 773:a9f2a6ae4eb5
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 14 Apr 2013 22:49:19 +0800 |
parents | 685d05f1cc5c |
children | 2f1c199b6e4b |
comparison
equal
deleted
inserted
replaced
772:7fc0aeada79c | 773:a9f2a6ae4eb5 |
---|---|
43 void process_packet() { | 43 void process_packet() { |
44 | 44 |
45 unsigned char type; | 45 unsigned char type; |
46 unsigned int i; | 46 unsigned int i; |
47 | 47 |
48 TRACE(("enter process_packet")) | 48 TRACE2(("enter process_packet")) |
49 | 49 |
50 type = buf_getbyte(ses.payload); | 50 type = buf_getbyte(ses.payload); |
51 TRACE(("process_packet: packet type = %d", type)) | 51 TRACE(("process_packet: packet type = %d, len %d", type, ses.payload->len)) |
52 | 52 |
53 ses.lastpacket = type; | 53 ses.lastpacket = type; |
54 | 54 |
55 ses.last_packet_time = time(NULL); | 55 ses.last_packet_time = time(NULL); |
56 | 56 |
121 | 121 |
122 out: | 122 out: |
123 buf_free(ses.payload); | 123 buf_free(ses.payload); |
124 ses.payload = NULL; | 124 ses.payload = NULL; |
125 | 125 |
126 TRACE(("leave process_packet")) | 126 TRACE2(("leave process_packet")) |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 | 130 |
131 /* This must be called directly after receiving the unimplemented packet. | 131 /* This must be called directly after receiving the unimplemented packet. |