summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/udp.c')
-rw-r--r--usr.sbin/ppp/udp.c2
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);
OpenPOWER on IntegriCloud