-/* $OpenBSD: npppd.c,v 1.47 2017/08/12 11:20:34 goda Exp $ */
+/* $OpenBSD: npppd.c,v 1.48 2018/07/25 02:18:36 yasuoka Exp $ */
/*-
* Copyright (c) 2005-2008,2009 Internet Initiative Japan Inc.
* Next pppd(nppd). This file provides a npppd daemon process and operations
* for npppd instance.
* @author Yasuoka Masahiko
- * $Id: npppd.c,v 1.47 2017/08/12 11:20:34 goda Exp $
+ * $Id: npppd.c,v 1.48 2018/07/25 02:18:36 yasuoka Exp $
*/
#include "version.h"
#include <sys/param.h> /* ALIGNED_POINTER */
ppp_log(ppp, LOG_NOTICE,
"Requested IP address (%d.%d.%d.%d)/%d "
"is %s", IP_4OCT(req_ip4),
- netmask2prefixlen(htonl(ip4mask)), reason);
+ netmask2prefixlen(ip4mask), reason);
if (fallback_dyna)
goto dyna_assign;
return 1;