Lines Matching defs:port
125 /* From http://www.iana.org/assignments/port-numbers:
129 #define TCP_ENSURE_LOCAL_PORT_RANGE(port) ((u16_t)(((port) & (u16_t)~TCP_LOCAL_PORT_RANGE_START) + TCP_LOCAL_PORT_RANGE_START))
161 /* last local TCP port */
803 * Binds the connection to a local port number and IP address. If the
806 * If another connection is bound to the same port, the function will
814 * @param port the local port to bind to
815 * @return ERR_USE if the port is already in use
820 tcp_bind(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port)
867 if (port == 0) {
868 port = tcp_new_port();
869 if (port == 0) {
877 if (cpcb->local_port == port && (get_net_group_from_tcp_pcb(pcb) == get_net_group_from_tcp_pcb(cpcb))) {
879 if (cpcb->local_port == port) {
882 /* Omit checking for the same port if both pcbs have REUSEADDR set.
909 pcb->local_port = port;
911 LWIP_DEBUGF(TCP_DEBUG, ("tcp_bind: bind to port %"U16_F"\n", port));
962 * to a local port with the tcp_bind() function.
1033 this port is only used once for every local IP. */
1037 /* this address/port is already used */
1172 * Allocate a new local TCP port.
1174 * @return a new (free) local TCP port number
1225 * @param port the remote tcp port to connect to
1233 tcp_connect(struct tcp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port,
1252 LWIP_DEBUGF(TCP_DEBUG, ("tcp_connect to port %"U16_F"\n", port));
1254 pcb->remote_port = port;
1310 (cpcb->remote_port == port) &&
2384 /* reset the local port to prevent the pcb from being 'bound' */
2541 tcp_tcp_get_tcp_addrinfo(struct tcp_pcb *pcb, int local, ip_addr_t *addr, u16_t *port)
2548 if (port) {
2549 *port = pcb->local_port;
2555 if (port) {
2556 *port = pcb->remote_port;
2590 LWIP_DEBUGF(TCP_DEBUG, ("| %5"U16_F" | %5"U16_F" | (src port, dest port)\n",
2673 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ",
2681 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F" ", pcbl->local_port));
2687 LWIP_DEBUGF(TCP_DEBUG, ("Local port %"U16_F", foreign port %"U16_F" snd_nxt %"U32_F" rcv_nxt %"U32_F" ",