Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 25 of 205) sorted by relevance

123456789

/external/quake/quake/src/WinQuake/
Dnet_mp.cpp102 ((struct sockaddr_in *)&broadcastaddr)->sin_family = AF_INET; in MPATH_Init()
103 ((struct sockaddr_in *)&broadcastaddr)->sin_addr.s_addr = INADDR_BROADCAST; in MPATH_Init()
104 ((struct sockaddr_in *)&broadcastaddr)->sin_port = htons(net_hostport); in MPATH_Init()
152 struct sockaddr_in address; in MPATH_OpenSocket()
236 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
237 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
339 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); in MPATH_AddrToString()
340 …haddr >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_po… in MPATH_AddrToString()
355 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr); in MPATH_StringToAddr()
356 ((struct sockaddr_in *)addr)->sin_port = htons(hp); in MPATH_StringToAddr()
[all …]
Dnet_udp.cpp101 *addr = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; in ifc_get_info()
109 *mask = ((struct sockaddr_in*) (void*) &ifr.ifr_addr)->sin_addr.s_addr; in ifc_get_info()
174 sockaddr_in temp; in UDP_Init()
231 struct sockaddr_in in; in UDP_OpenSocket()
317 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
318 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
412 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); in UDP_AddrToString()
413 …haddr >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_po… in UDP_AddrToString()
428 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr); in UDP_StringToAddr()
429 ((struct sockaddr_in *)addr)->sin_port = htons(hp); in UDP_StringToAddr()
[all …]
Dnet_wins.cpp237 ((struct sockaddr_in *)&broadcastaddr)->sin_family = AF_INET; in WINS_Init()
238 ((struct sockaddr_in *)&broadcastaddr)->sin_addr.s_addr = INADDR_BROADCAST; in WINS_Init()
239 ((struct sockaddr_in *)&broadcastaddr)->sin_port = htons((unsigned short)net_hostport); in WINS_Init()
284 struct sockaddr_in address; in WINS_OpenSocket()
367 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
368 ((struct sockaddr_in *)hostaddr)->sin_addr.s_addr = (myAddr & htonl(mask)) | htonl(addr); in PartialIPAddress()
471 haddr = ntohl(((struct sockaddr_in *)addr)->sin_addr.s_addr); in WINS_AddrToString()
472 …haddr >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_po… in WINS_AddrToString()
487 ((struct sockaddr_in *)addr)->sin_addr.s_addr = htonl(ipaddr); in WINS_StringToAddr()
488 ((struct sockaddr_in *)addr)->sin_port = htons((unsigned short)hp); in WINS_StringToAddr()
[all …]
Dnet_bw.cpp118 struct sockaddr_in struct
530 ((struct sockaddr_in *)from)->sin_addr = info1->remoteAddr; in BW_Read()
531 ((struct sockaddr_in *)from)->sin_port = htons(info2->remotePort); in BW_Read()
596 writeInfo->remoteAddr = ((struct sockaddr_in *)to)->sin_addr; in BW_Write()
597 writeInfo->remotePort = ntohs(((struct sockaddr_in *)to)->sin_port); in BW_Write()
625 ((struct sockaddr_in *)addr)->sin_addr.s_net, in BW_AddrToString()
626 ((struct sockaddr_in *)addr)->sin_addr.s_host, in BW_AddrToString()
627 ((struct sockaddr_in *)addr)->sin_addr.s_lh, in BW_AddrToString()
628 ((struct sockaddr_in *)addr)->sin_addr.s_impno, in BW_AddrToString()
629 ntohs(((struct sockaddr_in *)addr)->sin_port) in BW_AddrToString()
[all …]
/external/chromium/net/base/
Dip_endpoint.cc51 if (*address_length < sizeof(struct sockaddr_in)) in ToSockAddr()
53 *address_length = sizeof(struct sockaddr_in); in ToSockAddr()
54 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>(address); in ToSockAddr()
55 memset(addr, 0, sizeof(struct sockaddr_in)); in ToSockAddr()
86 const struct sockaddr_in* addr = in FromSockAddr()
87 reinterpret_cast<const struct sockaddr_in*>(address); in FromSockAddr()
Daddress_list.cc63 const size_t sockaddr_in_size = sizeof(struct sockaddr_in); in AddressList()
66 struct sockaddr_in* addr = reinterpret_cast<struct sockaddr_in*>( in AddressList()
201 case sizeof(struct sockaddr_in): in CreateAddressListFromSockaddr()
203 const struct sockaddr_in* sin = in CreateAddressListFromSockaddr()
204 reinterpret_cast<const struct sockaddr_in*>(address); in CreateAddressListFromSockaddr()
/external/mdnsresponder/mDNSShared/
Ddnsextd.h53 struct sockaddr_in src;
65 struct sockaddr_in cli; // client's source address
95 struct sockaddr_in cli; // clien'ts source address
123 struct sockaddr_in addr; // the address we will bind to
124 struct sockaddr_in llq_addr; // the address we will receive llq requests on.
125 struct sockaddr_in ns_addr; // the real ns server address
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c225 struct sockaddr_in *sinptr; in get_ifi_info()
333 sinptr = (struct sockaddr_in *) &ifr->ifr_addr; in get_ifi_info()
335 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
339 memcpy(ifi->ifi_addr, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
359 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
361 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_addr; in get_ifi_info()
364 sinptr->sin_len = sizeof(struct sockaddr_in); in get_ifi_info()
367 memcpy(ifi->ifi_netmask, sinptr, sizeof(struct sockaddr_in)); in get_ifi_info()
375 sinptr = (struct sockaddr_in *) &ifrcopy.ifr_broadaddr; in get_ifi_info()
378 sinptr->sin_len = sizeof( struct sockaddr_in ); in get_ifi_info()
[all …]
/external/quake/quake/src/QW/client/
Dnet_udp.c61 void NetadrToSockadr (netadr_t *a, struct sockaddr_in *s) in NetadrToSockadr()
70 void SockadrToNetadr (struct sockaddr_in *s, netadr_t *a) in SockadrToNetadr()
122 struct sockaddr_in sadr; in NET_StringToAdr()
161 struct sockaddr_in sadr; in NET_IsClientLegal()
194 struct sockaddr_in from; in NET_GetPacket()
219 struct sockaddr_in addr; in NET_SendPacket()
238 struct sockaddr_in address; in UDP_OpenSocket()
267 struct sockaddr_in address; in NET_GetLocalAddress()
Dnet_wins.c38 void NetadrToSockadr (netadr_t *a, struct sockaddr_in *s) in NetadrToSockadr()
47 void SockadrToNetadr (struct sockaddr_in *s, netadr_t *a) in SockadrToNetadr()
98 struct sockaddr_in sadr; in NET_StringToAdr()
137 struct sockaddr_in sadr; in NET_IsClientLegal()
169 struct sockaddr_in from; in NET_GetPacket()
207 struct sockaddr_in addr; in NET_SendPacket()
234 struct sockaddr_in address; in UDP_OpenSocket()
266 struct sockaddr_in address; in NET_GetLocalAddress()
/external/srtp/include/
Drtp.h77 struct sockaddr_in addr, unsigned int ssrc);
81 struct sockaddr_in addr, unsigned int ssrc);
89 struct sockaddr_in name, /* socket name */
96 struct sockaddr_in name, /* socket name */
/external/openssh/openbsd-compat/
Dfake-rfc2553.c50 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in getnameinfo()
128 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai()
132 memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai()
136 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai()
139 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai()
140 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
Dbindresvport.c57 struct sockaddr_in *in; in bindresvport_sa()
77 in = (struct sockaddr_in *)sa; in bindresvport_sa()
78 salen = sizeof(struct sockaddr_in); in bindresvport_sa()
/external/dropbear/
Dfake-rfc2553.c49 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in getnameinfo()
123 ai = malloc(sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai()
127 memset(ai, '\0', sizeof(*ai) + sizeof(struct sockaddr_in)); in malloc_ai()
131 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai()
134 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai()
135 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
Dsvr-x11fwd.c42 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr);
104 struct sockaddr_in addr; in x11accept()
190 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr) { in send_msg_channel_open_x11()
211 struct sockaddr_in addr; in bindport()
222 sizeof(struct sockaddr_in)) == 0) { in bindport()
/external/netperf/
Dnettest_xti.c536 struct sockaddr_in server; in send_xti_tcp_stream()
823 server_call.addr.maxlen = sizeof(struct sockaddr_in); in send_xti_tcp_stream()
824 server_call.addr.len = sizeof(struct sockaddr_in); in send_xti_tcp_stream()
1245 struct sockaddr_in myaddr_in, peeraddr_in; in recv_xti_tcp_stream()
1379 bind_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1380 bind_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1384 bind_resp.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1385 bind_resp.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1480 call_req.addr.maxlen = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
1481 call_req.addr.len = sizeof(struct sockaddr_in); in recv_xti_tcp_stream()
[all …]
/external/dhcpcd/
Difaddrs.c37 struct sockaddr_in *saddr = NULL; in get_interface()
38 struct sockaddr_in *smask = NULL; in get_interface()
62 saddr = malloc(sizeof(struct sockaddr_in)); in get_interface()
70 smask = malloc(sizeof(struct sockaddr_in)); in get_interface()
/external/wpa_supplicant_6/wpa_supplicant/
Dctrl_iface_udp.c39 struct sockaddr_in addr;
60 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_attach()
68 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_in)); in wpa_supplicant_ctrl_iface_attach()
80 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_detach()
107 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_level()
159 struct sockaddr_in from; in wpa_supplicant_ctrl_iface_receive()
274 struct sockaddr_in addr; in wpa_supplicant_ctrl_iface_init()
439 struct sockaddr_in from; in wpa_supplicant_global_ctrl_iface_receive()
510 struct sockaddr_in addr; in wpa_supplicant_global_ctrl_iface_init()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c33 struct sockaddr_in addr;
54 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_attach()
62 os_memcpy(&dst->addr, from, sizeof(struct sockaddr_in)); in wpa_supplicant_ctrl_iface_attach()
74 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_detach()
101 struct sockaddr_in *from, in wpa_supplicant_ctrl_iface_level()
153 struct sockaddr_in from; in wpa_supplicant_ctrl_iface_receive()
268 struct sockaddr_in addr; in wpa_supplicant_ctrl_iface_init()
433 struct sockaddr_in from; in wpa_supplicant_global_ctrl_iface_receive()
504 struct sockaddr_in addr; in wpa_supplicant_global_ctrl_iface_init()
/external/ipsec-tools/src/racoon/
Dsockmisc.c106 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
107 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
160 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
161 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
162 port1 = ((struct sockaddr_in *)addr1)->sin_port;
163 port2 = ((struct sockaddr_in *)addr2)->sin_port;
225 sa1 = (caddr_t)&((struct sockaddr_in *)addr1)->sin_addr;
226 sa2 = (caddr_t)&((struct sockaddr_in *)addr2)->sin_addr;
227 port1 = ((struct sockaddr_in *)addr1)->sin_port;
228 port2 = ((struct sockaddr_in *)addr2)->sin_port;
[all …]
/external/qemu/slirp/
Dudp.h101 int udp_output _P((struct socket *, struct mbuf *, struct sockaddr_in *));
106 struct sockaddr_in *saddr, struct sockaddr_in *daddr,
/external/valgrind/main/none/tests/
Dfdleak_ipv4.c16 struct sockaddr_in baddr; in server()
17 struct sockaddr_in addr; in server()
42 struct sockaddr_in addr; in client()
/external/quake/quake/src/QW/qwfwd/
Dqwfwd.c69 struct sockaddr_in sin;
70 struct sockaddr_in dest;
109 struct sockaddr_in sin; in connectsock()
170 struct sockaddr_in fsin; in main()
174 struct sockaddr_in address; in main()
/external/webkit/Source/WebKit/android/wds/client/
DClientUtils.cpp30 void createTcpSocket(sockaddr_in& addr, short port) { in createTcpSocket()
31 memset(&addr, 0, sizeof(sockaddr_in)); in createTcpSocket()
/external/chromium/third_party/libjingle/source/talk/base/
Dsocketaddress.h37 struct sockaddr_in;
164 void ToSockAddr(sockaddr_in* saddr) const;
167 bool FromSockAddr(const sockaddr_in& saddr);

123456789