Lines Matching defs:dlp

679 	dhcp_lease_t *dlp;
683 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlp->dl_next) {
684 cancel_lease_timers(dlp);
685 lif = dlp->dl_lifs;
686 nlifs = dlp->dl_nlifs;
1353 dhcp_lease_t *dlp;
1355 if ((dlp = calloc(1, sizeof (*dlp))) == NULL)
1357 dlp->dl_smach = dsmp;
1358 dlp->dl_hold_count = 1;
1359 init_timer(&dlp->dl_t1, 0);
1360 init_timer(&dlp->dl_t2, 0);
1361 insque(dlp, &dsmp->dsm_leases);
1363 return (dlp);
1374 hold_lease(dhcp_lease_t *dlp)
1376 dlp->dl_hold_count++;
1379 dlp->dl_smach->dsm_name, dlp->dl_hold_count);
1391 release_lease(dhcp_lease_t *dlp)
1393 if (dlp->dl_hold_count == 0) {
1398 if (dlp->dl_hold_count == 1 && !dlp->dl_removed) {
1403 if (--dlp->dl_hold_count == 0) {
1406 dlp->dl_smach->dsm_name);
1407 free(dlp);
1411 dlp->dl_smach->dsm_name, dlp->dl_hold_count);
1424 remove_lease(dhcp_lease_t *dlp)
1426 if (dlp->dl_removed) {
1434 dlp->dl_smach->dsm_name);
1435 dlp->dl_removed = B_TRUE;
1436 remque(dlp);
1438 cancel_lease_timers(dlp);
1440 lif = dlp->dl_lifs;
1441 nlifs = dlp->dl_nlifs;
1447 release_lease(dlp);
1460 cancel_lease_timer(dhcp_lease_t *dlp, dhcp_timer_t *dt)
1465 release_lease(dlp);
1480 cancel_lease_timers(dhcp_lease_t *dlp)
1482 cancel_lease_timer(dlp, &dlp->dl_t1);
1483 cancel_lease_timer(dlp, &dlp->dl_t2);
1496 schedule_lease_timer(dhcp_lease_t *dlp, dhcp_timer_t *dt,
1506 release_lease(dlp);
1509 if (schedule_timer(dt, expire, dlp)) {
1510 hold_lease(dlp);
1529 dhcp_lease_t *dlp;
1538 while ((dlp = dsmp->dsm_leases) != NULL)
1539 remove_lease(dlp);
1557 dhcp_lease_t *dlp, *dlpn;
1583 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlpn) {
1587 dlpn = dlp->dl_next;
1588 lif = dlp->dl_lifs;
1589 nlifs = dlp->dl_nlifs;
1601 if (dlp->dl_nlifs == 0)
1602 remove_lease(dlp);