Lines Matching refs:dsmp

58 dhcp_init_reboot_v4(dhcp_smach_t *dsmp)
70 dpkt = init_pkt(dsmp, REQUEST);
72 dsmp->dsm_ack->pkt->yiaddr.s_addr);
76 htons(dsmp->dsm_lif->lif_pif->pif_max - sizeof (struct udpiphdr)));
80 (void) add_pkt_prl(dpkt, dsmp);
86 if (df_get_bool(dsmp->dsm_name, dsmp->dsm_isv6, DF_REQUEST_HOSTNAME)) {
88 dsmp->dsm_name);
92 if ((dsmp->dsm_reqhost = strdup(reqhost)) != NULL)
94 dsmp->dsm_reqhost,
95 strlen(dsmp->dsm_reqhost));
102 dsmp->dsm_name);
108 (void) send_pkt(dsmp, dpkt, htonl(INADDR_BROADCAST), stop_init_reboot);
122 dhcp_init_reboot_v6(dhcp_smach_t *dsmp)
135 dpkt = init_pkt(dsmp, DHCPV6_MSG_CONFIRM);
142 while ((d6o = dhcpv6_pkt_option(dsmp->dsm_ack, d6o, DHCPV6_OPT_IA_NA,
183 (void) add_pkt_prl(dpkt, dsmp);
185 (void) send_pkt_v6(dsmp, dpkt, ipv6_all_dhcp_relay_and_servers,
191 if (!set_start_timer(dsmp))
192 dhcp_selecting(dsmp);
204 dhcp_init_reboot(dhcp_smach_t *dsmp)
207 "INIT_REBOOT", dsmp->dsm_name);
209 if (!set_smach_state(dsmp, INIT_REBOOT)) {
212 dsmp->dsm_name);
214 dsmp->dsm_dflags |= DHCP_IF_FAILED;
215 (void) set_smach_state(dsmp, INIT);
216 ipc_action_finish(dsmp, DHCP_IPC_E_MEMORY);
220 if (dsmp->dsm_isv6)
221 dhcp_init_reboot_v6(dsmp);
223 dhcp_init_reboot_v4(dsmp);
235 stop_init_reboot(dhcp_smach_t *dsmp, unsigned int n_requests)
237 if (dsmp->dsm_isv6) {
241 maxabs = dsmp->dsm_neg_hrtime / (NANOSEC / MILLISEC) +
245 if (nowabs + dsmp->dsm_send_timeout > maxabs)
246 dsmp->dsm_send_timeout = maxabs - nowabs;
254 if (df_get_bool(dsmp->dsm_name, dsmp->dsm_isv6,
258 dsmp->dsm_name);
259 dhcp_selecting(dsmp);
263 if (dsmp->dsm_isv6) {
265 "existing lease on %s", dsmp->dsm_name);
268 "using remainder of existing lease on %s", dsmp->dsm_name);
272 * We already stuck our old ack in dsmp->dsm_ack and relativized the
277 if (dhcp_bound(dsmp, NULL)) {
278 if (dsmp->dsm_isv6) {
279 if (!save_server_id(dsmp, dsmp->dsm_ack))
281 server_unicast_option(dsmp, dsmp->dsm_ack);
286 dsmp->dsm_name);
287 dhcp_selecting(dsmp);