Home
last modified time | relevance | path

Searched refs:min_port (Results 1 – 23 of 23) sorted by relevance

/external/ltp/testcases/network/stress/ns-tools/
Dfind_portbundle89 min_port=$start_port
90 max_port=`expr $min_port + $port_quantity - 1`
108 min_port=`expr $line + 1`
109 max_port=`expr $min_port + $port_quantity - 1`
122 if [ $min_port -eq $max_port ]; then
123 echo "$min_port"
125 echo "$min_port-$max_port"
/external/webrtc/webrtc/p2p/base/
Dbasicpacketsocketfactory.cc48 uint16_t min_port, in CreateUdpSocket() argument
57 if (BindSocket(socket, address, min_port, max_port) < 0) { in CreateUdpSocket()
68 uint16_t min_port, in CreateServerTcpSocket() argument
84 if (BindSocket(socket, local_address, min_port, max_port) < 0) { in CreateServerTcpSocket()
184 uint16_t min_port, in BindSocket() argument
187 if (min_port == 0 && max_port == 0) { in BindSocket()
192 for (int port = min_port; ret < 0 && port <= max_port; ++port) { in BindSocket()
Dstunport.h52 uint16_t min_port, in Create() argument
59 new UDPPort(thread, factory, network, ip, min_port, max_port, username, in Create()
114 uint16_t min_port,
234 uint16_t min_port, in Create() argument
241 ip, min_port, max_port, in Create()
262 uint16_t min_port, in StunPort() argument
272 min_port, in StunPort()
Dbasicpacketsocketfactory.h30 uint16_t min_port,
33 uint16_t min_port,
47 uint16_t min_port,
Drelayport.h42 uint16_t min_port, in Create() argument
46 return new RelayPort(thread, factory, network, ip, min_port, max_port, in Create()
80 uint16_t min_port,
Dportallocator.h207 int min_port() const { return min_port_; } in min_port() function
209 bool SetPortRange(int min_port, int max_port) { in SetPortRange() argument
210 if (min_port > max_port) { in SetPortRange()
214 min_port_ = min_port; in SetPortRange()
Dpacketsocketfactory.h33 uint16_t min_port,
37 uint16_t min_port,
Dtcpport.h35 uint16_t min_port, in Create() argument
40 TCPPort* port = new TCPPort(thread, factory, network, ip, min_port, in Create()
67 uint16_t min_port,
Dturnport.h61 uint16_t min_port, in Create() argument
69 return new TurnPort(thread, factory, network, ip, min_port, max_port, in Create()
171 uint16_t min_port,
Dtcpport.cc79 uint16_t min_port, in TCPPort() argument
89 min_port, in TCPPort()
106 rtc::SocketAddress(ip(), 0), min_port(), max_port(), in Init()
Dstunport.cc190 uint16_t min_port, in UDPPort() argument
201 min_port, in UDPPort()
218 rtc::SocketAddress(ip(), 0), min_port(), max_port()); in Init()
Drelayport.cc185 uint16_t min_port, in RelayPort() argument
194 min_port, in RelayPort()
492 port_->min_port(), port_->max_port()); in Connect()
Dport.h129 uint16_t min_port,
264 uint16_t min_port() { return min_port_; } in min_port() function
Dturnport.cc216 uint16_t min_port, in TurnPort() argument
229 min_port, in TurnPort()
323 rtc::SocketAddress(ip(), 0), min_port(), max_port()); in CreateTurnClientSocket()
Dport.cc163 uint16_t min_port, in Port() argument
173 min_port_(min_port), in Port()
Dport_unittest.cc105 uint16_t min_port, in TestPort() argument
114 min_port, in TestPort()
139 rtc::SocketAddress addr(ip(), min_port()); in PrepareAddress()
920 uint16_t min_port, in CreateUdpSocket() argument
929 uint16_t min_port, in CreateServerTcpSocket() argument
/external/webrtc/webrtc/p2p/client/
Dfakeportallocator.h33 uint16_t min_port, in Create() argument
39 TestUDPPort* port = new TestUDPPort(thread, factory, network, ip, min_port, in Create()
63 uint16_t min_port, in TestUDPPort() argument
73 min_port, in TestUDPPort()
Dbasicportallocator.cc730 rtc::SocketAddress(ip_, 0), session_->allocator()->min_port(), in Init()
890 session_->allocator()->min_port(), session_->allocator()->max_port(), in CreateUDPPorts()
925 session_->allocator()->min_port(), in CreateTCPPorts()
955 session_->allocator()->min_port(), in CreateStunPorts()
1000 session_->allocator()->min_port(), in CreateGturnPort()
1058 session_->allocator()->min_port(), in CreateTurnPort()
Dportallocator_unittest.cc138 bool SetPortRange(int min_port, int max_port) { in SetPortRange() argument
139 return allocator_->SetPortRange(min_port, max_port); in SetPortRange()
227 int min_port, int max_port) { in CheckPort() argument
228 return (addr.port() >= min_port && addr.port() <= max_port); in CheckPort()
/external/dnsmasq/src/
Dnetwork.c577 unsigned int ports_avail = 65536u - (unsigned short) daemon->min_port; in random_sock()
589 if (daemon->min_port != 0) in random_sock()
590 port = htons(daemon->min_port + (port % ((unsigned short) ports_avail))); in random_sock()
Ddnsmasq.h599 int port, query_port, min_port; member
Doption.c1378 if (!atoi_check16(arg, &daemon->min_port)) option = '?'; in one_opt()
/external/dnsmasq/
DCHANGELOG352 Change implementation of min_port to work even if min-port