Home
last modified time | relevance | path

Searched refs:CD_LEASE_TIME (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c270 if (plp->opts[CD_LEASE_TIME] != NULL && in read_hostconf()
271 plp->opts[CD_LEASE_TIME]->len == in read_hostconf()
275 plp->opts[CD_LEASE_TIME]->value, in read_hostconf()
288 relativize_time(plp->opts[CD_LEASE_TIME], orig_time, in read_hostconf()
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dbound.c130 (void) memcpy(&new_lease, ack->opts[CD_LEASE_TIME]->value, in dhcp_bound()
135 (void) memcpy(ack->opts[CD_LEASE_TIME]->value, &new_lease, in dhcp_bound()
466 if (ack->opts[CD_LEASE_TIME] == NULL) { in get_pkt_times()
471 if (ack->opts[CD_LEASE_TIME]->len != sizeof (lease_t)) { in get_pkt_times()
475 (void) memcpy(lease, ack->opts[CD_LEASE_TIME]->value, sizeof (lease_t)); in get_pkt_times()
529 (ack->opts[CD_LEASE_TIME] == NULL || in configure_v4_timers()
530 ack->opts[CD_LEASE_TIME]->len != sizeof (lease_t))) { in configure_v4_timers()
534 "ACK on %s", ack->opts[CD_LEASE_TIME] == NULL ? "missing" : in configure_v4_timers()
H A Drequest.c296 (void) memcpy(&lease, offer->opts[CD_LEASE_TIME]->value, in dhcp_requesting()
299 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, lease); in dhcp_requesting()
473 if (pkt->opts[CD_LEASE_TIME] == NULL) { in compute_points_v4()
479 if (pkt->opts[CD_LEASE_TIME]->len != sizeof (lease_t)) { in compute_points_v4()
618 (plp->opts[CD_LEASE_TIME] == NULL || in accept_v4_acknak()
619 plp->opts[CD_LEASE_TIME]->len != sizeof (lease_t))) { in accept_v4_acknak()
H A Dselect.c194 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM)); in dhcp_selecting()
H A Dinit_reboot.c72 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM)); in dhcp_init_reboot_v4()
H A Drenew.c482 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM)); in dhcp_extending()
/illumos-gate/usr/src/stand/lib/inet/
H A Ddhcpv4.c505 if (!wk->opts[CD_LEASE_TIME]) { in select_best()
510 if (wk->opts[CD_LEASE_TIME]->len != 4) { in select_best()
673 *opt++ = CD_LEASE_TIME; in dhcp_selecting()
782 *opt++ = CD_LEASE_TIME; in dhcp_requesting()
784 bcopy(pl->opts[CD_LEASE_TIME]->value, &t_time, in dhcp_requesting()
863 doptp = state_pl->opts[CD_LEASE_TIME]; in dhcp_requesting()
/illumos-gate/usr/src/uts/common/netinet/
H A Ddhcp.h115 #define CD_LEASE_TIME 51 macro
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dhcp.c365 case CD_LEASE_TIME: in show_options()