Add persist timer

This commit is contained in:
kieranm
2007-12-31 13:34:47 +00:00
parent 22e2540eb6
commit 99afb15ced
5 changed files with 161 additions and 37 deletions

View File

@@ -397,6 +397,11 @@ struct tcp_pcb {
u32_t keep_cnt;
#endif /* LWIP_TCP_KEEPALIVE */
/* Persist timer counter */
u32_t persist_cnt;
/* Persist timer back-off */
u8_t persist_backoff;
/* KEEPALIVE counter */
u8_t keep_cnt_sent;
};
@@ -517,6 +522,7 @@ void tcp_rst(u32_t seqno, u32_t ackno,
u32_t tcp_next_iss(void);
void tcp_keepalive(struct tcp_pcb *pcb);
void tcp_zero_window_probe(struct tcp_pcb *pcb);
#if LWIP_CALCULATE_EFF_SEND_MSS
u16_t tcp_eff_send_mss(u16_t sendmss, struct ip_addr *addr);