Displaying 20 results from an estimated 147 matches for "hostent".
2015 Jan 25
0
SmartOS: nss_wrapper: conflicting types
...cting types for
'gethostby
name_r'
In file included from ../lib/nss_wrapper/nss_wrapper.c:65:0:
/usr/include/netdb.h:238:17: note: previous declaration of
'gethostbyname_r' was
here
The prototype in Samba source is:
int gethostbyname_r(const char *name,
struct hostent *ret,
char *buf, size_t buflen,
struct hostent **result, int *h_errnop)
Whereas the prototype in the system header is:
struct hostent *gethostbyname_r
(const char *, struct hostent *, char *, int, int *h_errnop);
I see that this has been discussed...
2002 Feb 15
3
ssh can't resolve hostnames thru WINS
...tname to ip:
if((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0)
fatal("%s: %.100s: %s", __progname, host,
gai_strerror(gaierr));
and it fails for me exactly in this if() when I say "ssh <wins_name>".
OTOH, ping uses code similar to
struct hostent *hp;
hp = gethostbyname(hostname);
and this works for WINS names.
My openssh version: openssh-3.0.2p1
Will try to patch ssh, although I'm know nothing about network programming.
Happy hacking,
--
vda
2006 Dec 11
0
Add option to TFTP client to ignore ':' in file name
...literal = 1;
+ break;
case 'm':
if ( ++arg >= argc )
usage(EX_USAGE);
***************
*** 489,495 ****
return;
}
targ = argv[argc - 1];
! if (strchr(argv[argc - 1], ':')) {
struct hostent *hp;
for (n = 1; n < argc - 1; n++)
--- 497,503 ----
return;
}
targ = argv[argc - 1];
! if (!literal && strchr(argv[argc - 1], ':')) {
struct hostent *hp;
for (n = 1; n < argc - 1; n++)
***...
2008 Jul 07
2
copyin having secondary effects.
...ies it points to however every time I copyin an entry pointed to by the first entry in teh h_alias array the other entries in the array get corrupted.
So I have ended up with this script:
#!/usr/bin/dtrace -CZs
#include <netdb.h>
pid$target::gethostbyname_r:return
{
self->r = (struct hostent *)copyin(arg1, sizeof (struct hostent));
printf("%d Host: %s", pid, copyinstr((uintptr_t)self->r->h_name));
printf(" h_aliases %p ", self->r->h_aliases);
self->a = (char **)copyin((uintptr_t)self->r->h_aliases,
4*sizeof (char *));
}
#define ALIAS(X) \
p...
2006 Dec 11
2
Add option to TFTP client to ignore ':' in file name (re-submit)
...literal = 1;
+ break;
case 'm':
if ( ++arg >= argc )
usage(EX_USAGE);
***************
*** 502,508 ****
return;
}
targ = argv[argc - 1];
! if (strchr(argv[argc - 1], ':')) {
struct hostent *hp;
for (n = 1; n < argc - 1; n++)
--- 510,516 ----
return;
}
targ = argv[argc - 1];
! if (!literal && strchr(argv[argc - 1], ':')) {
struct hostent *hp;
for (n = 1; n < argc - 1; n++)
***...
2009 Jun 01
2
[PATCH viewer] few minor bugfixes
...ET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME)
+#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
int socketfd;
- struct hostent *serv;
struct sockaddr_in serv_addr;
socketfd = socket(PF_INET, SOCK_STREAM, 0);
@@ -917,14 +918,9 @@ viewer_open_vnc_socket(const char* vnchost, int vncport)
return -1;
}
- serv = gethostbyname(vnchost);
- if(serv == NULL){
- return -1;
- }
-
serv_addr.sin_family = P...
2009 Jun 08
2
[PATCH] few minor bugfixes
...ET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS) && defined(HAVE_GETHOSTBYNAME)
+#if defined(HAVE_SOCKET) && defined(HAVE_CONNECT) && defined(HAVE_HTONS)
static int
viewer_open_vnc_socket(const char* vnchost, int vncport)
{
- int socketfd;
- struct hostent *serv;
- struct sockaddr_in serv_addr;
+ int result, socketfd;
+ char port[10];
+ struct addrinfo* vnc_addr;
- socketfd = socket(PF_INET, SOCK_STREAM, 0);
- if(socketfd < 0){
- return -1;
- }
+ sprintf(port, "%d", vncport);
- serv = gethostbyname(vnchost);
- if(serv...
1998 Nov 24
1
Missing inet.h and netdb.h for SCO
I tried to compile Samba 2.0 beta with cc under SCO 3.2. I seem to be
missing the inet.h and netdb.h include files. Does anyone know if they are
publicly available?
Steve Grose
Sgrose@cmps.com
Continental Managed Pharmacy Services - www.preferrx.com
Voice - 216-459-2025 Ext. 208
Fax - 216-485-8615
Any opinions expressed are my own and not necessarily those of my employers.
2019 Sep 18
2
[PATCH] build: remove unused gnulib modules
...early not used within
libguestfs (library, daemon, and C tools). Among directly and
indirectly modules used previous (and now no more), they are:
cycle-check
dev-ino
dup3
dup3-tests
fcntl-safer
fcntl-safer-tests
filevercmp
filevercmp-tests
fts
getaddrinfo
getaddrinfo-tests
hostent
i-ring
i-ring-tests
inet_ntop
inet_ntop-tests
isatty
isatty-tests
openat-safer
openat-safer-tests
opendirat
ptsname_r
ptsname_r-tests
servent
ttyname_r
ttyname_r-tests
Some of the removed modules are still used pulled indirectly as
dependency of other modules. There sh...
2002 Nov 17
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (update)
...har pfx;
+ ulong_t v4a;
+#ifdef INET6
+ uchar_t pfx;
+#endif
switch (afdl[i].a_af) {
case AF_INET:
@@ -470,10 +472,13 @@ get_name(addr, afd, res, numaddr, pai, p
struct addrinfo *pai;
int port0;
{
- u_short port = port0 & 0xffff;
+ ushort_t port = port0 & 0xffff;
struct hostent *hp;
struct addrinfo *cur;
- int error = 0, h_error;
+ int error = 0;
+#ifdef INET6
+ int h_error;
+#endif
#ifdef INET6
hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error);
@@ -515,7 +520,7 @@ get_addr(hostname, af, res, pai, port0)
struct addrinfo *pai;
int port0;...
2002 Sep 06
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS
...har pfx;
+ ulong_t v4a;
+#ifdef INET6
+ uchar_t pfx;
+#endif
switch (afdl[i].a_af) {
case AF_INET:
@@ -470,10 +472,13 @@ get_name(addr, afd, res, numaddr, pai, p
struct addrinfo *pai;
int port0;
{
- u_short port = port0 & 0xffff;
+ ushort_t port = port0 & 0xffff;
struct hostent *hp;
struct addrinfo *cur;
- int error = 0, h_error;
+ int error = 0;
+#ifdef INET6
+ int h_error;
+#endif
#ifdef INET6
hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error);
@@ -515,7 +520,7 @@ get_addr(hostname, af, res, pai, port0)
struct addrinfo *pai;
int port0;...
2002 Oct 14
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (resend)
...har pfx;
+ ulong_t v4a;
+#ifdef INET6
+ uchar_t pfx;
+#endif
switch (afdl[i].a_af) {
case AF_INET:
@@ -470,10 +472,13 @@ get_name(addr, afd, res, numaddr, pai, p
struct addrinfo *pai;
int port0;
{
- u_short port = port0 & 0xffff;
+ ushort_t port = port0 & 0xffff;
struct hostent *hp;
struct addrinfo *cur;
- int error = 0, h_error;
+ int error = 0;
+#ifdef INET6
+ int h_error;
+#endif
#ifdef INET6
hp = getipnodebyaddr(addr, afd->a_addrlen, afd->a_af, &h_error);
@@ -515,7 +520,7 @@ get_addr(hostname, af, res, pai, port0)
struct addrinfo *pai;
int port0;...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...;
> #include "upsclient.h"
>
> @@ -418,15 +419,15 @@
> }
>
> #endif /* HAVE_SSL */
> -
> +
> int upscli_connect(UPSCONN *ups, const char *host, int port, int flags)
> {
> #ifndef HAVE_IPV6
> - struct sockaddr_in local, server;
> - struct hostent *serv;
> + struct sockaddr_in local, server;
> + struct hostent *serv;
> #else
> - struct addrinfo hints, *r, *rtmp;
> - char *service;
> + struct addrinfo hints, *res, *ai;
> + char sport[NI_MAXSERV];
> #endif
>
> /* clear out any lingering junk */
> @@ -4...
1998 May 14
1
samba main cvs branch seems to be broken on 64-bit boxes.....
hi there :)
the code in util.c seems to have some bugs w/regard to compilation on
64-bit machines. in this case, the hardware is an Alpha running redhat
4.2 with pam turned off in the makefile.
i get a whole series of errors, all of which say "passing arg 'n' of
'function' from incompatible pointer type. in util.c, checked out of the
main branch the day before yesterday,
1996 Nov 19
0
Serious BIND resolver problems.
...n internet connected systems,
the resulting address should be 4 bytes (Forgetting about IPv6 for now).
Assuming that the address will always be 4 bytes, many privileged and
unprivileged programs (including network daemons) trust the address length
field which is returned from gethostbyname() in the hostent structure. By
trusting the length field returned by DNS to be 4 bytes, it then copies the
address into a 4 byte address variable. The vulnerability exists due to the
fact that we can specify the size of IP address data within the DNS packet
ourselves. By specifying a size larger than 4 bytes, an...
1999 Dec 29
1
Patch to use Dante socks library
...#define sendto Rsendto
+#define write Rwrite
+#define writev Rwritev
+int Raccept (int, struct sockaddr *, socklen_t *);
+int Rbind (int, const struct sockaddr *, socklen_t);
+int Rbindresvport(int , struct sockaddr_in *);
+int Rconnect (int, const struct sockaddr *, socklen_t);
+struct hostent *Rgethostbyname(const char *);
+struct hostent *Rgethostbyname2(const char *, int);
+int Rgetpeername (int, struct sockaddr *, socklen_t *);
+int Rgetsockname (int, struct sockaddr *, socklen_t *);
+ssize_t Rread(int , void *, size_t );
+ssize_t Rreadv(int d, const struct iovec *iov, int io...
2019 Sep 18
0
Re: [PATCH] build: remove unused gnulib modules
...g directly and
> indirectly modules used previous (and now no more), they are:
>
> cycle-check
> dev-ino
> dup3
> dup3-tests
> fcntl-safer
> fcntl-safer-tests
> filevercmp
> filevercmp-tests
> fts
> getaddrinfo
> getaddrinfo-tests
> hostent
> i-ring
> i-ring-tests
> inet_ntop
> inet_ntop-tests
> isatty
> isatty-tests
> openat-safer
> openat-safer-tests
> opendirat
> ptsname_r
> ptsname_r-tests
> servent
> ttyname_r
> ttyname_r-tests
>
> Some of the removed mo...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
...and now no more), they are:
cycle-check
d-ino
dev-ino
dup3
dup3-tests
fcntl-safer
fcntl-safer-tests
fdopendir
fdopendir-tests
filevercmp
filevercmp-tests
ftell
ftell-tests
ftello
ftello-tests
fts
getaddrinfo
getaddrinfo-tests
getcwd
getcwd-tests
gnu-make
hostent
i-ring
i-ring-tests
iconv
iconv-tests
inet_ntop
inet_ntop-tests
isatty
isatty-tests
openat-safer
openat-safer-tests
opendirat
ptsname_r
ptsname_r-tests
read-file
read-file-tests
rewinddir
servent
ttyname_r
ttyname_r-tests
xgetcwd
Some of the removed modules...
2000 Jan 19
3
AIX openssh patches
...close(random_pool);
+ #endif /* USE_SYSRANDOM */
}
#endif /* !HAVE_ARC4RANDOM */
*** canohost.c.DIST Wed Jan 19 11:00:42 2000
--- canohost.c Wed Jan 19 11:01:09 2000
***************
*** 29,35 ****
get_remote_hostname(int socket)
{
struct sockaddr_in from;
! int fromlen, i;
struct hostent *hp;
char name[MAXHOSTNAMELEN];
--- 29,40 ----
get_remote_hostname(int socket)
{
struct sockaddr_in from;
! #ifdef _AIX
! unsigned long fromlen;
! #else
! int fromlen;
! #endif
! int i;
struct hostent *hp;
char name[MAXHOSTNAMELEN];
***************
*** 116,122 ****
{...
2016 May 02
3
[Announce] Samba 4.4.3 Available for Download
...ers don't negotiate NTLMSSP_SIGN.
* BUG 11858: Allow anonymous smb connections.
* BUG 11870: Fix ads_sasl_spnego_gensec_bind(KRB5).
* BUG 11872: Fix 'wbinfo -u' and 'net ads search'.
o Tom Mortensen <tomm at lime-technology.com>
* BUG 11875: nss_wins: Fix the hostent setup.
o Garming Sam <garming at catalyst.net.nz>
* BUG 11789: build: Mark explicit dependencies on pytalloc-util.
o Partha Sarathi <partha at exablox.com>
* BUG 11819: Fix the smb2_setinfo to handle FS info types and FSQUOTA
infolevel.
o Jorge Schrauwen <sjorge at b...