Searched refs:UDP_LOCAL_PORT_RANGE_START (Results 1 – 4 of 4) sorted by relevance
29 #ifndef UDP_LOCAL_PORT_RANGE_START33 static u16_t udp_port = UDP_LOCAL_PORT_RANGE_START;36 +static u8_t port_state[UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START + 1] = {0};39 + if (port >= UDP_LOCAL_PORT_RANGE_START && port <= UDP_LOCAL_PORT_RANGE_END) {40 + port_state[port - UDP_LOCAL_PORT_RANGE_START] = 0;69 + udp_port = UDP_LOCAL_PORT_RANGE_START;72 + if (__atomic_load_n(&port_state[udp_port - UDP_LOCAL_PORT_RANGE_START], __ATOMIC_ACQUIRE) == 0…75 + __atomic_store_n(&port_state[udp_port - UDP_LOCAL_PORT_RANGE_START], 1, __ATOMIC_RELEASE…80 + if (n > UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START) {
213 … if (__atomic_load_n(&port_state[udp_port - UDP_LOCAL_PORT_RANGE_START], __ATOMIC_ACQUIRE) == 0) {217 … __atomic_store_n(&port_state[udp_port - UDP_LOCAL_PORT_RANGE_START], 1, __ATOMIC_RELEASE);
129 #ifndef UDP_LOCAL_PORT_RANGE_START
68 #ifndef UDP_LOCAL_PORT_RANGE_START71 #define UDP_LOCAL_PORT_RANGE_START 0xc000 macro73 …CAL_PORT_RANGE(port) ((u16_t)(((port) & (u16_t)~UDP_LOCAL_PORT_RANGE_START) + UDP_LOCAL_PORT_RANGE…77 static u16_t udp_port = UDP_LOCAL_PORT_RANGE_START;118 udp_port = UDP_LOCAL_PORT_RANGE_START; in udp_new_port()123 if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) { in udp_new_port()