[tpop3d-discuss] Re: FreeBSD listener_new: bind problem

Michał Czerwiński holmier at bsd.org.pl
Thu, 21 Aug 2003 17:51:21 +0200 (CEST)


Dnia 21.08.2003 o 16:35 Chris Lightfoot napisał(a):

>> You find bind(2) returns -1 with errno == EADDRNOTAVAIL.
>
>Ah. One possibility. Try this:
>
>diff -u -r1.88 main.c
>--- main.c      14 Jul 2003 23:31:20 -0000      1.88
>+++ main.c      21 Aug 2003 15:34:52 -0000
>@@ -167,6 +167,8 @@
>         char *regex = NULL;
> #endif
>
>+        sin.sin_family = AF_INET;
>+
>         s = *ll;
>
>         /* Address. */
>
>

Echhh, works just perfectly..._THANKS_ ;*

Mc.
-- 
   ,--------------[holmier@bsd.org.pl]---------------,
   |  http://bsd.org.pl/~holmier :: holmier@IRCNet   |
   `-------------------------------------------------'
$:It's kind of fun to do the impossible.