Lines Matching defs:flist
100 struct flowlist *flist;
103 for (match = 0, flist = stattable;
105 match++, flist++) {
107 if (flist == NULL)
111 if (strncmp(flowname, flist->flowname, MAXFLOWNAMELEN)
113 return (flist);
116 if (linkid == flist->linkid)
117 return (flist);
135 flist = &stattable[statentry];
136 bzero(flist, sizeof (struct flowlist));
139 (void) strncpy(flist->flowname, flowname, MAXFLOWNAMELEN);
140 flist->linkid = linkid;
141 flist->fd = INT32_MAX;
143 return (flist);
148 print_flow_stats(dladm_handle_t handle, struct flowlist *flist)
163 for (fcount = 0, fcurr = flist;
187 struct flowlist *flist;
206 flist = findstat(flowname, attr->fa_linkid);
207 if (flist == NULL)
210 flist->display = B_FALSE;
211 prevstats = &flist->prevstats;
212 diffstats = &flist->diffstats;
215 NULL, flist->linkname, sizeof (flist->linkname));
226 if (flist->ifspeed == 0)
228 &flist->ifspeed);
230 if (flist->first) {
231 flist->first = B_FALSE;
240 flist->display = B_TRUE;
247 print_link_stats(dladm_handle_t handle, struct flowlist *flist)
263 for (fcount = 0, fcurr = flist;
312 struct flowlist *flist;
318 /* find the flist entry */
319 flist = findstat(NULL, linkid);
320 if (flist == NULL)
323 flist->display = B_FALSE;
324 prevstats = &flist->prevstats;
325 diffstats = &flist->diffstats;
328 flist->linkname, sizeof (flist->linkname)) != DLADM_STATUS_OK)
331 if (flist->fd == INT32_MAX) {
334 flist->linkname);
335 if ((flist->fd = open(dnlink, O_RDWR)) < 0)
338 flist->fd = -1;
344 ksp = dladm_kstat_lookup(kcp, NULL, -1, flist->linkname, "net");
352 if (flist->ifspeed == 0)
354 &flist->ifspeed);
356 if (flist->first) {
357 flist->first = B_FALSE;
365 flist->display = B_TRUE;
374 struct flowlist *flist;
378 for (flist = stattable; index < maxstatentries; index++, flist++) {
379 if (flist->linkid == DATALINK_INVALID_LINKID)
381 if (flist->fd != -1 && flist->fd != INT32_MAX)
382 (void) close(flist->fd);