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/udp.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/udp.c')
-rw-r--r-- | usr.sbin/ppp/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/udp.c b/usr.sbin/ppp/udp.c index fa76333..8307a4a 100644 --- a/usr.sbin/ppp/udp.c +++ b/usr.sbin/ppp/udp.c @@ -229,7 +229,7 @@ udp_CreateDevice(struct physical *p, char *host, char *port) log_Printf(LogPHASE, "%s: Connecting to %s:%s/udp\n", p->link.name, host, port); - p->fd = socket(AF_INET, SOCK_DGRAM, 0); + p->fd = socket(PF_INET, SOCK_DGRAM, 0); if (p->fd >= 0) { log_Printf(LogDEBUG, "%s: Opened udp socket %s\n", p->link.name, p->name.full); |