Home
last modified time | relevance | path

Searched refs:sin_port (Results 1 – 25 of 125) sorted by relevance

12345

/external/qemu/slirp/
Dudp.c286 ui->ui_sport = saddr->sin_port; in udp_output2()
287 ui->ui_dport = daddr->sin_port; in udp_output2()
325 daddr.sin_port = so->so_lport; in udp_output()
342 addr.sin_port = 0; in udp_attach()
470 OTOSIN(omsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu()
477 OTOSIN(nmsg, ctl_addr)->sin_port = addr.sin_port; in udp_emu()
519 OTOSIN(omsg, addr)->sin_port, in udp_emu()
530 OTOSIN(omsg, addr)->sin_port = addr.sin_port; in udp_emu()
532 OTOSIN(nmsg, addr)->sin_port = addr.sin_port; in udp_emu()
536 temp_port = OTOSIN(omsg, ctl_addr)->sin_port; in udp_emu()
[all …]
Dtftp.c158 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_oack()
161 daddr.sin_port = spt->client_port; in tftp_send_oack()
198 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_error()
201 daddr.sin_port = spt->client_port; in tftp_send_error()
244 saddr.sin_port = recv_tp->udp.uh_dport; in tftp_send_data()
247 daddr.sin_port = spt->client_port; in tftp_send_data()
/external/quake/quake/src/QW/qwfwd/
Dqwfwd.c117 sin.sin_port = pse->s_port; in connectsock()
118 else if((sin.sin_port = htons((u_short)atoi(service))) == 0) in connectsock()
190 address.sin_port = htons((unsigned short)atoi(argv[1])); in main()
217 memcmp(&p->sin.sin_port, &fsin.sin_port, sizeof(p->sin.sin_port)) == 0) in main()
224 printf("peer %s:%d added", inet_ntoa(fsin.sin_addr), (int)ntohs(fsin.sin_port)); in main()
253 … printf("peer %s:%d removed (timeout)", inet_ntoa(p->sin.sin_addr), (int)ntohs(p->sin.sin_port)); in main()
259 … printf ("peer %s:%d removed (timeout)", inet_ntoa(p->sin.sin_addr), (int)ntohs(p->sin.sin_port)); in main()
Dmisc.c38 ntohs(a.sin_port)); in AdrToString()
55 a.sin_port = ntohs(p); in StringToAdr()
63 && a.sin_port == b.sin_port) in CompareAdr()
/external/quake/quake/src/WinQuake/
Dnet_mp.cpp104 ((struct sockaddr_in *)&broadcastaddr)->sin_port = htons(net_hostport); in MPATH_Init()
163 address.sin_port = htons(port); in MPATH_OpenSocket()
236 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
340 …r >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_port)); in MPATH_AddrToString()
356 ((struct sockaddr_in *)addr)->sin_port = htons(hp); in MPATH_StringToAddr()
407 ((struct sockaddr_in *)addr)->sin_port = htons(net_hostport); in MPATH_GetAddrFromName()
423 if (((struct sockaddr_in *)addr1)->sin_port != ((struct sockaddr_in *)addr2)->sin_port) in MPATH_AddrCompare()
433 return ntohs(((struct sockaddr_in *)addr)->sin_port); in MPATH_GetSocketPort()
439 ((struct sockaddr_in *)addr)->sin_port = htons(port); in MPATH_SetSocketPort()
Dnet_udp.cpp180 temp.sin_port = htons(net_hostport); in UDP_Init()
244 address.in.sin_port = htons(port); in UDP_OpenSocket()
317 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
413 …r >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_port)); in UDP_AddrToString()
429 ((struct sockaddr_in *)addr)->sin_port = htons(hp); in UDP_StringToAddr()
480 ((struct sockaddr_in *)addr)->sin_port = htons(net_hostport); in UDP_GetAddrFromName()
496 if (((struct sockaddr_in *)addr1)->sin_port != ((struct sockaddr_in *)addr2)->sin_port) in UDP_AddrCompare()
506 return ntohs(((struct sockaddr_in *)addr)->sin_port); in UDP_GetSocketPort()
512 ((struct sockaddr_in *)addr)->sin_port = htons(port); in UDP_SetSocketPort()
Dnet_wins.cpp239 ((struct sockaddr_in *)&broadcastaddr)->sin_port = htons((unsigned short)net_hostport); in WINS_Init()
295 address.sin_port = htons((unsigned short)port); in WINS_OpenSocket()
367 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in PartialIPAddress()
472 …r >> 16) & 0xff, (haddr >> 8) & 0xff, haddr & 0xff, ntohs(((struct sockaddr_in *)addr)->sin_port)); in WINS_AddrToString()
488 ((struct sockaddr_in *)addr)->sin_port = htons((unsigned short)hp); in WINS_StringToAddr()
539 ((struct sockaddr_in *)addr)->sin_port = htons((unsigned short)net_hostport); in WINS_GetAddrFromName()
555 if (((struct sockaddr_in *)addr1)->sin_port != ((struct sockaddr_in *)addr2)->sin_port) in WINS_AddrCompare()
565 return ntohs(((struct sockaddr_in *)addr)->sin_port); in WINS_GetSocketPort()
571 ((struct sockaddr_in *)addr)->sin_port = htons((unsigned short)port); in WINS_SetSocketPort()
Dnet_bw.cpp121 unsigned short sin_port; member
531 ((struct sockaddr_in *)from)->sin_port = htons(info2->remotePort); in BW_Read()
597 writeInfo->remotePort = ntohs(((struct sockaddr_in *)to)->sin_port); in BW_Write()
629 ntohs(((struct sockaddr_in *)addr)->sin_port) in BW_AddrToString()
646 ((struct sockaddr_in *)addr)->sin_port = htons((short)hp); in BW_StringToAddr()
663 ((struct sockaddr_in *)addr)->sin_port = htons(((BW_UDPinfo_t *)lowmem_buffer)->localPort); in BW_GetSocketAddr()
726 ((struct sockaddr_in *)hostaddr)->sin_port = htons((short)port); in BW_GetAddrFromName()
743 if (((struct sockaddr_in *)addr1)->sin_port != ((struct sockaddr_in *)addr2)->sin_port) in BW_AddrCompare()
753 return ntohs(((struct sockaddr_in *)addr)->sin_port); in BW_GetSocketPort()
759 ((struct sockaddr_in *)addr)->sin_port = htons(port); in BW_SetSocketPort()
/external/quake/quake/src/QW/client/
Dnet_udp.c67 s->sin_port = a->port; in NetadrToSockadr()
73 a->port = s->sin_port; in SockadrToNetadr()
130 sadr.sin_port = 0; in NET_StringToAdr()
138 sadr.sin_port = htons(atoi(colon+1)); in NET_StringToAdr()
173 sadr.sin_port = 0; in NET_IsClientLegal()
255 address.sin_port = 0; in UDP_OpenSocket()
257 address.sin_port = htons((short)port); in UDP_OpenSocket()
278 net_local_adr.port = address.sin_port; in NET_GetLocalAddress()
Dnet_wins.c44 s->sin_port = a->port; in NetadrToSockadr()
50 a->port = s->sin_port; in SockadrToNetadr()
106 sadr.sin_port = 0; in NET_StringToAdr()
114 sadr.sin_port = htons((short)atoi(colon+1)); in NET_StringToAdr()
149 sadr.sin_port = 0; in NET_IsClientLegal()
254 address.sin_port = 0; in UDP_OpenSocket()
256 address.sin_port = htons((short)port); in UDP_OpenSocket()
277 net_local_adr.port = address.sin_port; in NET_GetLocalAddress()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c68 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
82 from->sin_port == dst->addr.sin_port) { in wpa_supplicant_ctrl_iface_detach()
90 ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_detach()
112 from->sin_port == dst->addr.sin_port) { in wpa_supplicant_ctrl_iface_level()
115 ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_level()
299 addr.sin_port = htons(port); in wpa_supplicant_ctrl_iface_init()
386 ntohs(dst->addr.sin_port)); in wpa_supplicant_ctrl_iface_send()
554 addr.sin_port = htons(port); in wpa_supplicant_global_ctrl_iface_init()
/external/wpa_supplicant_8/src/wps/
Dhttp_client.c62 ntohs(c->dst.sin_port)); in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
91 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
227 dst->sin_port = htons(atoi(port)); in http_client_url_parse()
229 dst->sin_port = htons(80); in http_client_url_parse()
276 ntohs(dst.sin_port)); in http_client_url()
Dhttp_server.c50 ntohs(req->cli.sin_port)); in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
139 ntohs(req->cli.sin_port)); in http_request_send()
214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb()
257 sin.sin_port = htons(srv->port); in http_server_init()
Dwps_upnp_ssdp.c245 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_stop()
294 dest.sin_port = htons(UPNP_MULTICAST_PORT); in advertisement_state_machine_handler()
403 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler()
418 ntohs(a->client.sin_port)); in msearchreply_state_machine_handler()
714 "%s", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), buf); in ssdp_listener_handler()
748 addr.sin_port = htons(UPNP_MULTICAST_PORT); in ssdp_listener_open()
825 sin->sin_port = 0; in add_ssdp_network()
829 sin->sin_port = 0; in add_ssdp_network()
/external/openssl/apps/
Ds_cb.c795 length += sizeof(peer.s4.sin_port); in generate_cookie_callback()
819 &peer.s4.sin_port, in generate_cookie_callback()
820 sizeof(peer.s4.sin_port)); in generate_cookie_callback()
821 memcpy(buffer + sizeof(peer.s4.sin_port), in generate_cookie_callback()
876 length += sizeof(peer.s4.sin_port); in verify_cookie_callback()
900 &peer.s4.sin_port, in verify_cookie_callback()
901 sizeof(peer.s4.sin_port)); in verify_cookie_callback()
902 memcpy(buffer + sizeof(peer.s4.sin_port), in verify_cookie_callback()
/external/libppp/src/
Dtcp.c74 dest.sin_port = htons(atoi(port)); in tcp_OpenConnection()
75 if (dest.sin_port == 0) { in tcp_OpenConnection()
78 dest.sin_port = sp->s_port; in tcp_OpenConnection()
200 inet_ntoa(sock.sin_addr), ntohs(sock.sin_port)); in tcp_Create()
Dserver.c121 if (ntohs(sin->sin_port) < 1024) { in server_Read()
124 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read()
130 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read()
170 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); in server_Read()
337 sin->sin_port = htons(port); in server_TcpOpen()
Dudp.c124 inet_ntoa(dev->sock.sin_addr), ntohs(dev->sock.sin_port)); in udp_Recvfrom()
218 dev->sock.sin_port = htons(atoi(port)); in udp_CreateDevice()
219 if (dev->sock.sin_port == 0) { in udp_CreateDevice()
222 dev->sock.sin_port = sp->s_port; in udp_CreateDevice()
/external/netperf/
Dnettest_xti.c809 server.sin_port = (short)xti_tcp_stream_response->data_port_number; in send_xti_tcp_stream()
810 server.sin_port = htons(server.sin_port); in send_xti_tcp_stream()
831 printf(" port: %d\n",ntohs(server.sin_port)); in send_xti_tcp_stream()
1320 myaddr_in.sin_port = 0; in recv_xti_tcp_stream()
1402 ntohs(myaddr_in.sin_port)); in recv_xti_tcp_stream()
1446 (int) ntohs(myaddr_in.sin_port); in recv_xti_tcp_stream()
1532 ntohs(peeraddr_in.sin_port)); in recv_xti_tcp_stream()
1996 server.sin_port = (short)xti_tcp_rr_response->data_port_number; in send_xti_tcp_rr()
1997 server.sin_port = htons(server.sin_port); in send_xti_tcp_rr()
2016 printf(" port: %d\n",ntohs(server.sin_port)); in send_xti_tcp_rr()
[all …]
/external/dnsmasq/src/
Dnetwork.c240 addr.in.sin_port = htons(daemon->port); in iface_allowed_v4()
329 addr.in.sin_port = htons(daemon->port); in create_wildcard_listeners()
363 addr.in.sin_port = htons(TFTP_PORT); in create_wildcard_listeners()
469 short save = iface->addr.in.sin_port; in create_bound_listener()
470 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listener()
476 iface->addr.in.sin_port = save; in create_bound_listener()
608 short save = iface->addr.in.sin_port; in create_bound_listeners()
609 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listeners()
615 iface->addr.in.sin_port = save; in create_bound_listeners()
653 addr.in.sin_port = port; in random_sock()
[all …]
Dutil.c257 s1->in.sin_port == s2->in.sin_port && in sockaddr_isequal()
334 port = ntohs(addr->in.sin_port); in prettyprint_addr()
343 port = ntohs(addr->in.sin_port); in prettyprint_addr()
/external/valgrind/main/none/tests/
Dfdleak_ipv4.c27 addr.sin_port = htons(12321); in server()
47 addr.sin_port = htons(12321); in client()
/external/chromium/third_party/libevent/
Devutil.c104 listen_addr.sin_port = 0; /* kernel chooses port. */ in evutil_socketpair()
138 || listen_addr.sin_port != connect_addr.sin_port) in evutil_socketpair()
/external/chromium/net/base/
Dip_endpoint.cc57 addr->sin_port = htons(port_); in ToSockAddr()
88 port_ = ntohs(addr->sin_port); in FromSockAddr()
/external/ipsec-tools/src/racoon/
Dsockmisc.c162 port1 = ((struct sockaddr_in *)addr1)->sin_port;
163 port2 = ((struct sockaddr_in *)addr2)->sin_port;
227 port1 = ((struct sockaddr_in *)addr1)->sin_port;
228 port2 = ((struct sockaddr_in *)addr2)->sin_port;
470 sin->sin_port =
471 ((struct sockaddr_in *)&ss)->sin_port;
506 sin->sin_port = ((struct sockaddr_in *)&ss)->sin_port;
1134 port = ((struct sockaddr_in *)addr)->sin_port; in extract_port()
1157 port_ptr = &(((struct sockaddr_in *)addr)->sin_port); in get_port_ptr()

12345