Lines Matching defs:ia

444 	ipc_action_t		ia, *iap;
451 ipc_action_init(&ia);
452 error = dhcp_ipc_recv_request(fd, &ia.ia_request,
472 ia.ia_cmd = DHCP_IPC_CMD(ia.ia_request->message_type);
473 ia.ia_fd = fd;
474 ia.ia_eid = id;
476 if (ia.ia_cmd >= DHCP_NIPC) {
479 dhcp_ipc_type_to_string(ia.ia_cmd), ia.ia_request->ifname);
480 send_error_reply(&ia, DHCP_IPC_E_CMD_UNKNOWN);
486 if (!is_priv && (ipc_cmd_flags[ia.ia_cmd] & CMD_ISPRIV)) {
489 dhcp_ipc_type_to_string(ia.ia_cmd), ia.ia_request->ifname);
490 send_error_reply(&ia, DHCP_IPC_E_PERM);
505 isv6 = (ia.ia_request->message_type & DHCP_V6) != 0;
506 ifname = ia.ia_request->ifname;
527 if (ia.ia_cmd == DHCP_GET_TAG)
537 } else if (ipc_cmd_flags[ia.ia_cmd] & CMD_CREATE) {
562 send_error_reply(&ia, error);
572 if (ia.ia_cmd == DHCP_START &&
576 send_error_reply(&ia, error);
581 !(ipc_cmd_flags[ia.ia_cmd] & CMD_BOOTP)) {
583 dhcp_ipc_type_to_string(ia.ia_cmd), dsmp->dsm_name);
584 send_error_reply(&ia, DHCP_IPC_E_BOOTP);
594 if (!check_cmd_allowed(dsmp->dsm_state, ia.ia_cmd)) {
598 dhcp_ipc_type_to_string(ia.ia_cmd), dsmp->dsm_name);
599 send_error_reply(&ia,
600 ia.ia_cmd == DHCP_START && dsmp->dsm_state != INIT ?
607 dhcp_ipc_type_to_string(ia.ia_cmd), dsmp->dsm_name);
609 if ((ia.ia_request->message_type & DHCP_PRIMARY) && is_priv)
705 if (ipc_cmd_flags[ia.ia_cmd] & CMD_IMMED) {
708 * worry about freeing ia through one of the reply functions
711 iap = &ia;
717 send_error_reply(&ia, DHCP_IPC_E_OUTSTATE);
722 send_error_reply(&ia, DHCP_IPC_E_PEND);
726 if (!ipc_action_start(dsmp, &ia)) {
729 send_error_reply(&ia, DHCP_IPC_E_MEMORY);