Lines Matching refs:port
179 EndpointHashDefinition::HashKey(uint16 port) const
181 return port;
193 EndpointHashDefinition::Compare(uint16 port, TCPEndpoint* endpoint) const
195 return endpoint->LocalAddress().Port() == port;
270 uint16 port = local.Port();
272 local.SetPort(port);
291 // socket to connect to a different remote (address, port) than it was
409 uint16 port = address.Port();
416 if (ntohs(port) <= kLastReservedPort && geteuid() != 0)
422 EndpointTable::ValueIterator portUsers = fEndpointHash.Lookup(port);
474 // try to retrieve a more or less random port
479 uint16 port = counter & 0xffff;
480 if (port <= kLastReservedPort)
481 port += kLastReservedPort;
483 fLastPort = port;
484 port = htons(port);
486 if (!fEndpointHash.Lookup(port).HasNext()) {
487 // found a port
490 newAddress.SetPort(port);
504 // could not find a port!