diff options
author | brian <brian@FreeBSD.org> | 2002-01-16 14:03:52 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-01-16 14:03:52 +0000 |
commit | c6d68beab884b6f037a12000a3e905c7f4de0a8f (patch) | |
tree | 68f8d0feba20c53891bed19a936dd7c3e522e6d3 /usr.sbin/ppp/server.c | |
parent | 414245183e4efd4326ea425a932f73c5cc9dd073 (diff) | |
download | FreeBSD-src-c6d68beab884b6f037a12000a3e905c7f4de0a8f.zip FreeBSD-src-c6d68beab884b6f037a12000a3e905c7f4de0a8f.tar.gz |
socket()s first argument should be a protocol family rather than an
address 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 3fa12ae..c696771 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(AF_LOCAL, SOCK_STREAM, 0); + s = socket(PF_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(AF_INET6, SOCK_STREAM, 0); + s = socket(PF_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(AF_INET, SOCK_STREAM, 0); + s = socket(PF_INET, SOCK_STREAM, 0); } if (s < 0) { |