Lines Matching refs:dsmp
58 dhcp_init_reboot_v4(dhcp_smach_t *dsmp) in dhcp_init_reboot_v4() argument
68 dpkt = init_pkt(dsmp, REQUEST); in dhcp_init_reboot_v4()
70 dsmp->dsm_ack->pkt->yiaddr.s_addr); in dhcp_init_reboot_v4()
74 htons(dsmp->dsm_lif->lif_pif->pif_mtu - sizeof (struct udpiphdr))); in dhcp_init_reboot_v4()
78 (void) add_pkt_prl(dpkt, dsmp); in dhcp_init_reboot_v4()
80 if (!dhcp_add_fqdn_opt(dpkt, dsmp)) in dhcp_init_reboot_v4()
81 (void) dhcp_add_hostname_opt(dpkt, dsmp); in dhcp_init_reboot_v4()
85 (void) send_pkt(dsmp, dpkt, htonl(INADDR_BROADCAST), stop_init_reboot); in dhcp_init_reboot_v4()
99 dhcp_init_reboot_v6(dhcp_smach_t *dsmp) in dhcp_init_reboot_v6() argument
112 dpkt = init_pkt(dsmp, DHCPV6_MSG_CONFIRM); in dhcp_init_reboot_v6()
119 while ((d6o = dhcpv6_pkt_option(dsmp->dsm_ack, d6o, DHCPV6_OPT_IA_NA, in dhcp_init_reboot_v6()
160 (void) add_pkt_prl(dpkt, dsmp); in dhcp_init_reboot_v6()
162 (void) send_pkt_v6(dsmp, dpkt, ipv6_all_dhcp_relay_and_servers, in dhcp_init_reboot_v6()
168 if (!set_start_timer(dsmp)) in dhcp_init_reboot_v6()
169 dhcp_selecting(dsmp); in dhcp_init_reboot_v6()
181 dhcp_init_reboot(dhcp_smach_t *dsmp) in dhcp_init_reboot() argument
184 "INIT_REBOOT", dsmp->dsm_name); in dhcp_init_reboot()
186 if (!set_smach_state(dsmp, INIT_REBOOT)) { in dhcp_init_reboot()
189 dsmp->dsm_name); in dhcp_init_reboot()
191 dsmp->dsm_dflags |= DHCP_IF_FAILED; in dhcp_init_reboot()
192 (void) set_smach_state(dsmp, INIT); in dhcp_init_reboot()
193 ipc_action_finish(dsmp, DHCP_IPC_E_MEMORY); in dhcp_init_reboot()
197 if (dsmp->dsm_isv6) in dhcp_init_reboot()
198 dhcp_init_reboot_v6(dsmp); in dhcp_init_reboot()
200 dhcp_init_reboot_v4(dsmp); in dhcp_init_reboot()
212 stop_init_reboot(dhcp_smach_t *dsmp, unsigned int n_requests) in stop_init_reboot() argument
214 if (dsmp->dsm_isv6) { in stop_init_reboot()
218 maxabs = NSEC2MSEC(dsmp->dsm_neg_hrtime) + DHCPV6_CNF_MAX_RD; in stop_init_reboot()
221 if (nowabs + dsmp->dsm_send_timeout > maxabs) in stop_init_reboot()
222 dsmp->dsm_send_timeout = maxabs - nowabs; in stop_init_reboot()
230 if (df_get_bool(dsmp->dsm_name, dsmp->dsm_isv6, in stop_init_reboot()
234 dsmp->dsm_name); in stop_init_reboot()
235 dhcp_selecting(dsmp); in stop_init_reboot()
239 if (dsmp->dsm_isv6) { in stop_init_reboot()
241 "existing lease on %s", dsmp->dsm_name); in stop_init_reboot()
244 "using remainder of existing lease on %s", dsmp->dsm_name); in stop_init_reboot()
253 if (dhcp_bound(dsmp, NULL)) { in stop_init_reboot()
254 if (dsmp->dsm_isv6) { in stop_init_reboot()
255 if (!save_server_id(dsmp, dsmp->dsm_ack)) in stop_init_reboot()
257 server_unicast_option(dsmp, dsmp->dsm_ack); in stop_init_reboot()
262 dsmp->dsm_name); in stop_init_reboot()
263 dhcp_selecting(dsmp); in stop_init_reboot()