$NetBSD: patch-ac,v 1.1 2010/05/27 14:14:30 obache Exp $ Bind failed: Address famly not supported by protocol family --- main.c.orig 2010-04-11 12:21:24.000000000 +0000 +++ main.c @@ -248,6 +248,7 @@ int main(int argc, char **argv) sizeof(i)); #endif memset((void *) &myaddr, 0, sizeof(myaddr)); + myaddr.sin_family = AF_INET; if (!((port = strtoul(config_getoption("PORT"), NULL, 10)))) port = DEFAULT_PORT; myaddr.sin_port = htons(port);