Lines Matching defs:port
115 /** Limits the source port to be >= 1024 by default */
117 #define DNS_PORT_ALLOWED(port) ((port) >= 1024)
290 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
970 u16_t port = (u16_t)DNS_RAND_TXID();
971 if (DNS_PORT_ALLOWED(port)) {
972 err = udp_bind(pcb, IP_ANY_TYPE, port);
974 /* this port is not allowed, try again */
1263 dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
1275 LWIP_UNUSED_ARG(port);
1318 port != get_local_udp_server_port()) {
1322 if (addr->addr != ipaddr_addr(LOCAL_SERVER_IP) || port != get_local_udp_server_port()) {