Home
last modified time | relevance | path

Searched refs:tftp_state (Results 1 – 2 of 2) sorted by relevance

/AliOS-Things-master/components/lwip/lwip2.0.0/apps/tftp/
A Dtftp_server.c68 struct tftp_state { struct
82 static struct tftp_state tftp_state; argument
92 tftp_state.port = 0; in close_handle()
103 tftp_state.ctx->close(tftp_state.handle); in close_handle()
122 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in resend_data()
165 if (((tftp_state.port != 0) && (port != tftp_state.port)) || in recv()
175 tftp_state.last_pkt = tftp_state.timer; in recv()
233 tftp_send_ack(tftp_state.upcb, &tftp_state.addr, tftp_state.port, 0); in recv()
262 ret = tftp_state.ctx->write(tftp_state.handle, p); in recv()
268 tftp_send_ack(tftp_state.upcb, &tftp_state.addr, tftp_state.port, blknum); in recv()
[all …]
A Dtftp_client.c34 static tftp_state_t tftp_state; variable
47 tftp_state_t *pstate = &tftp_state; in close_handle()
64 tftp_state_t *pstate = &tftp_state; in tftp_tmr()
65 tftp_state.tick++; in tftp_tmr()
67 if (tftp_state.handle == NULL) { in tftp_tmr()
79 tftp_send_error(tftp_state.upcb, &tftp_state.addr, pstate->port, in tftp_tmr()
89 tftp_state_t *pstate = &tftp_state; in recv()
213 tftp_state_t *pstate = &tftp_state; in tftp_client_get()

Completed in 5 milliseconds