Home
last modified time | relevance | path

Searched refs:host_ent (Results 1 – 22 of 22) sorted by relevance

/dports/sysutils/LPRng/lprng-3.8.C/src/common/
H A Dgethostinfo.c106 if( host_ent == 0 ){ in Find_fqdn()
111 if( host_ent == 0 ){ in Find_fqdn()
115 if( host_ent == 0 ){ in Find_fqdn()
162 memcpy( &temp_sockaddr, *host_ent->h_addr_list, host_ent->h_length ); in Fixup_fqdn()
164 host_ent->h_name, inet_ntop( host_ent->h_addrtype, in Fixup_fqdn()
167 host_ent->h_length, host_ent->h_addrtype ); in Fixup_fqdn()
168 if( host_ent ){ in Fixup_fqdn()
172 host_ent->h_name, in Fixup_fqdn()
183 if( host_ent == 0 ){ in Fixup_fqdn()
354 if( host_ent ){ in Get_hostinfo_byaddr()
[all …]
/dports/net/libnet/libnet-1.1.6/src/
H A Dlibnet_resolve.c58 struct hostent *host_ent = NULL; in libnet_addr2name4() local
76 if (!host_ent) in libnet_addr2name4()
99 struct hostent *host_ent = NULL; in libnet_addr2name4_r() local
108 if (!host_ent) in libnet_addr2name4_r()
125 struct hostent *host_ent; in libnet_name2addr4() local
141 memcpy(&addr.s_addr, host_ent->h_addr, host_ent->h_length); in libnet_name2addr4()
201 struct hostent *host_ent = NULL; in libnet_addr2name6_r() local
211 host_ent = NULL; in libnet_addr2name6_r()
218 if (!host_ent) in libnet_addr2name6_r()
244 struct hostent *host_ent; in libnet_name2addr6() local
[all …]
/dports/net/thcrut/thcrut-1.2.5/Libnet-1.0.2a/src/
H A Dlibnet_resolve.c45 struct hostent *host_ent = NULL; in libnet_host_lookup() local
60 host_ent = gethostbyaddr((char *)&addr, sizeof(struct in_addr), AF_INET); in libnet_host_lookup()
62 if (!host_ent) in libnet_host_lookup()
71 strncpy(((which % 2) ? hostname : hostname2), host_ent->h_name, in libnet_host_lookup()
82 struct hostent *host_ent = NULL; in libnet_host_lookup_r() local
88 host_ent = gethostbyaddr((char *)&addr, sizeof(struct in_addr), AF_INET); in libnet_host_lookup_r()
90 if (!host_ent) in libnet_host_lookup_r()
100 strncpy(hostname, host_ent->h_name, sizeof(hostname)); in libnet_host_lookup_r()
109 struct hostent *host_ent; in libnet_name_resolve() local
118 if (!(host_ent = gethostbyname(host_name))) in libnet_name_resolve()
[all …]
/dports/security/fragrouter/fragrouter-1.6/Libnet-0.99b/src/
H A Dresolve.c46 struct hostent *host_ent = NULL; in host_lookup() local
61 host_ent = gethostbyaddr((char *)&addr, sizeof(struct in_addr), AF_INET); in host_lookup()
63 if (!host_ent) in host_lookup()
72 strncpy(((which % 2) ? hostname : hostname2), host_ent->h_name, in host_lookup()
83 struct hostent *host_ent = NULL; in host_lookup_r() local
89 host_ent = gethostbyaddr((char *)&addr, sizeof(struct in_addr), AF_INET); in host_lookup_r()
91 if (!host_ent) in host_lookup_r()
101 strncpy(hostname, host_ent->h_name, sizeof(hostname)); in host_lookup_r()
110 struct hostent *host_ent; in name_resolve() local
119 if (!(host_ent = gethostbyname(host_name))) return (-1); in name_resolve()
[all …]
/dports/sysutils/LPRng/lprng-3.8.C/UTILS/
H A Dtcpsend.c54 struct hostent *host_ent = 0; in main() local
76 if( (host_ent = gethostbyname( host )) ){ in main()
77 dest_sin.sin_family = host_ent->h_addrtype; in main()
78 if( host_ent->h_length > sizeof( dest_sin.sin_addr ) ){ in main()
82 memcpy(&dest_sin.sin_addr, host_ent->h_addr_list[0], host_ent->h_length ); in main()
/dports/sysutils/LPRng/lprng-3.8.C/src/AUTHENTICATE/
H A Dsclient.c50 struct hostent *host_ent; local
97 host_ent = gethostbyname(host);
98 if(host_ent == 0){
104 sin.sin_family = host_ent->h_addrtype;
105 (void) memcpy((char *)&sin.sin_addr, (char *)host_ent->h_addr,
106 sizeof(host_ent->h_addr));
/dports/net/pwnat/pwnat-5de412c/
H A Dudpserver.c97 struct hostent *host_ent; in udpserver() local
104 host_ent = gethostbyname("3.3.3.3"); in udpserver()
105 timeexc_ip = *(uint32_t*)host_ent->h_addr_list[0]; in udpserver()
179 host_ent = gethostbyname(szHostName); in udpserver()
183 host_ent = gethostbyname(host_str); in udpserver()
186 timeexc_ip = *(uint32_t*)host_ent->h_addr_list[0]; in udpserver()
269 host_ent = gethostbyname(ips); in udpserver()
270 memcpy(&(sa.sin_addr), host_ent->h_addr, host_ent->h_length); in udpserver()
/dports/net-im/kopete/kopete-21.12.3/protocols/jabber/libjingle/talk/base/
H A Dipaddress.cc190 bool IPFromHostEnt(hostent* host_ent, IPAddress* out) { in IPFromHostEnt() argument
191 return IPFromHostEnt(host_ent, 0, out); in IPFromHostEnt()
194 bool IPFromHostEnt(hostent* host_ent, int idx, IPAddress* out) { in IPFromHostEnt() argument
198 char** requested_address = host_ent->h_addr_list; in IPFromHostEnt()
209 if (host_ent->h_addrtype == AF_INET) { in IPFromHostEnt()
214 } else if (host_ent->h_addrtype == AF_INET6) { in IPFromHostEnt()
216 ::memcpy(&ip.s6_addr, *requested_address, host_ent->h_length); in IPFromHostEnt()
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/tools/SRB2Launcher/
H A Dmserv.c136 struct hostent *host_ent; in MS_GetIP() local
140 host_ent = gethostbyname(hostname); in MS_GetIP()
141 if (host_ent==NULL) in MS_GetIP()
143 memcpy(&addr.sin_addr, host_ent->h_addr_list[0], sizeof(struct in_addr)); in MS_GetIP()
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/
H A Dmserv.c619 struct hostent *host_ent; in MS_GetIP() local
624 host_ent = gethostbyname(hostname); in MS_GetIP()
625 if (host_ent==NULL) in MS_GetIP()
628 memcpy(&ms_addr.sin_addr, host_ent->h_addr_list[0], sizeof(struct in_addr)); in MS_GetIP()
/dports/games/quakeforge/quakeforge-0.7.2/qw/source/
H A Dmaster.c410 struct hostent *host_ent; in make_host_addr() local
412 host_ent = gethostbyname (host); in make_host_addr()
413 if (!host_ent) in make_host_addr()
416 memcpy (&host_addr->sin_addr, host_ent->h_addr_list[0], in make_host_addr()
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/tools/masterserver/
H A Dipcs.cpp99 struct hostent *host_ent; in getIP() local
104 host_ent = gethostbyname(ip_addr); in getIP()
105 if (host_ent == NULL) in getIP()
107 memcpy(&addr.sin_addr, host_ent->h_addr_list[0], in getIP()
/dports/science/code_saturne/code_saturne-7.1.0/src/base/
H A Dcs_control.c662 struct hostent *host_ent; in _comm_sock_connect() local
696 host_ent = gethostbyname(host_name); in _comm_sock_connect()
698 if (host_ent == NULL) in _comm_sock_connect()
699 host_ent = gethostbyname("localhost"); in _comm_sock_connect()
701 if (host_ent == NULL) in _comm_sock_connect()
706 memcpy(&sock_addr.sin_addr, host_ent->h_addr_list[0], host_ent->h_length); in _comm_sock_connect()
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/common/
H A Dget.c622 struct hostent *host_ent; in get_name2addr4() local
633 if (!(host_ent = gethostbyname(hostname))) { in get_name2addr4()
640 memcpy(&addr.s_addr, host_ent->h_addr, sizeof(addr.s_addr)); in get_name2addr4()
/dports/lang/seed7/seed7/src/
H A Dsoc_rtl.c1125 struct hostent *host_ent; in socInetAddr() local
1211 host_ent = gethostbyname(name); in socInetAddr()
1212 if (host_ent == NULL && h_errno == TRY_AGAIN) { in socInetAddr()
1219 host_ent = gethostbyname(name); in socInetAddr()
1221 if (unlikely(host_ent == NULL)) { in socInetAddr()
1243 if (host_ent->h_addrtype == AF_INET && in socInetAddr()
1244 host_ent->h_length == sizeof(inet_address->sin_addr.s_addr)) { in socInetAddr()
1250 inet_address->sin_family = host_ent->h_addrtype; in socInetAddr()
1252 memcpy(&inet_address->sin_addr.s_addr, host_ent->h_addr, in socInetAddr()
1253 (size_t) host_ent->h_length); in socInetAddr()
/dports/net/ptunnel/PingTunnel/
H A Dptunnel.c122 struct hostent *host_ent; in main() local
207 if (NULL == (host_ent = gethostbyname(argv[i]))) { in main()
211 given_proxy_ip = *(uint32_t*)host_ent->h_addr_list[0]; in main()
227 if (NULL == (host_ent = gethostbyname(argv[i]))) { in main()
231 given_dst_ip = *(uint32_t*)host_ent->h_addr_list[0]; in main()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/network/
H A Dpsnet2.cpp1081 struct hostent *host_ent; local
1101 host_ent = gethostbyname( ip_string );
1102 if ( !host_ent ){
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gdb/gdb/
H A Dremote-m32r-sdi.c308 struct hostent *host_ent; in m32r_open() local
/dports/devel/avr-gdb/gdb-7.3.1/gdb/
H A Dremote-m32r-sdi.c366 struct hostent *host_ent; in m32r_open() local
/dports/devel/gdb761/gdb-7.6.1/gdb/
H A Dremote-m32r-sdi.c364 struct hostent *host_ent; in m32r_open() local
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gdb/gdb/
H A Dremote-m32r-sdi.c308 struct hostent *host_ent; in m32r_open() local
/dports/sysutils/LPRng/lprng-3.8.C/
H A DCHANGES5572 Get_remote_hostbyaddr() used host_ent when it was undefine/null.