summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/atm.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-01-16 13:15:47 +0000
committerbrian <brian@FreeBSD.org>2002-01-16 13:15:47 +0000
commit414245183e4efd4326ea425a932f73c5cc9dd073 (patch)
treead1919513333486a2fc89f76e42e8fbb384f259a /usr.sbin/ppp/atm.c
parentd056f34b3633cfdaba110d2f791a09d9a564773d (diff)
downloadFreeBSD-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/atm.c')
-rw-r--r--usr.sbin/ppp/atm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/atm.c b/usr.sbin/ppp/atm.c
index 6d6aba9..4a6356a 100644
--- a/usr.sbin/ppp/atm.c
+++ b/usr.sbin/ppp/atm.c
@@ -184,7 +184,7 @@ atm_CreateDevice(struct physical *p, const char *iface, unsigned vpi,
log_Printf(LogPHASE, "%s: Connecting to %s:%u.%u\n", p->link.name,
iface, vpi, vci);
- p->fd = socket(PF_NATM, SOCK_DGRAM, PROTO_NATMAAL5);
+ p->fd = socket(AF_NATM, SOCK_DGRAM, PROTO_NATMAAL5);
if (p->fd >= 0) {
log_Printf(LogDEBUG, "%s: Opened atm socket %s\n", p->link.name,
p->name.full);
OpenPOWER on IntegriCloud