Lines Matching refs:port
68 /* From http://www.iana.org/assignments/port-numbers:
72 #define UDP_ENSURE_LOCAL_PORT_RANGE(port) (((port) & ~UDP_LOCAL_PORT_RANGE_START) + UDP_LOCAL_PORT_RANGE_START)
75 /* last local UDP port */
94 * Allocate a new local UDP port.
96 * @return a new (free) local UDP port number
122 /* port is already used by another udp_pcb */
205 the dhcp module, no other UDP pcb may use the local UDP port DHCP_CLIENT_PORT */
226 * 'Perfect match' pcbs (connected to the remote port & ip address) are
228 * matches the local port and ip address gets the datagram. */
240 /* compare PCB local addr+port to UDP destination addr+port */
265 /* compare PCB remote addr+port to UDP source addr+port */
361 /* compare PCB local addr+port to UDP destination addr+port */
413 /* No match was found, send ICMP destination port unreachable unless
442 * stored in pcb. If the pcb is not bound to a port, it will
443 * automatically be bound to a random port.
456 /* send to the packet using remote ip and port stored in the pcb */
467 /* send to the packet using remote ip and port stored in the pcb */
479 * @param dst_port Destination UDP port.
539 * @param dst_port Destination UDP port.
577 /* if the PCB is not yet bound to a port, bind it here */
579 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n"));
582 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n"));
749 * @param pcb UDP PCB to be bound with a local address ipaddr and port.
752 * @param port local UDP port to bind with. Use 0 to automatically bind
753 * to a random port between UDP_LOCAL_PORT_RANGE_START and
756 * ipaddr & port are expected to be in the same byte order as in the pcb.
760 * - ERR_USE. The specified ipaddr and port are already bound to by
766 udp_bind(struct udp_pcb *pcb, ip_addr_t *ipaddr, u16_t port)
773 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port));
786 /* By default, we don't allow to bind to a port that any other udp
787 PCB is alread bound to, unless *all* PCBs with that port have tha
793 /* port matches that of PCB in list and REUSEADDR not set -> reject */
796 if ((ipcb->local_port == port) &&
801 /* other PCB already binds to this local IP and port */
803 ("udp_bind: local port %"U16_F" already bound by another pcb\n", port));
811 /* no port specified? */
812 if (port == 0) {
813 port = udp_new_port();
814 if (port == 0) {
820 pcb->local_port = port;
829 ("udp_bind: bound to %"U16_F".%"U16_F".%"U16_F".%"U16_F", port %"U16_F"\n",
840 * @param pcb UDP PCB to be connected with remote address ipaddr and port.
842 * @param port remote UDP port to connect with.
846 * ipaddr & port are expected to be in the same byte order as in the pcb.
848 * The udp pcb is bound to a random local port if not already bound.
853 udp_connect(struct udp_pcb *pcb, ip_addr_t *ipaddr, u16_t port)
865 pcb->remote_port = port;
887 ("udp_connect: connected to %"U16_F".%"U16_F".%"U16_F".%"U16_F",port %"U16_F"\n",
1004 LWIP_DEBUGF(UDP_DEBUG, ("| %5"U16_F" | %5"U16_F" | (src port, dest port)\n",