diff options
author | brian <brian@FreeBSD.org> | 2002-01-16 13:15:47 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-01-16 13:15:47 +0000 |
commit | 414245183e4efd4326ea425a932f73c5cc9dd073 (patch) | |
tree | ad1919513333486a2fc89f76e42e8fbb384f259a /usr.sbin/ppp/server.c | |
parent | d056f34b3633cfdaba110d2f791a09d9a564773d (diff) | |
download | FreeBSD-src-414245183e4efd4326ea425a932f73c5cc9dd073.zip FreeBSD-src-414245183e4efd4326ea425a932f73c5cc9dd073.tar.gz |
socket's first argument is an address family, not a protocol family.
Diffstat (limited to 'usr.sbin/ppp/server.c')
-rw-r--r-- | usr.sbin/ppp/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index c696771..3fa12ae 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -259,7 +259,7 @@ server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) ifsun.sun_family = AF_LOCAL; strcpy(ifsun.sun_path, name); - s = socket(PF_LOCAL, SOCK_STREAM, 0); + s = socket(AF_LOCAL, SOCK_STREAM, 0); if (s < 0) { log_Printf(LogERROR, "Local: socket: %s\n", strerror(errno)); goto failed; @@ -328,7 +328,7 @@ server_TcpOpen(struct bundle *bundle, u_short port) sin6->sin6_port = htons(port); sin6->sin6_len = (u_int8_t)sizeof ss; sz = sizeof *sin6; - s = socket(PF_INET6, SOCK_STREAM, 0); + s = socket(AF_INET6, SOCK_STREAM, 0); } else #endif { @@ -337,7 +337,7 @@ server_TcpOpen(struct bundle *bundle, u_short port) sin->sin_len = (u_int8_t)sizeof ss; sin->sin_addr.s_addr = INADDR_ANY; sz = sizeof *sin; - s = socket(PF_INET, SOCK_STREAM, 0); + s = socket(AF_INET, SOCK_STREAM, 0); } if (s < 0) { |