Searched refs:hostent (Results 1 - 25 of 59) sorted by relevance

123

/external/chromium/third_party/libjingle/source/talk/base/
H A Dnethelpers.h64 hostent* result_;
71 hostent* SafeGetHostByName(const char* hostname, int* herrno);
72 void FreeHostEnt(hostent* host);
H A Dnethelpers.cc62 hostent* SafeGetHostByName(const char* hostname, int* herrno) {
66 hostent* result = NULL;
68 // On Windows we have to allocate a buffer, and manually copy the hostent,
70 hostent* ent = gethostbyname(hostname);
78 int total_len = sizeof(hostent);
91 result = static_cast<hostent*>(malloc(total_len));
95 char* p = reinterpret_cast<char*>(result) + sizeof(hostent);
97 // Copy the hostent into it, along with its embedded pointers.
127 ASSERT(kInitHostentLen > sizeof(hostent));
134 char* aux = static_cast<char*>(buf) + sizeof(hostent);
[all...]
H A Dsocketaddress.cc212 if (hostent* pHost = SafeGetHostByName(hostname_.c_str(), &errcode)) {
345 if (hostent* pHost = SafeGetHostByName(hostname.c_str(), &errcode)) {
/external/ppp/pppd/plugins/radius/
H A Dip_util.c31 struct hostent *hp;
37 else if ((hp = gethostbyname (host)) == (struct hostent *) NULL)
105 struct hostent *hp;
H A Dconfig.c414 struct hostent *hp;
425 if ((hp = gethostbyname (hostname)) == (struct hostent *) NULL)
/external/tcpdump/missing/
H A 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 *);
/external/mdnsresponder/mDNSPosix/
H A Dnss_mdns.c379 #define ENTNAME hostent
385 // For hostent
390 typedef struct hostent hostent; typedef in typeref:struct:hostent
411 hostent * result_buf,
441 hostent * result_buf,
474 hostent * result_buf,
505 hostent * hostent; member in struct:result_map
531 hostent * result_bu
[all...]
/external/openssl/crypto/bio/
H A 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;
296 static struct hostent *ghbn_dup(struct hostent *a)
298 struct hostent *ret;
302 ret=(struct hostent *)OPENSSL_malloc(sizeof(struct hostent));
[all...]
/external/quake/quake/src/QW/client/
H A Dwinquake.h109 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
110 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
H A Dnet_udp.c121 struct hostent *h;
H A Dnet_wins.c97 struct hostent *h;
/external/quake/quake/src/WinQuake/
H A Dwinquake.h110 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
111 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
H A Dnet_mp.cpp51 struct hostent *local = NULL;
380 struct hostent *hostentry;
397 struct hostent *hostentry;
H A 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;
512 struct hostent *hostentry;
529 struct hostent *hostentry;
H A Dmplpc.cpp268 struct hostent HostEnt;
457 ReconstructHostEnt(struct hostent *s, void *flattened)
459 struct hostent *old = (struct hostent *) flattened;
586 struct hostent *
592 struct hostent *retVal;
608 retVal = (struct hostent *) r->Data;
624 struct hostent *
631 struct hostent *retVal;
649 retVal = (struct hostent *)
[all...]
H A 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;
H A Dnet_udp.cpp141 struct hostent *local;
453 struct hostent *hostentry;
470 struct hostent *hostentry;
/external/openssl/apps/
H A Ds_socket.c100 static struct hostent *GetHostByName(char *name);
386 struct hostent *h1,*h2;
519 struct hostent *he;
570 struct hostent ent;
577 static struct hostent *GetHostByName(char *name)
579 struct hostent *ret;
605 memcpy((char *)&(ghbn_cache[lowi].ent),ret,sizeof(struct hostent));
/external/dropbear/
H A Dfake-rfc2553.c50 struct hostent *hp;
153 struct hostent *hp;
/external/openssh/openbsd-compat/
H A Dfake-rfc2553.c51 struct hostent *hp;
158 struct hostent *hp;
/external/openssh/
H A Dlogintest.c88 struct hostent *he;
/external/libpcap/
H A Dnametoaddr.c107 struct hostent *hp;
/external/libppp/src/
H A Ddefs.c156 struct hostent *hp;
/external/quake/quake/src/QW/qwfwd/
H A Dqwfwd.c106 struct hostent *phe;
/external/tcpdump/
H A Daddrtoname.c103 * h_name in struct hostent is only valid.
105 static struct hostent *
108 static struct hostent host;
228 register struct hostent *hp;
276 register struct hostent *hp;

Completed in 116 milliseconds

123