Lines Matching refs:attr
115 {"attr", required_argument, 0, 'a'},
235 " add-flow [-t] -l <link> -a <attr>=<value>[,...]\n"
297 match_attr(char *attr)
302 if (strlen(attr) == strlen(attr_table[i]) &&
303 strncmp(attr, attr_table[i], strlen(attr_table[i])) == 0) {
304 return (attr);
484 remove_flow(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
488 state->fs_status = dladm_flow_remove(handle, attr->fa_flowname,
499 print_flow(show_flow_state_t *state, dladm_flow_attr_t *attr,
505 if ((status = dladm_datalink_id2info(handle, attr->fa_linkid, NULL,
511 "%s", attr->fa_flowname);
515 (void) dladm_flow_attr_ip2str(attr, fbuf->flow_ipaddr,
517 (void) dladm_flow_attr_proto2str(attr, fbuf->flow_proto,
519 if ((attr->fa_flow_desc.fd_mask & FLOW_ULP_PORT_LOCAL) != 0) {
520 (void) dladm_flow_attr_port2str(attr, fbuf->flow_lport,
523 if ((attr->fa_flow_desc.fd_mask & FLOW_ULP_PORT_REMOTE) != 0) {
524 (void) dladm_flow_attr_port2str(attr, fbuf->flow_rport,
527 (void) dladm_flow_attr_dsfield2str(attr, fbuf->flow_dsfield,
538 show_flow(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
548 status = print_flow(statep, attr, &fbuf);
563 dladm_flow_attr_t attr;
565 if (dladm_flow_info(handle, name, &attr) != DLADM_STATUS_OK)
568 (void) show_flow(handle, &attr, arg);
1104 show_flowprop(dladm_handle_t handle, dladm_flow_attr_t *attr, void *arg)
1106 show_flowprop_one_flow(arg, attr->fa_flowname);
1219 dladm_flow_attr_t attr;
1225 if ((status = dladm_flow_info(handle, flow, &attr)) !=