aboutsummaryrefslogtreecommitdiff
path: root/net/dhcpd/files
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2018-11-09 16:52:45 +0000
committerSteve Wills <swills@FreeBSD.org>2018-11-09 16:52:45 +0000
commitcaf63c69be1d765b4546a8524bf134124a545554 (patch)
tree996ef0624eeba89e753177f29b26d5da1f2ffa06 /net/dhcpd/files
parentc6655ef6f01cff331f5f268a465d2e4478580592 (diff)
downloadports-caf63c69be1d765b4546a8524bf134124a545554.tar.gz
ports-caf63c69be1d765b4546a8524bf134124a545554.zip
Notes
Diffstat (limited to 'net/dhcpd/files')
-rw-r--r--net/dhcpd/files/extra-patch-dhcp.c18
-rw-r--r--net/dhcpd/files/extra-patch-dhcpd.c50
-rw-r--r--net/dhcpd/files/extra-patch-memory.c34
-rw-r--r--net/dhcpd/files/extra-patch-pfutils.c16
4 files changed, 0 insertions, 118 deletions
diff --git a/net/dhcpd/files/extra-patch-dhcp.c b/net/dhcpd/files/extra-patch-dhcp.c
deleted file mode 100644
index 0963847b3823..000000000000
--- a/net/dhcpd/files/extra-patch-dhcp.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- dhcp.c.orig 2018-06-06 09:10:04 UTC
-+++ dhcp.c
-@@ -154,6 +154,7 @@ dhcpdiscover(struct packet *packet)
- * If we can't find an unabandoned lease,
- * reclaim the abandoned lease.
- */
-+#ifndef NO_PF
- if ((lease->flags & ABANDONED_LEASE)) {
- warning("Reclaiming abandoned IP address %s.",
- piaddr(lease->ip_addr));
-@@ -161,6 +162,7 @@ dhcpdiscover(struct packet *packet)
-
- pfmsg('L', lease); /* unabandon address */
- }
-+#endif /* NO_PF */
- }
-
- /* Try to find a host_decl that matches the client
diff --git a/net/dhcpd/files/extra-patch-dhcpd.c b/net/dhcpd/files/extra-patch-dhcpd.c
deleted file mode 100644
index 427f384bc951..000000000000
--- a/net/dhcpd/files/extra-patch-dhcpd.c
+++ /dev/null
@@ -1,50 +0,0 @@
---- dhcpd.c.orig 2018-06-06 09:12:11 UTC
-+++ dhcpd.c
-@@ -74,11 +74,15 @@ u_int16_t client_port;
- struct passwd *pw;
- int log_priority;
- int log_perror = 0;
-+#ifndef NO_PF
- int pfpipe[2];
-+#endif /* NO_PF */
- int gotpipe = 0;
- int syncrecv;
- int syncsend;
-+#ifndef NO_PF
- pid_t pfproc_pid = -1;
-+#endif /* NO_PF */
- char *path_dhcpd_conf = _PATH_DHCPD_CONF;
- char *path_dhcpd_db = _PATH_DHCPD_DB;
- char *abandoned_tab = NULL;
-@@ -225,6 +229,7 @@ main(int argc, char *argv[])
- if ((pw = getpwnam("_dhcp")) == NULL)
- error("user \"_dhcp\" not found");
-
-+#ifndef NO_PF
- /* don't go near /dev/pf unless we actually intend to use it */
- if ((abandoned_tab != NULL) ||
- (changedmac_tab != NULL) ||
-@@ -248,6 +253,7 @@ main(int argc, char *argv[])
- break;
- }
- }
-+#endif /* NO_PF */
-
- if (udpsockmode)
- udpsock_startup(udpaddr);
-@@ -386,6 +392,7 @@ periodic_scan(void *p)
- if (y < 1)
- y = 1;
-
-+#ifndef NO_PF
- /* walk across all leases to find the exired ones */
- for (n = subnets; n; n = n->next_subnet)
- for (g = n->group; g; g = g->next)
-@@ -394,6 +401,7 @@ periodic_scan(void *p)
- if (cur_time >= l->ends)
- if (l->ends > last_scan)
- pfmsg('R', l);
-+#endif /* NO_PF */
-
- last_scan = cur_time;
- add_timeout(cur_time + y, periodic_scan, NULL);
diff --git a/net/dhcpd/files/extra-patch-memory.c b/net/dhcpd/files/extra-patch-memory.c
deleted file mode 100644
index 8acd0cf6e4f1..000000000000
--- a/net/dhcpd/files/extra-patch-memory.c
+++ /dev/null
@@ -1,34 +0,0 @@
---- memory.c.orig 2018-06-06 09:14:19 UTC
-+++ memory.c
-@@ -619,9 +619,11 @@ supersede_lease(struct lease *comp, stru
- comp->ends = lease->ends;
- }
-
-+#ifndef NO_PF
- pfmsg('L', lease); /* address is leased. remove from purgatory */
- if (do_pftable) /* address changed hwaddr. remove from overload */
- pfmsg('C', lease);
-+#endif /* NO_PF */
-
- /* Return zero if we didn't commit the lease to permanent storage;
- nonzero if we did. */
-@@ -641,7 +643,9 @@ release_lease(struct lease *lease)
- supersede_lease(lease, &lt, 1);
- note("Released lease for IP address %s",
- piaddr(lease->ip_addr));
-+#ifndef NO_PF
- pfmsg('R', lease);
-+#endif /* NO_PF */
- }
- }
-
-@@ -669,7 +673,9 @@ abandon_lease(struct lease *lease, char
- lt.uid_len = 0;
- supersede_lease(lease, &lt, 1);
-
-+#ifndef NO_PF
- pfmsg('A', lease); /* address is abandoned. send to purgatory */
-+#endif /* NO_PF */
- return;
- }
-
diff --git a/net/dhcpd/files/extra-patch-pfutils.c b/net/dhcpd/files/extra-patch-pfutils.c
deleted file mode 100644
index ab32fc5c9464..000000000000
--- a/net/dhcpd/files/extra-patch-pfutils.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- pfutils.c.orig 2018-06-06 08:53:18 UTC
-+++ pfutils.c
-@@ -15,6 +15,8 @@
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-+#ifndef NO_PF /* No need of PF support */
-+
- #include <sys/types.h>
- #include <sys/ioctl.h>
- #include <sys/socket.h>
-@@ -254,3 +256,4 @@ pfmsg(char c, struct lease *lp)
- break;
- }
- }
-+#endif /* NO_PF */