#include "dhcpd.h" #include "dhcpd.m" #include static HELP_FILE help_leases ("dhcpd","leases"); PUBLIC void LEASES::showalloc() { LEASES *leases; glocal.leases = this; markdup (); (MSG_U(T_SHOWALLOC,"Lease allocations"),"" ,help_leases); newf_head (MSG_U(H_SHOWALLOC,"Host\tIp\tMac address\tStarts\tStops")); sortable(); sortpolicy ("aaaaa"); for (int i=0; igetnb(); i++){ LEASE *l = glocal.leases->getitem(i); if (!l->isdup){ new_menuitemf (l->host.get(),"%s\t%s\t%s\t%s",l->ip,l->mac.get() ,l->starts.get(),l->ends.get()); } } }