Lines Matching refs:port
85 u16_t port;
100 tftp_state.port = 0;
118 send_error(const ip_addr_t *addr, u16_t port, enum tftp_error code, const char *str)
134 udp_sendto(tftp_state.upcb, p, addr, port);
152 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port);
169 udp_sendto(tftp_state.upcb, p, &tftp_state.addr, tftp_state.port);
194 send_error(&tftp_state.addr, tftp_state.port, TFTP_ERROR_ACCESS_VIOLATION, "Error occured while reading the file.");
204 recv(void *arg, struct udp_pcb *upcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
212 if (((tftp_state.port != 0) && (port != tftp_state.port)) ||
214 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Only one connection at a time is supported");
234 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Only one connection at a time is supported");
243 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Filename too long/not NULL terminated");
251 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Mode too long/not NULL terminated");
260 send_error(addr, port, TFTP_ERROR_FILE_NOT_FOUND, "Unable to open requested file.");
269 tftp_state.port = port;
287 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection");
292 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Not a write connection");
302 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "error writing file");
317 send_error(addr, port, TFTP_ERROR_UNKNOWN_TRFR_ID, "Wrong block number");
327 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "No connection");
332 send_error(addr, port, TFTP_ERROR_ACCESS_VIOLATION, "Not a read connection");
338 send_error(addr, port, TFTP_ERROR_UNKNOWN_TRFR_ID, "Wrong block number");
359 send_error(addr, port, TFTP_ERROR_ILLEGAL_OPERATION, "Unknown operation");
413 tftp_state.port = 0;