aboutsummaryrefslogtreecommitdiffstats
path: root/net/isc-dhcp31-server
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-03-15 01:14:06 +0800
committerpav <pav@FreeBSD.org>2007-03-15 01:14:06 +0800
commit2f36ebc5b4504f329625edaecf86d182cad95565 (patch)
tree274a42b72bd8ddf7e3a9c4f4618267924d748e52 /net/isc-dhcp31-server
parent4489f203cc2f42b336494ef7a3afaeab92ac729b (diff)
downloadfreebsd-ports-gnome-2f36ebc5b4504f329625edaecf86d182cad95565.tar.gz
freebsd-ports-gnome-2f36ebc5b4504f329625edaecf86d182cad95565.tar.zst
freebsd-ports-gnome-2f36ebc5b4504f329625edaecf86d182cad95565.zip
- Fix build on recent current after ascii2addr() removal
PR: ports/110028 Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer) Obtained from: bms
Diffstat (limited to 'net/isc-dhcp31-server')
-rw-r--r--net/isc-dhcp31-server/Makefile2
-rw-r--r--net/isc-dhcp31-server/files/patch-server::dhcpd.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/isc-dhcp31-server/Makefile b/net/isc-dhcp31-server/Makefile
index 03a8b81e3a7a..ea88ac706d0f 100644
--- a/net/isc-dhcp31-server/Makefile
+++ b/net/isc-dhcp31-server/Makefile
@@ -19,7 +19,7 @@ DISTNAME= ${PORTNAME}-${RELEASE}${VERSION}${PATCHLEVEL}
MAINTAINER= Joerg.Pulz@frm2.tum.de
COMMENT?= The ISC Dynamic Host Configuration Protocol server
-PORTREVISION_SERVER= 1
+PORTREVISION_SERVER= 2
PORTREVISION_CLIENT= 0
PORTREVISION_RELAY= 0
PORTREVISION_DEVEL= 0
diff --git a/net/isc-dhcp31-server/files/patch-server::dhcpd.c b/net/isc-dhcp31-server/files/patch-server::dhcpd.c
index e2e6e24e814e..c45ed9214792 100644
--- a/net/isc-dhcp31-server/files/patch-server::dhcpd.c
+++ b/net/isc-dhcp31-server/files/patch-server::dhcpd.c
@@ -117,7 +117,7 @@
+ set_jail = argv [i];
+ if (++i == argc)
+ usage ();
-+ if (ascii2addr (AF_INET, argv[i], &jail_ip_address) < 0)
++ if (inet_pton (AF_INET, argv[i], &jail_ip_address) < 0)
+ log_fatal ("invalid ip address: %s", argv[i]);
+ jail_ip_address = ntohl (jail_ip_address);
+ no_dhcpd_jail = 1;
@@ -146,7 +146,7 @@
+ if (!no_dhcpd_jail && (s = getenv ("DHCPD_JAIL_HOSTNAME")) &&
+ (s2 = getenv ("DHCPD_JAIL_IPADDRESS"))) {
+ set_jail = s;
-+ if (ascii2addr (AF_INET, s2, &jail_ip_address) < 0)
++ if (inet_pton (AF_INET, s2, &jail_ip_address) < 0)
+ log_fatal ("invalid ip address: %s", s2);
+ jail_ip_address = ntohl (jail_ip_address);
+ }