Lines Matching refs:port
59 /* From http://www.iana.org/assignments/port-numbers:
63 #define TCP_ENSURE_LOCAL_PORT_RANGE(port) (((port) & ~TCP_LOCAL_PORT_RANGE_START) + TCP_LOCAL_PORT_RANGE_START)
88 /* last local TCP port */
427 * @param port the local port to bind to
428 * @return ERR_USE if the port is already in use
433 tcp_bind(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port)
452 if (port == 0) {
453 port = tcp_new_port();
454 if (port == 0) {
462 if (cpcb->local_port == port) {
464 /* Omit checking for the same port if both pcbs have REUSEADDR set.
484 pcb->local_port = port;
486 LWIP_DEBUGF(TCP_DEBUG, ("tcp_bind: bind to port %"U16_F"\n", port));
534 this port is only used once for every local IP. */
538 /* this address/port is already used */
642 * Allocate a new local TCP port.
644 * @return a new (free) local TCP port number
677 * @param port the remote tcp port to connect to
684 tcp_connect(struct tcp_pcb *pcb, ip_addr_t *ipaddr, u16_t port,
693 LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
699 pcb->remote_port = port;
731 (cpcb->remote_port == port) &&
1488 /* port and address of the listen pcb match the timed-out pcb */
1621 LWIP_DEBUGF(TCP_DEBUG, ("| %5"U16_F" | %5"U16_F" | (src port, dest port)\n",
1702 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ",
1709 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ",
1716 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ",