search for: inet_ntopw

Displaying 4 results from an estimated 4 matches for "inet_ntopw".

Did you mean: inet_ntop
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...> /* AF_ */ > > static int opt_af = AF_UNSPEC; > +#endif > > /* signal handlers */ > static struct sigaction sa; > @@ -77,6 +81,7 @@ > /* set by signal handlers */ > static int reload_flag = 0, exit_flag = 0; > > +#ifdef HAVE_IPV6 > const char *inet_ntopW (struct sockaddr_storage *s) { > static char str[40]; > > @@ -90,6 +95,7 @@ > return NULL; > } > } > +#endif > > /* return a pointer to the named ups if possible */ > upstype *get_ups_ptr(const char *name) > @@ -150,6 +156,38 @@ > /* create a liste...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
...tic char *listenaddr = NULL; > + > +/* AF_ */ > + > +static int opt_af = AF_UNSPEC; > > /* signal handlers */ > static struct sigaction sa; > @@ -72,6 +77,20 @@ > /* set by signal handlers */ > static int reload_flag = 0, exit_flag = 0; > > +const char *inet_ntopW (struct sockaddr_storage *s) { > + static char str[40]; > + > + switch (s->ss_family) { > + case AF_INET: > + return inet_ntop (AF_INET, &(((struct sockaddr_in *)s)->sin_addr), str, 16); > + case AF_INET6: > + return inet_ntop (AF_INET6, &(((struct sockaddr_in6...
2015 Jan 28
1
upds crash with 'Out of memory'
On Tue, Jan 27, 2015 at 5:53 AM, Charles Lepple <clepple at gmail.com> wrote: > On Jan 24, 2015, at 12:45 AM, Ryan Sizemore <ryan.sizemore at gmail.com> > wrote: > > Hello, > > I am trying to get nut running on a Windows 2012 R2 server (x64). I am > using the MSI release of 2.6.5-3. > > > I am not sure why they are not listed on the main download page,
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...ock_fd, (struct sockaddr *) &csock, &clen); > > if (acc < 0) > return; > @@ -531,16 +600,14 @@ > > tmp = xmalloc(sizeof(ctype)); > > -#ifndef HAVE_IPV6 > - tmp->addr = xstrdup(inet_ntoa(csock.sin_addr)); > -#else > - tmp->addr = xstrdup(inet_ntopW(&csock)); > -#endif > tmp->fd = acc; > tmp->delete = 0; > + > #ifndef HAVE_IPV6 > + tmp->addr = xstrdup(inet_ntoa(csock.sin_addr)); > memcpy(&tmp->sock, &csock, sizeof(struct sockaddr_in)); > #else > + tmp->addr = xstrdup(inet_ntopW(&amp...