Mercurial > dropbear
comparison process-packet.c @ 928:7cd89d4e0335
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 13 Mar 2014 23:50:09 +0800 |
parents | b8208506322e |
children | a0819ecfee0b |
comparison
equal
deleted
inserted
replaced
927:122fb3532038 | 928:7cd89d4e0335 |
---|---|
50 type = buf_getbyte(ses.payload); | 50 type = buf_getbyte(ses.payload); |
51 TRACE(("process_packet: packet type = %d, len %d", type, ses.payload->len)) | 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 = monotonic_now(); |
56 | 56 |
57 /* These packets we can receive at any time */ | 57 /* These packets we can receive at any time */ |
58 switch(type) { | 58 switch(type) { |
59 | 59 |
60 case SSH_MSG_IGNORE: | 60 case SSH_MSG_IGNORE: |