Lines Matching refs:ia
49 ipc_action_init(ipc_action_t *ia)
51 ia->ia_cmd = 0;
52 ia->ia_fd = -1;
53 ia->ia_tid = -1;
54 ia->ia_eid = -1;
55 ia->ia_request = NULL;
70 struct ipc_action *ia = &dsmp->dsm_ia;
72 if (ia->ia_fd != -1 || ia->ia_tid != -1 || iareq->ia_fd == -1) {
104 *ia = *iareq;
110 dhcp_ipc_type_to_string(ia->ia_cmd), ia->ia_cmd, dsmp->dsm_name);
115 (void) async_start(dsmp, ia->ia_cmd, B_TRUE);
131 struct ipc_action *ia = &dsmp->dsm_ia;
144 dhcp_ipc_type_to_string(ia->ia_cmd), (int)ia->ia_cmd,
160 send_ok_reply(ia);
162 send_error_reply(ia, reason);
181 struct ipc_action *ia = &dsmp->dsm_ia;
185 ia->ia_tid = -1;
188 "%s (command %d) for %s", dhcp_ipc_type_to_string(ia->ia_cmd),
189 ia->ia_cmd, dsmp->dsm_name);
191 send_error_reply(ia, DHCP_IPC_E_TIMEOUT);
207 send_ok_reply(ipc_action_t *ia)
209 send_error_reply(ia, 0);
223 send_error_reply(ipc_action_t *ia, int error)
225 send_data_reply(ia, error, DHCP_TYPE_NONE, NULL, 0);
243 send_data_reply(ipc_action_t *ia, int error, dhcp_data_type_t type,
249 if (ia->ia_fd == -1 || ia->ia_request == NULL)
252 reply = dhcp_ipc_alloc_reply(ia->ia_request, error, buffer, size,
257 } else if ((retval = dhcp_ipc_send_reply(ia->ia_fd, reply)) != 0) {
268 free(ia->ia_request);
269 if (ia->ia_eid != -1)
270 (void) iu_unregister_event(eh, ia->ia_eid, NULL);
271 (void) dhcp_ipc_close(ia->ia_fd);
272 ia->ia_request = NULL;
273 ia->ia_fd = -1;
274 ia->ia_eid = -1;