From: Ted Lemon Date: Fri, 1 Sep 2000 18:30:36 +0000 (+0000) Subject: Don't even try to do billing on static leases. X-Git-Tag: V3-BETA-2-PATCH-1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3acf1dca2e6516cd334f523bd725ec529dab5c85;p=thirdparty%2Fdhcp.git Don't even try to do billing on static leases. --- diff --git a/server/dhcp.c b/server/dhcp.c index 86ca626bf..ac748728f 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.163 2000/09/01 16:57:44 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.164 2000/09/01 18:30:36 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1466,8 +1466,7 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp) } /* If we are configured to do per-class billing, do it. */ - if (have_billing_classes) { - + if (have_billing_classes && !(lease -> flags & STATIC_LEASE)) { /* See if the lease is currently being billed to a class, and if so, whether or not it can continue to be billed to that class. */