diff options
Diffstat (limited to 'networking/udhcp/static_leases.c')
-rw-r--r-- | networking/udhcp/static_leases.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/networking/udhcp/static_leases.c b/networking/udhcp/static_leases.c deleted file mode 100644 index 3be7a5228..000000000 --- a/networking/udhcp/static_leases.c +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
2 | /* | ||
3 | * Storing and retrieving data for static leases | ||
4 | * | ||
5 | * Wade Berrier <wberrier@myrealbox.com> September 2004 | ||
6 | * | ||
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | ||
8 | */ | ||
9 | #include "common.h" | ||
10 | #include "dhcpd.h" | ||
11 | |||
12 | /* Check to see if an IP is reserved as a static IP */ | ||
13 | int FAST_FUNC is_nip_reserved(struct static_lease *st_lease, uint32_t nip) | ||
14 | { | ||
15 | while (st_lease) { | ||
16 | if (st_lease->nip == nip) | ||
17 | return 1; | ||
18 | st_lease = st_lease->next; | ||
19 | } | ||
20 | |||
21 | return 0; | ||
22 | } | ||