Lines Matching refs:addr
84 ip_addr_t addr; member
101 ip_addr_set_any(0, &tftp_state.addr); in close_handle()
118 send_error(const ip_addr_t *addr, u16_t port, enum tftp_error code, const char *str) in send_error() argument
134 udp_sendto(tftp_state.upcb, p, addr, port); in send_error()
152 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in send_ack()
169 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port); in resend_data()
194 …send_error(&tftp_state.addr, tftp_state.port, TFTP_ERROR_ACCESS_VIOLATION, "Error occured while re… in send_data()
204 recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) in recv() argument
213 (!ip_addr_isany_val(tftp_state.addr) && !ip_addr_cmp(&tftp_state.addr, addr))) { in recv()
214 … send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Only one connection at a time is supported"); in recv()
234 … send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Only one connection at a time is supported"); in recv()
243 … send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Filename too long/not NULL terminated"); in recv()
251 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Mode too long/not NULL terminated"); in recv()
260 send_error(addr, port, TFTP_ERROR_FILE_NOT_FOUND, "Unable to open requested file."); in recv()
265 ip_addr_debug_print(TFTP_DEBUG | LWIP_DBG_STATE, addr); in recv()
268 ip_addr_copy(tftp_state.addr, *addr); in recv()
287 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
292 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Not a write connection"); in recv()
302 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "error writing file"); in recv()
317 send_error(addr, port, TFTP_ERROR_UNKNOWN_TRFR_ID, "Wrong block number"); in recv()
327 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection"); in recv()
332 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Not a read connection"); in recv()
338 send_error(addr, port, TFTP_ERROR_UNKNOWN_TRFR_ID, "Wrong block number"); in recv()
359 send_error(addr, port, TFTP_ERROR_ILLEGAL_OPERATION, "Unknown operation"); in recv()