Lines Matching refs:state

298 	show_flow_state_t	*state = arg;
302 for (flow_curr = state->fs_flowchain; flow_curr;
316 flow_curr->fc_next = state->fs_flowchain;
317 state->fs_flowchain = flow_curr;
330 cleanup_removed_flows(show_flow_state_t *state)
337 fcurr = state->fs_flowchain;
347 if (fcurr == state->fs_flowchain)
348 state->fs_flowchain = fcurr->fc_next;
409 show_flow_state_t *state = arg;
445 fargs.flow_s_unit = state->fs_unit;
446 fargs.flow_s_parsable = state->fs_parsable;
447 ofmt_print(state->fs_ofmt, &fargs);
555 show_flow_state_t state;
584 bzero(&state, sizeof (state));
690 dump_all_flow_stats(&attr, &state, linkid, flow_arg);
694 state.fs_unit = unit;
695 state.fs_parsable = p_arg;
697 if (state.fs_parsable)
713 flowstat_ofmt_check(oferr, state.fs_parsable, ofmt);
714 state.fs_ofmt = ofmt;
719 (void) query_flow_stats(handle, &attr, &state);
724 &state, B_FALSE);
729 handle, &state, DATALINK_CLASS_ALL,
737 cleanup_removed_flows(&state);
750 show_history_state_t *state = (show_history_state_t *)arg;
760 if (!state->us_showall && ((status = dladm_flow_info(handle,
776 show_history_state_t *state = (show_history_state_t *)arg;
788 if (!state->us_showall && ((status = dladm_flow_info(handle,
793 if (state->us_plot) {
794 if (!state->us_printheader) {
795 if (state->us_first) {
797 state->us_first = B_FALSE;
802 state->us_first = B_TRUE;
803 state->us_printheader = B_TRUE;
806 if (state->us_first) {
810 state->us_first = B_FALSE;
817 state->us_first = B_TRUE;
843 ofmt_print(state->us_ofmt, (void *)&ubuf);
850 show_history_state_t *state = (show_history_state_t *)arg;
860 if (!state->us_showall && ((status = dladm_flow_info(handle,
882 ofmt_print(state->us_ofmt, (void *)&ubuf);
904 show_history_state_t state;
917 bzero(&state, sizeof (show_history_state_t));
918 state.us_parsable = B_FALSE;
919 state.us_printheader = B_FALSE;
920 state.us_plot = B_FALSE;
921 state.us_first = B_TRUE;
929 state.us_showall = B_TRUE;
945 state.us_plot = F_arg = B_TRUE;
960 if (!state.us_showall &&
967 if (state.us_parsable)
981 flowstat_ofmt_check(oferr, state.us_parsable, ofmt);
982 state.us_ofmt = ofmt;
993 DLADM_LOGTYPE_FLOW, file, resource, &state);
998 DLADM_LOGTYPE_FLOW, file, &state);
1002 DLADM_LOGTYPE_FLOW, file, resource, stime, etime, &state);
1006 DLADM_LOGTYPE_FLOW, file, stime, etime, &state);