summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/arp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-01-16 14:03:52 +0000
committerbrian <brian@FreeBSD.org>2002-01-16 14:03:52 +0000
commitc6d68beab884b6f037a12000a3e905c7f4de0a8f (patch)
tree68f8d0feba20c53891bed19a936dd7c3e522e6d3 /usr.sbin/ppp/arp.c
parent414245183e4efd4326ea425a932f73c5cc9dd073 (diff)
downloadFreeBSD-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/arp.c')
-rw-r--r--usr.sbin/ppp/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c
index edcc37c..47b7869 100644
--- a/usr.sbin/ppp/arp.c
+++ b/usr.sbin/ppp/arp.c
@@ -112,7 +112,7 @@ arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add, int s)
inet_ntoa(addr));
return 0;
}
- routes = ID0socket(AF_ROUTE, SOCK_RAW, AF_INET);
+ routes = ID0socket(PF_ROUTE, SOCK_RAW, AF_INET);
if (routes < 0) {
log_Printf(LogERROR, "arp_SetProxy: opening routing socket: %s\n",
strerror(errno));
OpenPOWER on IntegriCloud