Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 29) sorted by relevance

12

/bionic/libc/bionic/
Dnetinet_in.cpp56 static short port; in bindresvport() local
57 if (port == 0) { in bindresvport()
58 port = START_PORT + (getpid() % NUM_PORTS); in bindresvport()
61 for (size_t i = NUM_PORTS; i > 0; i--, port++) { in bindresvport()
62 if (port == END_PORT) port = START_PORT; in bindresvport()
63 sin->sin_port = htons(port); in bindresvport()
/bionic/libc/kernel/uapi/linux/netfilter/
Dnf_conntrack_tuple_common.h32 __be16 port; member
35 __be16 port; member
41 __be16 port; member
44 __be16 port; member
/bionic/libc/tools/
Dgenserv.py18 def __init__(self,name,port,proto): argument
20 self.port = port
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
/bionic/libc/dns/net/
Dgetservent.c44 int port; in getservent_r() local
85 port = ((((unsigned char*)p)[0] << 8) | in getservent_r()
88 rs->servent.s_port = htons(port); in getservent_r()
137 struct servent* getservbyport(int port, const char* proto) { in getservbyport() argument
145 if (s->s_port == port && (proto == NULL || strcmp(s->s_proto, proto) == 0)) { in getservbyport()
Dgetnameinfo.c180 u_short port; in getnameinfo_inet() local
210 port = ((const struct sockinet *)(const void *)sa)->si_port; in getnameinfo_inet()
224 sp = getservbyport(port, in getnameinfo_inet()
232 snprintf(numserv, sizeof(numserv), "%u", ntohs(port)); in getnameinfo_inet()
Dgetaddrinfo.c1146 int port; in get_port() local
1182 port = str2number(servname); in get_port()
1183 if (port >= 0) { in get_port()
1186 if (port < 0 || port > 65535) in get_port()
1188 port = htons(port); in get_port()
1207 port = sp->s_port; in get_port()
1214 ai->ai_addr)->sin_port = port; in get_port()
1219 ai->ai_addr)->sin6_port = port; in get_port()
/bionic/libc/kernel/uapi/linux/
Dqrtr.h50 __le32 port; member
54 __le32 port; member
Dip_vs.h100 __be16 port; member
109 __be16 port; member
135 __be16 port; member
146 __be16 port; member
159 __be16 port; member
Drds.h207 #define RDS_CONG_MONITOR_BIT(port) (((unsigned int) port) % RDS_CONG_MONITOR_SIZE) argument
208 #define RDS_CONG_MONITOR_MASK(port) (1ULL << RDS_CONG_MONITOR_BIT(port)) argument
Dkernelcapi.h30 unsigned int port; member
Ddns_resolver.h69 __u16 port; member
Dserial.h26 unsigned int port; member
Dscif_ioctl.h24 __u16 port; member
Dswitchtec_ioctl.h130 __u32 port; member
Dtipc.h72 struct tipc_socket_addr port; member
Dinet_diag.h91 int port; member
Dusbdevice_fs.h103 char port[127]; member
Dif.h126 unsigned char port; member
Dethtool.h31 __u8 port; member
873 __u8 port; member
/bionic/libc/kernel/uapi/xen/
Devtchn.h35 unsigned int port; member
39 unsigned int port; member
/bionic/libc/kernel/uapi/rdma/hfi/
Dhfi1_user.h82 __aligned_u64 port; member
/bionic/libc/kernel/uapi/sound/
Dsfnt_info.h138 int port; member
Dasequencer.h86 unsigned char port; member
/bionic/libc/kernel/uapi/scsi/
Dcxlflash_ioctl.h157 __u16 port; member
/bionic/libc/dns/resolv/
Dres_send.c188 int port = 1025 + (res_randomid() % (65535-1025)); in random_bind() local
190 u.sin.sin_port = htons(port); in random_bind()
192 u.sin6.sin6_port = htons(port); in random_bind()

12