Searched refs:sin (Results 1 – 9 of 9) sorted by relevance
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 49 sockaddr_in sin; in bindRandomAddr() local 50 sin.sin_family = AF_INET; in bindRandomAddr() 51 sin.sin_port = 0; in bindRandomAddr() 52 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in bindRandomAddr() 54 while (sin.sin_addr.s_addr == htonl(INADDR_LOOPBACK)) { in bindRandomAddr() 56 ((uint8_t *) &sin.sin_addr.s_addr) + 1, in bindRandomAddr() 57 sizeof(sin.sin_addr.s_addr) - 1); in bindRandomAddr() 62 if (bind(listensock, (sockaddr *) &sin, sizeof(sin)) == -1) PERROR_EXIT("bind"); in bindRandomAddr() 131 struct sockaddr_in sin; in main() local 132 socklen_t len = sizeof(sin); in main() [all …]
|
/system/netd/include/ |
D | FwmarkCommand.h | 30 sockaddr_in sin; member 40 addr.sin = *((struct sockaddr_in*) saddr); in FwmarkConnectInfo()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 88 sockaddr_in sin = {}; in bindAndListen() local 89 socklen_t len = sizeof(sin); in bindAndListen() 90 if (getsockname(s, (sockaddr*) &sin, &len)) { in bindAndListen() 93 return ntohs(sin.sin_port); in bindAndListen()
|
/system/chre/external/kiss_fft/ |
D | _kiss_fft_guts.h | 129 # define KISS_FFT_SIN(phase) floor(.5+SAMP_MAX * sin (phase)) 133 # define KISS_FFT_SIN(phase) _mm_set1_ps( sin(phase) ) 137 # define KISS_FFT_SIN(phase) (kiss_fft_scalar) sin(phase)
|
/system/netd/server/ |
D | NetdConstants.cpp | 120 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; in parsePrefix() local 121 rawAddress = &sin->sin_addr; in parsePrefix()
|
D | ClatdController.cpp | 131 struct sockaddr_in sin = { in isIpv4AddressFree() local 136 socklen_t len = sizeof(sin); in isIpv4AddressFree() 137 bool inuse = connect(s, (struct sockaddr*)&sin, sizeof(sin)) == 0 && in isIpv4AddressFree() 138 getsockname(s, (struct sockaddr*)&sin, &len) == 0 && (size_t)len >= sizeof(sin) && in isIpv4AddressFree() 139 sin.sin_addr.s_addr == addr; in isIpv4AddressFree()
|
D | SockDiagTest.cpp | 186 sockaddr_in *sin = (sockaddr_in *) sa; in fillDiagAddr() local 187 memcpy(addr, &sin->sin_addr, sizeof(sin->sin_addr)); in fillDiagAddr()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 74 sockaddr_in* sin = (sockaddr_in*) res[0].ai_addr; in forString() local 75 if (ip) *ip = IPAddress(sin->sin_addr); in forString()
|
/system/core/libnetutils/ |
D | ifc_utils.c | 232 struct sockaddr_in *sin = (struct sockaddr_in *) sa; in init_sockaddr_in() local 233 sin->sin_family = AF_INET; in init_sockaddr_in() 234 sin->sin_port = 0; in init_sockaddr_in() 235 sin->sin_addr.s_addr = addr; in init_sockaddr_in() 292 struct sockaddr_in *sin = (struct sockaddr_in *) &ss; in ifc_act_on_address() local 293 addr = &sin->sin_addr; in ifc_act_on_address()
|