Lines Matching defs:port
4 * Copyright 2008 Android Open Source Project (source port randomization)
166 /* BIONIC-BEGIN: implement source port randomization */
197 /* first try to bind to a random source port a few times */
199 /* find a random port between 1025 .. 65534 */
200 int port = 1025 + (res_randomid() % (65535-1025));
202 u.sin.sin_port = htons(port);
204 u.sin6.sin6_port = htons(port);
211 /* let the system decide which port is best */
1092 * port with no nameserver will cause an
1093 * ICMP port unreachable message to be returned.