Home
last modified time | relevance | path

Searched refs:hostent (Results 1 – 25 of 58) sorted by relevance

123

/external/chromium/third_party/libjingle/source/talk/base/
Dnethelpers.cc62 hostent* SafeGetHostByName(const char* hostname, int* herrno) { in SafeGetHostByName()
66 hostent* result = NULL; in SafeGetHostByName()
70 hostent* ent = gethostbyname(hostname); in SafeGetHostByName()
78 int total_len = sizeof(hostent); in SafeGetHostByName()
91 result = static_cast<hostent*>(malloc(total_len)); in SafeGetHostByName()
95 char* p = reinterpret_cast<char*>(result) + sizeof(hostent); in SafeGetHostByName()
127 ASSERT(kInitHostentLen > sizeof(hostent)); in SafeGetHostByName()
134 char* aux = static_cast<char*>(buf) + sizeof(hostent); in SafeGetHostByName()
135 size_t aux_len = size - sizeof(hostent); in SafeGetHostByName()
136 while ((ret = gethostbyname_r(hostname, reinterpret_cast<hostent*>(buf), aux, in SafeGetHostByName()
[all …]
Dnethelpers.h64 hostent* result_;
71 hostent* SafeGetHostByName(const char* hostname, int* herrno);
72 void FreeHostEnt(hostent* host);
Dsocketaddress.cc212 if (hostent* pHost = SafeGetHostByName(hostname_.c_str(), &errcode)) { in ResolveIP()
345 if (hostent* pHost = SafeGetHostByName(hostname.c_str(), &errcode)) { in GetLocalIPs()
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c379 #define ENTNAME hostent
390 typedef struct hostent hostent; typedef
411 hostent * result_buf,
441 hostent * result_buf,
474 hostent * result_buf,
505 hostent * hostent; member
531 hostent * result_buf,
593 hostent * result_buf,
661 hostent * result_buf, in _nss_mdns_gethostbyname_r()
685 hostent * result_buf, in _nss_mdns_gethostbyname2_r()
[all …]
/external/ppp/pppd/plugins/radius/
Dip_util.c31 struct hostent *hp; in rc_get_ipaddr()
37 else if ((hp = gethostbyname (host)) == (struct hostent *) NULL) in rc_get_ipaddr()
105 struct hostent *hp; in rc_ip_hostname()
Dconfig.c414 struct hostent *hp; in find_match()
425 if ((hp = gethostbyname (hostname)) == (struct hostent *) NULL) in find_match()
/external/tcpdump/missing/
Daddrinfo.h83 extern void freehostent (struct hostent *);
89 extern struct hostent *getipnodebyaddr (const void *, size_t, int, int *);
90 extern struct hostent *getipnodebyname (const char *, int, int, int *);
Dgetnameinfo.c111 struct hostent *hp;
/external/openssl/crypto/bio/
Db_sock.c110 struct hostent *ent;
117 static void ghbn_free(struct hostent *a);
118 static struct hostent *ghbn_dup(struct hostent *a);
125 struct hostent *he; in BIO_get_host_ip()
296 static struct hostent *ghbn_dup(struct hostent *a)
298 struct hostent *ret;
302 ret=(struct hostent *)OPENSSL_malloc(sizeof(struct hostent));
304 memset(ret,0,sizeof(struct hostent));
350 static void ghbn_free(struct hostent *a)
375 struct hostent *BIO_gethostbyname(const char *name) in BIO_gethostbyname()
[all …]
/external/openssl/apps/
Ds_socket.c100 static struct hostent *GetHostByName(char *name);
386 struct hostent *h1,*h2; in do_accept()
519 struct hostent *he; in host_ip()
570 struct hostent ent;
577 static struct hostent *GetHostByName(char *name) in GetHostByName()
579 struct hostent *ret; in GetHostByName()
605 memcpy((char *)&(ghbn_cache[lowi].ent),ret,sizeof(struct hostent)); in GetHostByName()
/external/quake/quake/src/WinQuake/
Dmplpc.cpp268 struct hostent HostEnt;
457 ReconstructHostEnt(struct hostent *s, void *flattened) in ReconstructHostEnt()
459 struct hostent *old = (struct hostent *) flattened; in ReconstructHostEnt()
586 struct hostent *
592 struct hostent *retVal; in gethostbyname()
608 retVal = (struct hostent *) r->Data; in gethostbyname()
624 struct hostent *
631 struct hostent *retVal; in gethostbyaddr()
649 retVal = (struct hostent *) r->Data; in gethostbyaddr()
Dnet_wins.cpp51 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
52 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
93 struct hostent *local = NULL; in WINS_GetLocalAddress()
512 struct hostent *hostentry; in WINS_GetNameFromAddr()
529 struct hostent *hostentry; in WINS_GetAddrFromName()
Dwinquake.h110 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
111 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
Dmpdosock.h147 struct hostent { struct
740 struct hostent FAR * PASCAL FAR gethostbyaddr(const char FAR * addr,
743 struct hostent FAR * PASCAL FAR gethostbyname(const char FAR * name);
781 typedef struct hostent HOSTENT;
782 typedef struct hostent *PHOSTENT;
783 typedef struct hostent FAR *LPHOSTENT;
Dnet_mp.cpp51 struct hostent *local = NULL; in MPATH_Init()
380 struct hostent *hostentry; in MPATH_GetNameFromAddr()
397 struct hostent *hostentry; in MPATH_GetAddrFromName()
Dnet_udp.cpp141 struct hostent *local; in UDP_Init()
453 struct hostent *hostentry; in UDP_GetNameFromAddr()
470 struct hostent *hostentry; in UDP_GetAddrFromName()
/external/quake/quake/src/QW/client/
Dwinquake.h109 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
110 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
Dnet_udp.c121 struct hostent *h; in NET_StringToAdr()
Dnet_wins.c97 struct hostent *h; in NET_StringToAdr()
/external/openssh/openbsd-compat/
Dfake-rfc2553.c51 struct hostent *hp; in getnameinfo()
158 struct hostent *hp; in getaddrinfo()
/external/dropbear/
Dfake-rfc2553.c50 struct hostent *hp; in getnameinfo()
153 struct hostent *hp; in getaddrinfo()
/external/tcpdump/
Daddrtoname.c105 static struct hostent *
108 static struct hostent host; in win32_gethostbyaddr()
228 register struct hostent *hp; in getname()
276 register struct hostent *hp; in getname6()
/external/openssh/
Dlogintest.c88 struct hostent *he; in testAPI()
/external/openssl/
De_os.h713 struct hostent *gethostbyname(const char *name);
714 struct hostent *gethostbyaddr(const char *addr, int length, int type);
/external/quake/quake/src/QW/qwfwd/
Dqwfwd.c106 struct hostent *phe; in connectsock()

123